Re: A bit of a problem with a Linux/XP dual boot setup...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  On 07/17/2010 04:00 AM, Dick Roark wrote:
> I have two disks, one contains Fedora 12 and the other contains 
> Windows XP. Both boot and run individually in the same computer (by 
> swapping cables).  I am trying to set up a dual boot using GRUB but 
> I'm having some problems.  Here is my grub.conf file:
>
> # 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,0)
>
> # kernel /vmlinuz-version ro root=/dev/mapper/vg_shorty-lv_root
>
> # initrd /initrd-[generic-]version.img
>
> # boot=/dev/sda
>
> default=2
>
> timeout=15
>
> splashimage=(hd0,0)/grub/splash.xpm.gz
>
> # hiddenmenu
>
> title Fedora (2.6.32.16-141.fc12.i686.PAE)
>
> root (hd0,0)
>
> kernel /vmlinuz-2.6.32.16-141.fc12.i686.PAE ro 
> root=/dev/mapper/vg_shorty-lv_root LANG=en_US.UTF-8 
> SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
>
> initrd /initramfs-2.6.32.16-141.fc12.i686.PAE.img
>
> title Fedora (2.6.31.5-127.fc12.i686.PAE)
>
> root (hd0,0)
>
> kernel /vmlinuz-2.6.31.5-127.fc12.i686.PAE ro 
> root=/dev/mapper/vg_shorty-lv_root LANG=en_US.UTF-8 
> SYSFONT=latarcyrheb-sun16 KEYBOARDTYPE=pc KEYTABLE=us rhgb quiet
>
> initrd /initramfs-2.6.31.5-127.fc12.i686.PAE.img
>
> title Windows XP
>
> root (hd1,2)
>
> makeactive
>
> chainloader +1
>
>
> Here's the fdisk output:
>
> [root@shorty droark]# fdisk -l
>
>
> Disk /dev/sda: 500.1 GB, 500106780160 bytes
>
> 255 heads, 63 sectors/track, 60801 cylinders
>
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk identifier: 0x0001c9cc
>
>
> Device Boot Start End Blocks Id System
>
> /dev/sda1 * 1 26 204799+ 83 Linux
>
> Partition 1 does not end on cylinder boundary.
>
> /dev/sda2 26 60802 488179712 8e Linux LVM
>
> Partition 2 does not end on cylinder boundary.
>
>
> Disk /dev/sdb: 500.1 GB, 500106780160 bytes
>
> 255 heads, 63 sectors/track, 60801 cylinders
>
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk identifier: 0x076d076c
>
>
> Device Boot Start End Blocks Id System
>
> /dev/sdb1 1 26 204799+ 83 Linux
>
> Partition 1 does not end on cylinder boundary.
>
> /dev/sdb2 * 26 60802 488179650 7 HPFS/NTFS
>
> Partition 2 does not end on cylinder boundary.
>
>
> Disk /dev/dm-0: 494.3 GB, 494307115008 bytes
>
> 255 heads, 63 sectors/track, 60096 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: 5586 MB, 5586812928 bytes
>
> 255 heads, 63 sectors/track, 679 cylinders
>
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk identifier: 0x00000000
>
>
> Disk /dev/dm-1 doesn't contain a valid partition table
>
>
> Disk /dev/sdc: 1812.1 GB, 1812124903424 bytes
>
> 255 heads, 63 sectors/track, 220311 cylinders
>
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Disk identifier: 0x5044b1a4
>
>
> Device Boot Start End Blocks Id System
>
> /dev/sdc1 * 1 121601 976760001 7 HPFS/NTFS
>
> [root@shorty droark]#
>
>
> Eventually I have tried every combination for the disk/partition on 
> the NTFS disk.  While the "Windows XP" option always appears in the 
> GRUB options, the option fails each time with something like "disk not 
> found".  When that happens, I can still select the Fedora kernel and 
> away we happily go.
>
> Sorry for the bother and thanks for anything.
>
> Dick
>
You have only 2 partitions on disk containing windows, yet you say:

title Windows XP
root (hd1,2)
makeactive
chainloader +1

Since grub partition numbers start at 0, and windows is
on partition 1, your entry
root (hd1,2)
needs to change to
root (hd1,1)

Try it and let us know.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux