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:
- mkdir -p /mnt/{loop,usb}
- yaourt -S dosfstools syslinux
- fdisk /dev/sdb
- o
- n
- p
- 1
- (enter)
- (enter)
- t
- 0b
- a
- 1
- w
- dd if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
- /sbin/mkdosfs -F 32 /dev/sdb1
- mount /dev/sdb1 /mnt/usb
- mount -o loop,ro crux-2.6.iso /mnt/loop
- rsync -aq /mnt/loop/ /mnt/usb/
- umount /mnt/loop
- mv /mnt/usb/boot/{iso,sys}linux
- mv /mnt/usb/boot/syslinux/{iso,sys}linux.cfg
- sed -i -e ‘s/isolinux/syslinux/g’ /mnt/usb/boot/syslinux/syslinux.cfg
- wget -O /mnt/usb/crux.squashfs http://jaeger.morpheus.net/linux/crux/tmp/crux.squashfs
- wget -O /mnt/usb/boot/initramfs http://jaeger.morpheus.net/linux/crux/tmp/initramfs
- umount /mnt/usb
- 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. …
I just follow: http://ubuntuforums.org/showthread.php?t=1288604 . Grub2 can boot .iso’s.
😯 Ooh! Thanks for that. That will keep me up late at night for sure. …![:mrgreen:](https://s0.wp.com/wp-content/mu-plugins/wpcom-smileys/mrgreen.svg)
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.
http://unetbootin.sourceforge.net/
unetbootin will convert almost any linux bootale iso into bootable flash drive.
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.
Pingback: Links 28/2/2010: Fedora GNU/Linux at Computer Recycling Center | Boycott Novell
Dare I ask a BSD re-write?