[<<][pool][>>][..]
Wed Nov 5 16:58:19 CET 2008

bootable usb stick

# i keep doing this wrong.. the reason of confusion are 2 points:
#  * bios vs. linux devices
*  * boot time mapping vs. grub install time mapping



mount /dev/sdb1 /stick
mkdir -p /stick/boot/grub
cp -av /usr/lib/grub/i386-pc/* /stick/boot/grub/
grub-install /dev/sdb

# now, make sure the device.map on /dev/sdb reflects the setup at this
# moment, not necessarily at boot time.

grub
> root (hd1,0)
> setup (hd1)


# still no cigar.. check this:
# http://www.mayrhofer.eu.org/Default.aspx?pageindex=6&pageid=45


  Using grub as a boot loader

  Although syslinux is small, simple to install, and comes with a very
  simple command line menu to select from different boot options, I
  definitely prefer grub. It is larger, but a lot more flexible and
  offers a complete boot menu and interactive command interface. With
  recent versions of grub (tested with 0.97), booting from USB is also
  possible without real issues. To install grub as a boot loader on
  the USB stick:

   1. Mount the VFAT(32) file system with mount /dev/sda1 /mnt (or via
      KDE, in which case it will probably be mounted under /media/usb,
      then replace the /mnt occurances below accordingly)

   2. Create a directoriy for grub with mkdir -p /mnt/boot/grub

   3. Copy the grub files with cp /lib/grub/i386-pc/* /mnt/boot/grub

   4. Set a correct device map with echo '(hd0) /dev/sda' >
      /mnt/boot/grub/device.map

   5. Install grub into the master boot record with grub-install
      --root-directory=/mnt /dev/sda

   After that, grub should already be bootable from the USB stick, and
   booting a PC with the stick attached should show the grub boot
   menu.




[Reply][About]
[<<][pool][>>][..]