
===================================================================
This is an example of how to use GRUB from the command line.

The difference between Linux and GRUB device names.

Linux IDE:    GRUB IDE:      Linux SCSI:    GRUB SCSI:
/dev/hda1       (hd0,0)       /dev/sda1       (hd0,0)
/dev/hda2       (hd0,1)       /dev/sda2       (hd0,1)
/dev/hda3       (hd0,2)       /dev/sda3       (hd0,2)
/dev/hda4       (hd0,3)       /dev/sda4       (hd0,3)
/dev/hdb1       (hd1,0)       /dev/sdb1       (hd1,0)
/dev/hdb2       (hd1,1)       /dev/sdb2       (hd1,1)
/dev/hdb3       (hd1,2)       /dev/sdb3       (hd1,2)
/dev/hdb4       (hd1,3)       /dev/sdb4       (hd1,3)

If you want to boot a Linux system on a partition using its
kernel (/boot/vmlinuz etc.)

grub> root (hd0,1)
grub> kernel /boot/vmlinuz root=/dev/sda2 ro
grub> boot

You could do this to find what partition the kernel is on.

For example, show me what partitions have /boot/vmlinuz.

grub> find /boot/vmlinuz
(hd0,2)
(hd0,3)

If you want to boot a Linux system on a partition, using the
kernel that's on this CD/USB.

grub> kernel /boot/kernel32 root=/dev/sda2 ro
grub> boot

If you want to boot a Windows partition, do this.

For example, boot partition on /dev/sda1.

grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> boot

If you want to boot a FreeBSD partition, using /boot/loader.

For example, boot FreeBSD partition on /dev/sda4.

grub> root (hd0,3,a)
grub> kernel /boot/loader
grub> boot

If that doesn't work, try this.

grub> rootnoverify (hd0,3,a)
grub> chainloader +1
grub> boot

If you want to boot Windows bootmgr.

grub> find --set-root /bootmgr
grub> chainloader /bootmgr
grub> boot

Grub supports these filesystems:
ext2/3/4, fat16/32, iso9660, jfs, ntfs, reiserfs, ufs2, and xfs
===================================================================
