Super Grub Disk Main Webpage. Página principal de Super Grub Disk.
Support Free Software. Donate to Super Grub Disk. Apoya al Software Libre. Dona a Super Grub Disk.
You are visiting Super Grub Disk wiki. Most of these webpages suppose that you have a Super Grub Disk and that you know how to boot SGD. If you have a boot problem and you are lost do not hesitate to visit Boot problems page. After that you can visit: Super Grub Disk site where you can find the SGD forum and the SGD mailing list among other resources.
SGD setgrubdevice
From Super Grub Disk Wiki
The setgrubdevice command
Contents |
Purpose
This command is recommended to be included in the very first menu.lst configuration file of custom SGD disks.
After the command has been executed $(grub_device) can be used instead of hard coding e.g. (hd0,0).
Usage
setgrubdevice
Example
A Grub menu.lst could contain the following command:
configfile (hd0,0)/boot/grub/menu.lst
Using setgrubdevice the command could be changed as follows:
setgrubdevice ... configfile $(grub_device)/boot/grub/menu.lst
Technical description
Saves into the $(grub_device) variable the current grub root. (I.e. saves the result of running root)
Problems that can be solved with this option
Using setgrubdevice makes the menu.lst configuration more stable. Even if the hard disk order changes the configuration file will not need to be updated.

