GRUB2 Multiboot USB Stick

Booting SystemRescudeCd and Windows 7 Installation from a USB stick using GRUB2. Assuming that /dev/sdb1 is an NTFS formated partition mounted under /mnt/usb:
  1. Copy the whole content of Windows 7 DVD directly into /mnt/usb.
  2. Copy sysrcd.dat, sysrcd.md5, isolinux/initram.igz and isolinux/rescue64 from SystemRescudeCd ISO image into /mnt/usb/linux.
  3. Install GRUB2 to the USB stick:
    grub-install --no-floppy --root-directory=/mnt/usb /dev/sdb
    
  4. Edit /mnt/usb/boot/grub/grub.cfg, e.g.:
    set timeout=5
    set default=0
    
    menuentry "System Rescue CD 64bit" {
            linux /linux/rescue64 subdir=linux scandelay=1 docache nomodeset
            initrd /linux/initram.igz
    }
    
    menuentry "Windows 7 Installation" {
            ntldr /bootmgr
    }
    

1 comment:

  1. Thanks for the clear instructions. Just make sure that light on the USB stops blinking after those commands! I had a little difficulty on my USB without a l.e.d. light and unplugged the key before it was done transferring, which resulted in the grub2 not being copied correctly. Again thanks, the code worked like a charm.

    ReplyDelete