Howdy all
Well what I am doing is trying to map a windows drive in Grub2, but Grub2 is telling me that "map is unrecognized command"
Here is my
fdisk -l
Code:
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x84bf84bf
Device Boot Start End Blocks Id System
/dev/sda1 * 1 77825 625129281 7 HPFS/NTFS
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000201
Disk /dev/sdb doesn't contain a valid partition table
Disk /dev/sdc: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0000bec9
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 9325 74895360 83 Linux
/dev/sdc2 9325 9726 3226625 5 Extended
/dev/sdc5 9325 9726 3226624 82 Linux swap / Solaris
Here is my windows script located in /etc/grub.d/09_Windows
Code:
#!/bin/sh -e
echo "Adding Windows XP to GRUB 2 menu"
cat << EOF
menuentry "Windows xp" {
set root=(hd1,0)
map (hd1) (hd0)
map (hd0) (hd1)
chainloader +1
}
EOF
So I'm wondering if anyone knows how Grub2 has changed the way it maps drives?
I did search google.com/linux but could not find any relevant articles.
Thanks for any help
Dan