PDA

View Full Version : newbie F12 and W7


aftcg
8th February 2010, 12:06 AM
Hi everyone!

I have been lurking around for a while playing around with Fedora on a few resurrected machines. This is so much fun!!

So I got a bit cocky and bought a 500Gib hdd for my Dell6400 so I could dual boot for fun. I have to use Windows because that's what we use for editing video on the road, and I'm stuck. However, I want F12 on the 100 GiB partition that I have made - and it installed very well and runs smooth. (save for the wireless part, but I'll find that stuff later)

This topic is well worn, and I have done a bit of research, but to no avail. I keep getting the
"Error 21: Selected disk does not exist" when I try to make windows boot...see, I've been trying to make it work.

Please, one more time, for me...what should my grub.conf look like?

root@aftcg2 aftcg]# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x19850e80

Device Boot Start End Blocks Id System
/dev/sda1 1 18 144553+ de Dell Utility
/dev/sda2 19 929 7312384 7 HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3 929 48053 378527744 7 HPFS/NTFS
/dev/sda4 48054 60801 102398310 5 Extended
/dev/sda5 * 48054 48079 204800 83 Linux
/dev/sda6 48079 60801 102193151+ 8e Linux LVM

Disk /dev/dm-0: 98.8 GB, 98838773760 bytes
255 heads, 63 sectors/track, 12016 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 5804 MB, 5804916736 bytes
255 heads, 63 sectors/track, 705 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/sdb: 512 MB, 512753664 bytes
16 heads, 32 sectors/track, 1956 cylinders
Units = cylinders of 512 * 512 = 262144 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1956 500720 e W95 FAT16 (LBA)
[root@aftcg2 aftcg]# 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 (hd0,4)
# kernel /vmlinuz-version ro root=/dev/mapper/vg_aftcg2-lv_root
# initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,4)/grub/splash.xpm.gz
title Fedora (2.6.31.5-127.fc12.i686)
root (hd0,4)
kernel /vmlinuz-2.6.31.5-127.fc12.i686 ro root=/dev/mapper/vg_aftcg2-lv_root noiswmd LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
initrd /initramfs-2.6.31.5-127.fc12.i686.img
title Windows7 BlueScreenOfDeath
rootnoverify (hd1,0)
map (hd0) (hd1)
map (hd1) (hd0)
chainloader +1
makeactive
boot

Thank you!
Eric

glennzo
8th February 2010, 01:57 AM
You have only one disk so the map commands are not needed. Try
title Windows7 BlueScreenOfDeath
rootnoverify (hd0,1)
chainloader +1
Windows is either on /dev/sda2 which is (hd0,1) or /dev/sda3 which is (hd0,2).

aftcg
8th February 2010, 03:10 AM

Ah ha! That's it! I forgot "0" is '1' when it comes to these things.

Works fine now.

glennzo
8th February 2010, 03:11 AM
Dang! I hate when that happens ;)