Sure. Here's a copy of my
grub.conf file, where I have it set so I can boot to:
1) The latest released Fedora kernel on the second partition of my second HD, that is (hd1,1) to GRUB
2) The kernel released prior to that one, also from (hd1,1)
3) A backup FC3 system from (hd5,0), the first partition of the sixth HD
4) A Windows XP system (Actually, a choice of an XP Pro system or a W2K Server.) from (hd0,0), the first partition of the first HD.
Code:
$ sudo cat /boot/grub/grub.conf
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,1)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=7
#splashimage=(hd1,1)/grub/splash.xpm.gz
#hiddenmenu
title Fedora Core 4 (2.6.14-1.1656)
root (hd1,1)
kernel /vmlinuz-2.6.14-1.1656_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.14-1.1656_FC4smp.img
title Fedora Core 4 (2.6.14-1.1653)
root (hd1,1)
kernel /vmlinuz-2.6.14-1.1653_FC4smp ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.14-1.1653_FC4smp.img
title Fedora Core 3 (2.6.12-1.1381)
root (hd5,0)
kernel /vmlinuz-2.6.12-1.1381_FC3smp ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.12-1.1381_FC3smp.img
title Windows
rootnoverify (hd0,0)
chainloader +1
Here's my hard drive setup:
Code:
$ sudo /sbin/fdisk -l
Disk /dev/hda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 4864 39070048+ 7 HPFS/NTFS
Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdb1 1 9091 73023426 7 HPFS/NTFS
/dev/hdb2 * 9092 9104 104422+ 83 Linux
/dev/hdb3 9105 19456 83152440 8e Linux LVM
Disk /dev/hdc: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 30515 245111706 42 SFS
Disk /dev/hdd: 13.6 GB, 13676544000 bytes
255 heads, 63 sectors/track, 1662 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 * 1 255 2048256 b W95 FAT32
/dev/hdd2 256 1662 11301727+ c W95 FAT32 (LBA)
Disk /dev/hdg: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdg1 * 1 12161 97683201 b W95 FAT32
Disk /dev/hdh: 100.0 GB, 100030242816 bytes
255 heads, 63 sectors/track, 12161 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdh1 * 1 13 104391 83 Linux
/dev/hdh2 14 12161 97578810 83 Linux
/dev/hda is for the XP Pro system
/dev/hdb1 is the Windows 2000 Server
/dev/hdb2 is /swap for the Fedora 4 system
/dev/hdb3 is a logical volume for the Fedora 4 system.
/dev/hdc is a Windows Active Directory volume (not readable from Linux)
/dev/hdd1 is an old Windows 98SE system (r/w from Linux, but only bootable from BIOS)
/dev/hdd2 is a copy of the W98SE disk
/dev/hdg is a FAT disk shared by the Windows and Linux systems
/dev/hdh1 is /swap for the Fedora 3 system
/dev/hdh2 contains the rest of the FC3 system
Hopefully this will give you some idea of what you can do with GRUB.