Transferring the Crux ISO to USB

A day after I sidestep my way into a Crux installation to avoid USB CDROM issues, I find this brief set of notes reprinted to the Crux mailing list. If I understand it right, it’s a step-by-step conversion of the Crux ISO into a bootable USB, which I can only assume allows external sources for the installation process.

As a review and for my own notes, doing this on an Arch system basically required:

  1. mkdir -p /mnt/{loop,usb}
  2. yaourt -S dosfstools syslinux
  3. fdisk /dev/sdb
    1. o
    2. n
    3. p
    4. 1
    5. (enter)
    6. (enter)
    7. t
    8. 0b
    9. a
    10. 1
    11. w
  4. dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
  5. /sbin/mkdosfs -F 32 /dev/sdb1
  6. mount /dev/sdb1 /mnt/usb
  7. mount -o loop,ro crux-2.6.iso /mnt/loop
  8. rsync -aq /mnt/loop/ /mnt/usb/
  9. umount /mnt/loop
  10. mv /mnt/usb/boot/{iso,sys}linux
  11. mv /mnt/usb/boot/syslinux/{iso,sys}linux.cfg
  12. sed -i -e ‘s/isolinux/syslinux/g’ /mnt/usb/boot/syslinux/syslinux.cfg
  13. wget -O /mnt/usb/crux.squashfs http://jaeger.morpheus.net/linux/crux/tmp/crux.squashfs
  14. wget -O /mnt/usb/boot/initramfs http://jaeger.morpheus.net/linux/crux/tmp/initramfs
  15. umount /mnt/usb
  16. syslinux /dev/sdb1

In my case though, it wasn’t the magic bullet. I can boot the USB stick and the familiar Crux header spools past, but at the “module loading” step, both squashfs.ko and isofs.ko are spat back, with the message “device or resource busy” … and I get no farther than my previous attempts with the actual CD.

No harm done. I am learning slowly from these things. And it’s rather gratifying to build a USB stick that will boot. I shall have to experiment a little more and see if there are any other CD-based distros that I can convert to bootable USB. Some already have that — Arch for example has img files, which are wonderful — but some would be nice to change over.

But in the mean time, my scheme for installing Crux on the X60s remains the same. Now to put my evil plan to work. …

About these ads

7 Responses to “Transferring the Crux ISO to USB”


  1. 1 aperson 2010/02/28 at 11:13 AM

    I just follow: http://ubuntuforums.org/showthread.php?t=1288604 . Grub2 can boot .iso’s.

  2. 3 yoshi314 2010/02/28 at 6:21 PM

    if you’re lazy you can use tinycore linux and its usbinstall tool. it’s a 10mb download so maybe it’s worth a try.

    it will make you a syslinux bootable usb device, and handles a few advanced tricks related to usb booting.

  3. 4 fuxter 2010/03/01 at 12:34 AM

    http://unetbootin.sourceforge.net/
    unetbootin will convert almost any linux bootale iso into bootable flash drive.

    • 5 Bryan 2010/03/01 at 1:10 AM

      In my experience, unetbootin has some issues with converting ISOs to USB IMGs in most cases. I’ve never been able to get it to get too far with the conversion on anything except Ubuntu – always gotten some complaint about the install media not being found with both Arch and Crux.

  4. 6 Meh 2011/02/19 at 6:45 AM

    Dare I ask a BSD re-write?


  1. 1 Links 28/2/2010: Fedora GNU/Linux at Computer Recycling Center | Boycott Novell Trackback on 2010/03/01 at 9:45 AM

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Welcome!



Visit the Wiki!

Some recent desktops


May 6, 2011
Musca 0.9.24 on Crux Linux
150Mhz Pentium 96Mb 8Gb CF
 


May 14, 2011
IceWM 1.2.37 and Arch Linux
L2300 core duo 3Gb 320Gb

Some recent games


Apr. 21, 2011
Oolite on Xubuntu 11.04
L2300 core duo 3Gb 320Gb

Enter your email address to subscribe to this blog and receive notifications of new posts.

Join 405 other followers

License

This work is licensed under the GNU Free Documentation License. Please see the About page for details.

Blog Stats

  • 3,963,361 hits

Archives


Follow

Get every new post delivered to your Inbox.

Join 405 other followers

%d bloggers like this: