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



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



Relevant Pages

  • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
    ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
    (SunManagers)
  • Re: laptop - new HD - no CD or floppy drive
    ... I put the laptop HD back in the PC and I could boot from it. ... If the primary partition has an incorrect boot sector. ... If the disk geometry is incorrect. ...
    (microsoft.public.windowsxp.hardware)
  • Re: laptop - new HD - no CD or floppy drive
    ... I put the laptop HD back in the PC and I could boot from it. ... If the primary partition has an incorrect boot sector. ... If the disk geometry is incorrect. ...
    (microsoft.public.windowsxp.hardware)
  • Re: Joining C and D drives
    ... Are C: and D: on the same disk? ... If there are too many files, move them to your backup disk. ... Delete the D: partition. ... Change the boot order in the BIOS setup screen, ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Can I boot of an XP System disk, nested in a logical volume
    ... I'll boot of Partition Magic or some other kind of magic and fix it that-a-way. ... It's been a long time since I messed with partitions like this, but in the back of my head I have this fragment about boring registry hands-on editing, 'derived Disk ID's' and the 'Master Boot Sector' -- that's S as in 'Senile'. ... One reason for the drive letter change on cloned drives is to keep the parent drive hooked up the first time the clone is booted, being that the clone has the same Mount Manager database, and being that the Mount Manager *always* respects drive letter assignments, it will see the parent drive and its valid disk signature and assign the C: drive letter to the original C: drive, so there will be no C: letter available for the clone. ...
    (microsoft.public.windowsxp.basics)