I am building a new dual boot system for WinXP and 11.4/KDE4.7.1
I have 3 hard drives that look like:
fdisk -l
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x41dff28f
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 1953523711 976760832 83 Linux
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
240 heads, 63 sectors/track, 41345 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00040dfd
Device Boot Start End Blocks Id System
/dev/sdb1 * 63 625121279 312560608+ 7 HPFS/NTFS/exFAT
Disk /dev/sdc: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders, total 293046768 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x1a291a28
Device Boot Start End Blocks Id System
/dev/sdc1 * 2048 208895 103424 83 Linux
/dev/sdc2 208896 16979967 8385536 82 Linux swap / Solaris
/dev/sdc3 16979968 293046271 138033152 83 Linux
/dev/sda is dedicated to /home (Probably should not be marked bootable, but I don’t think that is my issue)
/dev/sdc is /boot, swap and /
/dev/sdb is WinNT.
Grub was created with YAST and loaded into the MBR of /dev/sdc
Here is the GRUB menu (after modification by PTA’s updategrub)
cat /boot/grub/menu.lst
# Modified by YaST2. Last modification on Fri Sep 16 19:12:07 EDT 2011
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# Configure custom boot parameters for updated kernels in /etc/sysconfig/bootloader
default 0
timeout 8
gfxmenu (hd0,0)/message
##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux###
title Desktop -- openSUSE 11.4 - 2.6.37.6-0.7
root (hd0,0)
kernel /vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-id/ata-WDC_WD1500AHFD-00RAR4_WD-WMAP41624125-part3 resume=/dev/disk/by-id/ata-WDC_WD1500AHFD-00RAR4_WD-WMAP41624125-part2 splash=silent quiet showopts vga=0x346
initrd /initrd-2.6.37.6-0.7-desktop
###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 11.4 - 2.6.37.6-0.7
root (hd0,0)
kernel /vmlinuz-2.6.37.6-0.7-desktop root=/dev/disk/by-id/ata-WDC_WD1500AHFD-00RAR4_WD-WMAP41624125-part3 showopts apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x346
initrd /initrd-2.6.37.6-0.7-desktop
###Don't change this comment - YaST2 identifier: Original name: windows###
title WindowsXP
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
makeactive
chainloader +1
###Don't change this comment - Added by updategrub Fri Sep 16 19:13:22 EDT 2011###
###Don't change this comment - YaST2 identifier: Original name: windows###
title Microsoft Windows XP Professional - added by updategrub
map (hd1) (hd0)
map (hd0) (hd1)
rootnoverify (hd1,0)
chainloader +1
###Don't change this comment - YaST2 identifier: Original name: GrubOnsdc###
title Legacy Grub in sdc MBR
rootnoverify (hd0)
chainloader +1
I set the boot order in BIOS to be : /dev/sdc-/dev/sdb-/dev/sda
I can boot into menu item 1(the default) SuSE 11.4 no problem.
If I select menu item 3 - title WindowsXP, I get an Error13: Invalid or unsupported executable format message, I think from Grub. Grub restarts, offers the menu again.
Same if I select menu item 4 - *title Microsoft Windows XP Professional - added by updategrub
*
If I restart the system and set the BIOS boot order to be /dev/sdb-/dev/sdc-/dev/sda, Windows boots normally, but of course I have no option to boot Linux.
I am doing(trying) it this way because I want /dev/sdb to stay windows only, as I will ultimately move it to another WinXP only machine.
I had hoped updategrub would resolve this, but not so far.
Looking forward to hearing from you again, PTA