SGD BootScript Linux Usb Boot

From Super Grub Disk Wiki
Jump to navigationJump to search

Boot your Usb's linux from the same usb.

Purpose

This menu.lst lets you boot your Usb's Linux from the same USB drive.

Example 1 - Findf approach

title            Linux on usb
findf /boot/grub/mydeviceidfile.txt # This sets out_hd to the device id of the USB drive
root            $(out_device)
kernel          /boot/vmlinuz-2.6.26 root=LABEL=wd80_0jd-60.06 
initrd          /boot/initrd.img-2.6.26
boot

Example 2 - fstabroot approach

title            Linux on usb
findf /boot/grub/mydeviceidfile.txt # This sets out_hd to the device id of the USB drive
fstabroot $(out_device)/etc/fstab
root            $(out_device)
kernel          /boot/vmlinuz-2.6.26 root=$(fstabroot)
initrd          /boot/initrd.img-2.6.26
boot

See also

Boot Script for autodetection of a USB script.