[opensuse] boot loader problem
Prior to installing openSUSE 11.1 I decided to upgrade to a larger hard drive. I moved to a 500G drive and made one 120G partition on this drive. Using DD and ntfsresize I moved Windows XP into this partition. I then installed openSUSE 11.1. OpenSUSE created the following partition scheme and openSUSE booted correctly. Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0007d01a Device Boot Start End Blocks Id System /dev/sda1 1 14940 120005518+ 7 HPFS/NTFS /dev/sda2 * 14941 60801 368378482+ f W95 Ext'd (LBA) /dev/sda5 14941 15202 2104483+ 82 Linux swap / Solaris /dev/sda6 15203 20424 41945683+ 83 Linux /dev/sda7 20425 60801 324328221 83 Linux Sda6 is my root partition and uses ext3. Sda7 is my /usr partition and uses xfs. Grub resides in /boot on sda6. Here is a copy of the grub file. # Modified by YaST2. Last modification on Sat Jan 17 07:46:49 EST 2009 default 0 timeout 8 ##YaST - generic_mbr gfxmenu (hd0,5)/boot/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 11.1 - 2.6.27.7-9 kernel (hd0,5)/boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata- ST3500630AS_6QG12V6V-part6 resume=/dev/disk/by-id/ata-ST3500630AS_6QG12V6V- part5 splash=silent showopts vga=0x31a initrd (hd0,5)/boot/initrd-2.6.27.7-9-default ###Don't change this comment - YaST2 identifier: Original name: windows### title Windows rootnoverify (hd0,0) chainloader +1 ###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 11.1 - 2.6.27.7-9 kernel (hd0,5)/boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata- ST3500630AS_6QG12V6V-part6 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x31a initrd (hd0,5)/boot/initrd-2.6.27.7-9-default ###Don't change this comment - YaST2 identifier: Original name: floppy### title Floppy rootnoverify (fd0) chainloader +1 I am not sure what happened but I was never able to boot into Windows XP. The boot process would halt just prior to getting the screen with all of the user names on it. I decided that instead of running fixmbr I would install Windows 7 on the first partition instead. I have been wanting to try it and I figured I was overwriting the mbr anyway and it shouldn't matter that much since grub resides on sda6. I was able to boot into Windows 7 after the install. I then went into fdisk and changed the active partition from sda1 back to sda2 which was the active partition set by openSUSE prior to the Windows 7 install. When I rebooted the computer I got the message - No operating system found. Please insert a disk into the cd-rom. Usually this is a bios message but why would I be getting this message since the configuration correctly booted Linux prior to the Windows 7 install? I was able to get back into Linux using the install CD and am using Kmail to write this post. I reinstalled grub both from the recovery disk and then again by running grub-install from the terminal. If I reset the active partition back to sda1 I am still able to boot into Windows 7. How can I get the system to boot correctly and more importantly, what went wrong? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Dave wrote:
Prior to installing openSUSE 11.1 I decided to upgrade to a larger hard drive. I moved to a 500G drive and made one 120G partition on this drive. Using DD and ntfsresize I moved Windows XP into this partition. I then installed openSUSE 11.1. OpenSUSE created the following partition scheme and openSUSE booted correctly.
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x0007d01a
Device Boot Start End Blocks Id System /dev/sda1 1 14940 120005518+ 7 HPFS/NTFS /dev/sda2 * 14941 60801 368378482+ f W95 Ext'd (LBA) /dev/sda5 14941 15202 2104483+ 82 Linux swap / Solaris /dev/sda6 15203 20424 41945683+ 83 Linux /dev/sda7 20425 60801 324328221 83 Linux
Sda6 is my root partition and uses ext3. Sda7 is my /usr partition and uses xfs. Grub resides in /boot on sda6. Here is a copy of the grub file.
# Modified by YaST2. Last modification on Sat Jan 17 07:46:49 EST 2009 default 0 timeout 8 ##YaST - generic_mbr gfxmenu (hd0,5)/boot/message ##YaST - activate
###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 11.1 - 2.6.27.7-9 kernel (hd0,5)/boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata- ST3500630AS_6QG12V6V-part6 resume=/dev/disk/by-id/ata-ST3500630AS_6QG12V6V- part5 splash=silent showopts vga=0x31a initrd (hd0,5)/boot/initrd-2.6.27.7-9-default
###Don't change this comment - YaST2 identifier: Original name: windows### title Windows rootnoverify (hd0,0) chainloader +1
###Don't change this comment - YaST2 identifier: Original name: failsafe### title Failsafe -- openSUSE 11.1 - 2.6.27.7-9 kernel (hd0,5)/boot/vmlinuz-2.6.27.7-9-default root=/dev/disk/by-id/ata- ST3500630AS_6QG12V6V-part6 showopts ide=nodma apm=off noresume edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 x11failsafe vga=0x31a initrd (hd0,5)/boot/initrd-2.6.27.7-9-default
###Don't change this comment - YaST2 identifier: Original name: floppy### title Floppy rootnoverify (fd0) chainloader +1
I am not sure what happened but I was never able to boot into Windows XP. The boot process would halt just prior to getting the screen with all of the user names on it. I decided that instead of running fixmbr I would install Windows 7 on the first partition instead. I have been wanting to try it and I figured I was overwriting the mbr anyway and it shouldn't matter that much since grub resides on sda6.
I was able to boot into Windows 7 after the install. I then went into fdisk and changed the active partition from sda1 back to sda2 which was the active partition set by openSUSE prior to the Windows 7 install. When I rebooted the computer I got the message - No operating system found. Please insert a disk into the cd-rom. Usually this is a bios message but why would I be getting this message since the configuration correctly booted Linux prior to the Windows 7 install?
I was able to get back into Linux using the install CD and am using Kmail to write this post. I reinstalled grub both from the recovery disk and then again by running grub-install from the terminal. If I reset the active partition back to sda1 I am still able to boot into Windows 7.
How can I get the system to boot correctly and more importantly, what went wrong?
Hi, do you let bootloader proposal or change somethink in yast2 bootloader? What should work is this - open yast2 bootloader write grub code to MBR and let active flag for windows, as grub in MBR ignore active flag, but generic bootcode doesn't (and that is default). Second option which should work is add to windows entry makeactive key (option in yast2 is Activate this Partition when selected for boot). I hope this help, otherwise ask describe what going wrong ;) JR -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
----- Original Message ----
From: Josef Reidinger <jreidinger@suse.cz> To: opensuse@opensuse.org Cc: Dave <diacobel@yahoo.com> Sent: Monday, January 19, 2009 3:48:03 AM Subject: Re: [opensuse] boot loader problem
Hi, do you let bootloader proposal or change somethink in yast2 bootloader? What should work is this - open yast2 bootloader write grub code to MBR and let active flag for windows, as grub in MBR ignore active flag, but generic bootcode doesn't (and that is default). Second option which should work is add to windows entry makeactive key (option in yast2 is Activate this Partition when selected for boot). I hope this help, otherwise ask describe what going wrong ;) JR
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Thank you for getting back to me. Since my first post I have been able to partially able to restore the bootloader. Using yast I ran the restore the mbr option. This took out the Windows mbr data and allowed me to access the grub boot menu on startup. I can boot into Linux but not into Windows 7. I have set the active flag on the windows partiton and inserted the makeactive option in menu.lst. The windows section in this file currently reads: title Windows 7 Ultimate rootnoverify (hd0,0) makeactive chainloader +1 When I select the Windows option from the grub boot menu the screen will go blank for a couple of seconds and then I will be back at the grub boot menu. I am starting to think Windows has again thrown something new into the mix that is stopping the dual boot process. For one thing, while in Linux I cannot access the files on the Windows partition. When I attempt to mount the partiton from a terminal window I get the message: Voyager:/home/dave # mount -t ntfs /dev/sdd1 /windows/C Unexpected clusters per mft record (-1). Failed to mount 'dev/sdd1': Invalid arguement The device '/dev/sda1' doesn't have a valid NTFS. (even though the partition id is set to 7 - HPFS/NTFS) Perhaps they made good on their promise of delivering a WinFS filesystem? If they changed the filesystem perhaps they changed the boot sequence as well? I am leery of placing grub in the mbr. If you think doing so will make a difference instead of just trying it to see what happens I will give a try. If anyone else has had luck getting Windows 7 to dual boot I would love to learn how. Thanks, Dave -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
Dave
-
Josef Reidinger