Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Are there any bootloaders designed for usb drives that make it easy to boot multiple distributions and utilities.

I've installed sysrescuecd, supergrub, ultimate boot cd and other various linux distros on my usb drive. The lame thing is all their installation instructions make it the only thing that boots from your drive, and usb drives can store alot more than one utility.

So I was wondering if anybody has made and easy application to setup a multiboot environment on a usb drive.

Thanks

share

locked by HopelessN00b Dec 5 at 11:39

This question exists because it has historical significance, but it is not considered a good, on-topic question for this site, so please do not use it as evidence that you can ask similar questions here. This question and its answers are frozen and cannot be changed. More info: help center.

    
Are you using a separate partition for each distro? –  CyberFonic May 29 '09 at 23:56

6 Answers 6

I like using grub for my multiboot USB devices. grub4dos was not reliable enough in my tests. Isolinux/syslinux work fine but aren't as flexible as grub.

It's pretty simple to extend the menu.lst/grub.cfg either statically as well as on-demand (thanks to tab completion in the grub shell :)). grml2usb of grml.org should give you an idea how to get a working multiboot USB setup.

Tip: grub2 brings a nice feature known as 'loopback'. Using the loopback module/option it's possible to directly boot an (iso9660) ISO without having to manually extract kernel/initrd/.... from it. The following snippet is a configuration example for the grml Linux Live system:

menuentry "grml-rescue system - ISO = grml-small_2009.05.iso" {
  loopback loop (hd0,1)/grml/grml-small_2009.05.iso
  linux    (loop)/boot/grmlsmall/linux26 findiso=/grml/grml-small_2009.05.iso boot=live quiet vga=791 noeject noprompt
  initrd   (loop)/boot/grmlsmall/initrd.gz
}
share

Partitions - if you can live with the slack space lost.

  • Partition 1 - distro that updates the mbr grub, install grub into mbr. Chainload all other partitions/distros

  • Partition 2 - distro 2 - grub loaded into boot sector of partition 2

  • Partition 3 - distro 3 - grub loaded into boot sector of partition 3

  • Partition 4 - extended partition

  • Partition 5 - shared data partition

  • Partition 6 - distro 4 - grub loaded into boot sector of partition 6

  • As many more partitions/distros as needed

Each distro can be installed using unetbootin or the distro's standard install procedures as long as you remember to always load grub into the partition rather than MBR at that point in each distro's standard installation. If you want you can load partition/distro 1 into the partition and load a "master" grub/syslinus/lilo, etc. to chainload the other partitions. I find it easier to just have distro 1 be the "master" (load grub into mbr) and have all other distro's be chainloaded.

share

No.

I've used Grub4Dos to make a working multiboot USB drive customizable with many different bootable installers and utilities, but it was far from easy. I've looked around a good bit and I'm fairly certain there is no app that does all the MBR setup and bootloader config work for you.

Here's one guide if you're interested in doing it the manual way: http://informationinsecurity.com/?p=94

share

maybe "unetbootin dot sf dot net" or one of the links mentioned ther ("gujin dot sourceforge dot net") will get you started.

share

The easiest way I've done this is to use the Slax creator (wont let me post a link, sorry) to create your bootable USB key (with slax installed), then modify the resulting bootloader config files and load your own images/utilities. It is fairly straightforward to make a BartPE/SLAX combo usb key this way.

share

Windows Vista and 7 contain all the utilities you need to create a bootable USB drive.

diskpart

list disk

select disk 1

clean

create partition primary

select partition 1

active

format fs=NTFS

assign

exit

bootsect /nt60 g:

Replace the number 1 and q: with the appropriate drive.

share
    
It's a bad idea to format USB drive as NTFS or as any other journaling filesystem. –  Alex Bolotov Jul 8 '09 at 9:34

Not the answer you're looking for? Browse other questions tagged or ask your own question.