Booting from USB
From WhitixDoc
The latest trunk version of Whitix allows booting from a USB drive. However, since the process is not a one-click procedure yet, you'll need to do the following (Thanks to Kostadin for going through the guide and testing it):
- Figure out the drive's device name (usually /dev/sdb or similar)
- Format the disk (using
fdiskorparted) to contain a FAT filesystem that spans the entire disk. - Copy CdRoot/* from the Whitix source directory (you'll have to check out the Subversion trunk) to the disk's mount directory (usually /media/disk-2)
- Rename Boot to boot, and /boot/Grub to /boot/grub (the default GRUB build doesn't allow case-insensitive lookups)
- Install GRUB:
- Create a device.map like so: "echo "(hd0) /dev/sdb" > /media/disk-2/boot/grub/device.map"
- Install stage1: "sudo grub-install --root-directory=/media/disk-2 /dev/sdb"
- Edit boot/grub/menu.lst, change the kernel name to /boot/Kernel and add the USB modules (take a look in /System/Modules/Core, add pci, usb, then usb_uhci, usb_ehci, usb_hub and usb_storage as applicable).
- Change the root parameter to "root=UsbDisk0"
Test it. Do 'sudo qemu -hda /dev/sdb' to check that GRUB works. You should now have a bootable version of Whitix on a USB stick.