#-------------------------------------------------------------------------------------------------
# I have two hard disks
# 1st) SATA SAMSUNG HD 103UJ - 1 TB => /dev/sda
# 2nd) SATA Hitachi HDS7203 - 3 TB => /dev/sdb
#
# I configured the BIOS to boot from the 2nd HD containing Ubuntu 11.10 as main OS with GRUB2.
# This file contains the own configuration of this GRUB2.
# In the configuration entries bellow the following HD GRUP mapping is used:
# Physical HD GRUB2 Notation
# --------------- -------------------------------
# 1st HD /dev/sda (hd1, ...) i.e. 2nd HD for GRUB
# 2nd HD /dev/sdb (hd0, ...) i.e. 1st HD for GRUB
# GRUB2 seems to regard the own HD (from which the Computed gets
# booted) as the first one and the other as the second.
#-------------------------------------------------------------------------------------------------
# Physically this OS is installed on the 1st HD, on the 3rd partition.
# For GRUB on the 2nd HD, 3rd partition => (hd1, msdos3)
# I do not know why, but I needed to use "insmod ext2" in order to see the 3rd partition and needed
# to use "msdos3" in order to access it.
# (I do not know if the other insmod are realy needed. I did not try without them.)
menuentry "CentOS release 6.1 (on /dev/sda2)" {
insmod gzio
insmod part_gpt
insmod ext2
insmod part_msdos
set root='(hd1,msdos3)'
linux /vmlinuz-2.6.32-131.0.15.el6.x86_64 ro root=/dev/mapper/vg_cent-lv_root rd_LVM_LV=vg_cent/lv_root rd_LVM_LV=vg_cent/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=sg-latin1 crashkernel=auto rhgb quiet
initrd /initramfs-2.6.32-131.0.15.el6.x86_64.img
}
# Boots the directory "/PuppyLinux522" on the same HD as GRUB (1st HD, 2nd Partiton => "(hd0,gpt2)")
# This is the same partition as the one where this file GRUB configuration file is stored.
menuentry "Puppy Linux 5.2.2 (auf /PuppyLinux522)" {
insmod ext2
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root a76be1e4-00f2-4282-953f-751eceac0ad1
linux /PuppyLinux522/vmlinuz pdev=sdb2 psubdir=PuppyLinux522
initrd /PuppyLinux522/initrd.gz
}
# Boots the directory "/PMagicLinux" on the same HD as GRUB (1st HD, 2nd Partiton => "(hd0,gpt2)")
# This is the same partition as the one where this file GRUB configuration file is stored.
mmenuentry "Parted Magic 2011_11_24 (auf /PMagicLinux)" {
recordfail
insmod gzio
insmod part_gpt
insmod ext2
insmod part_msdos
set root='(hd0,gpt2)'
search --no-floppy --fs-uuid --set=root a76be1e4-00f2-4282-953f-751eceac0ad1
linux /PMagicLinux/pmagic/bzImage root=/dev/sdb2 directory=PMagicLinux edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rw vga=791 loglevel=0 max_loop=256 keymap=de_CH-latin1
initrd /PMagicLinux/pmagic/initrd.img
}
# Boots the ISO image file "pmagic_2011_11_24_x86_64.iso" in the directory "/ISOs" on the same HD
# as GRUB but on another partition (1st HD, 4nd Partiton => "(hd0,gpt4)")
menuentry "Parted Magic 2011_11_24 ISO (on (hd0,gpt4)/ISOs/pmagic_2011_11_24_x86_64.iso" {
set isofile="/ISOs/pmagic_2011_11_24_x86_64.iso"
loopback loop (hd0,gpt4)$isofile
linux (loop)/pmagic/bzImage iso_filename=$isofile boot=pmagic edd=off noapic load_ramdisk=1 prompt_ramdisk=0 rwnomce sleep=0 loglevel=0 keymap=de_CH-latin1 vga=791
initrd (loop)/pmagic/initrd.img
}