SVBus

GRUB4DOS - Command Line

To drop into a command shell press [c] if a boot menu is displayed – this is useful for debugging menu.lst entries. If the configuration file is not found a command shell is loaded by default.

To view available commands type help --all when in the command shell – this will list all commands (see screenshots below).

For help with individual commands type help [command] – e.g. help chainloader will display chainloader command usage.

The auto complete feature was discussed briefly in the preceding section. The following examples illustrate its versatility (output is from a test system with two hard disks and one cd attached) -

Expanding on one of the above examples, the [tab] feature provides a quick method of finding which devices are available. Typing a relevant command followed by  (  [tab] (e.g. root ( , chainloader ( , etc) will list all possible completions for the devices starting with  (  - basically all devices. E.g. -


By adding a (unique) tag/marker file to the root of a device it is possible to use the find command to identify the name of the device as allocated via grub4dos. For example, typing find /hdd.tag will search the root of all supported partitions for the file hdd.tag and will return the name of the device containing the file - e.g. (hd0,0). If the file is present on more than one device, then the other devices will also be displayed. Devices are searched in the order (hd), then (cd), then (fd). Using the same method it is possible to use relative paths in menu entries by using the find --set-root command.

Document date - 12th April 2023