[opensuse] Grub won't boot Windoze
Hi folks! For some reason, Windoze has stopped booting on my system. I've had this machine for a couple years now, with WinXP sitting on a SATA physical drive and SUSE 10.0 - 10.2 on a separate IDE drive. I think the problem started when I got a portable USB drive that I had to turn off when rebooting (the BIOS would try to boot to it). I changed the BIOS so it would ignore the portable drive, boot to Grub (the IDE drive) first, then floppy, then CD. Now Grub loads fine, but selecting Windows from the menu displays the menu settings, and hangs. Here is the relevant portion of the Grub menu.lst: # Modified by YaST2. Last modification on Sun Apr 15 10:14:40 CDT 2007 default 0 timeout 8 ##YaST - generic_mbr gfxmenu (hd0,1)/boot/message ##YaST - activate ###Don't change this comment - YaST2 identifier: Original name: linux### title openSUSE 10.2 root (hd0,1) kernel /boot/vmlinuz root=/dev/hda2 vga=0x31a resume=/dev/hda1 splash=silent showopts elevator= initrd /boot/initrd title Windows rootnoverify (hd0,0) chainloader (hd1,0)+1 Device.map reads like this: (fd0) /dev/fd0 (hd1) /dev/sda (hd0) /dev/hda The YaST partitioner recognizes /dev/hda as the Linux drive, and /dev/sda as the Windows drive, with /dev/sda1 as the WIndows partition (and BTW, the files on the Windows partition are readable in Linux, so I haven't lost anything!) Any ideas? TIA, Mike -- Mike McCallister ProTek Writing Services workingwriter@prodigy.net "Translation from the Geek a specialty" Notes from the Metaverse: http://metaverse.wordpress.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 15 April 2007 10:55, Mike McCallister wrote:
Hi folks!
For some reason, Windoze has stopped booting on my system. I've had this machine for a couple years now, with WinXP sitting on a SATA physical drive and SUSE 10.0 - 10.2 on a separate IDE drive. I think the problem started when I got a portable USB drive that I had to turn off when rebooting (the BIOS would try to boot to it). I changed the BIOS so it would ignore the portable drive, boot to Grub (the IDE drive) first, then floppy, then CD. ... splash=silent showopts elevator= ^^^^^^^^^ I would remove above elevator entry unless you have purpose for it, but equal sign after elevator expects one of [anticipatory|cfq|deadline|noop], so it seems that it was entered by mistake (or bug).
See the old article http://lwn.net/2000/1123/kernel.php3 section "Riding the elevator" where you can find how usefull is for the desktop. If you have kernel source installed you can look in: Documentation/block/as-iosched.txt Documentation/block/deadline-iosched.txt
initrd /boot/initrd title Windows rootnoverify (hd0,0) chainloader (hd1,0) +1
title Windows map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) makeactive chainloader +1
Device.map reads like this:
(fd0) /dev/fd0 (hd1) /dev/sda (hd0) /dev/hda
The YaST partitioner recognizes /dev/hda as the Linux drive, and /dev/sda as the Windows drive, with /dev/sda1 as the WIndows partition (and BTW, the files on the Windows partition are readable in Linux, so I haven't lost anything!)
-- Regards, Rajko. http://en.opensuse.org/Portal -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 15 April 2007 11:50, Rajko M. wrote:
On Sunday 15 April 2007 10:55, Mike McCallister wrote:
Hi folks!
For some reason, Windoze has stopped booting on my system. I've had this machine for a couple years now, with WinXP sitting on a SATA physical drive and SUSE 10.0 - 10.2 on a separate IDE drive. I think the problem started when I got a portable USB drive that I had to turn off when rebooting (the BIOS would try to boot to it). I changed the BIOS so it would ignore the portable drive, boot to Grub (the IDE drive) first, then floppy, then CD.
...
splash=silent showopts elevator=
^^^^^^^^^ I would remove above elevator entry unless you have purpose for it, but equal sign after elevator expects one of [anticipatory|cfq|deadline|noop], so it seems that it was entered by mistake (or bug).
See the old article http://lwn.net/2000/1123/kernel.php3 section "Riding the elevator" where you can find how usefull is for the desktop. If you have kernel source installed you can look in: Documentation/block/as-iosched.txt Documentation/block/deadline-iosched.txt
initrd /boot/initrd title Windows rootnoverify (hd0,0) chainloader (hd1,0) +1
title Windows map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) makeactive chainloader +1
Device.map reads like this:
(fd0) /dev/fd0 (hd1) /dev/sda (hd0) /dev/hda
The YaST partitioner recognizes /dev/hda as the Linux drive, and /dev/sda as the Windows drive, with /dev/sda1 as the WIndows partition (and BTW, the files on the Windows partition are readable in Linux, so I haven't lost anything!)
Thanks, Rajko. Progress made, but no resolution yet. I added the suggested lines to the Windows entry of menu.lst and rebooted. When I selected Windows from the Grub graphical menu, a second, non-graphical Grub menu appeared. I selected Windows again and nothing happened. Selected openSUSE and booted normally. Are there really two map lines, or should I try one, then the other? Mike -- Mike McCallister ProTek Writing Services workingwriter@prodigy.net "Translation from the Geek a specialty" Notes from the Metaverse: http://metaverse.wordpress.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-04-17 06:35, Mike McCallister wrote:
On Sunday 15 April 2007 11:50, Rajko M. wrote:
<snip>
title Windows rootnoverify (hd0,0) chainloader (hd1,0) +1
title Windows map (hd0) (hd1) map (hd1) (hd0) rootnoverify (hd1,0) makeactive chainloader +1
Thanks, Rajko. Progress made, but no resolution yet. I added the suggested lines to the Windows entry of menu.lst and rebooted. When I selected Windows from the Grub graphical menu, a second, non-graphical Grub menu appeared. I selected Windows again and nothing happened. Selected openSUSE and booted normally.
Are there really two map lines, or should I try one, then the other?
Is that XP? If so, you should not need to remap the drives at all. Where was it originally installed? To the first partition on the second drive? (D: in Windows-speak). If so, then your Windows section should read: rootnoverify (hd1,0) chainloader (hd1,0) +1 If it was installed to C: instead (which I presume is the first partition of the first drive), then this should read: rootnoverify (hd0,0) chainloader (hd0,0) +1 You can add "makeactive" between the two lines if you wish, but unless you are also booting a DOS-like OS (eg. Win98), it is absolutely unnecessary to do so. XP (or 2K) should already have made the partition active when you installed that. -- Moral indignation is jealousy with a halo. -- HG Wells -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 17 April 2007 14:09, Darryl Gregorash wrote:
<snip>
Is that XP? If so, you should not need to remap the drives at all. Where was it originally installed? To the first partition on the second drive? (D: in Windows-speak). If so, then your Windows section should read:
rootnoverify (hd1,0) chainloader (hd1,0) +1
If it was installed to C: instead (which I presume is the first partition of the first drive), then this should read:
rootnoverify (hd0,0) chainloader (hd0,0) +1
You can add "makeactive" between the two lines if you wish, but unless you are also booting a DOS-like OS (eg. Win98), it is absolutely unnecessary to do so. XP (or 2K) should already have made the partition active when you installed that.
Darryl, If you're asking where Grub is installed, I'm not sure. XP is installed on its own physical drive, /dev/sda (aka hd1 in device.map). SUSE is installed on /dev/hda (aka hd0). Grub initially had just the plain rootnoverify and chainloader lines (and I think I've tried all the hd0 and hd0 permutations for those lines, and XP still won't boot. I did remove the makeactive line from menu.lst after your note, but that didn't make any difference. The fact that I get a second Grub window when I choose to boot XP might be a clue, perhaps. I was playing with all sorts of settings in YaST, and I'm starting to wonder whether I've got a copy of Grub on each physical drive. I'm not sure how I'd remove the copy on the NTFS drive, though. Thoughts appreciated. Mike McCallister -- Mike McCallister ProTek Writing Services workingwriter@prodigy.net "Translation from the Geek a specialty" Notes from the Metaverse: http://metaverse.wordpress.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On 2007-04-18 19:55, Mike McCallister wrote:
On Tuesday 17 April 2007 14:09, Darryl Gregorash wrote:
<snip>
Is that XP? If so, you should not need to remap the drives at all. Where was it originally installed? To the first partition on the second drive? (D: in Windows-speak). If so, then your Windows section should read:
rootnoverify (hd1,0) chainloader (hd1,0) +1
Based on what you said, this is what your menu entry for XP should be. I believe you had instead (hd0,0) in the chainloader entry. Since that brings up a grub window, you seem to have grub installed to the boot sector of /dev/hda1 rather than to the MBR of /dev/hda (it may have been installed there too, but that is not what you are seeing after trying to boot into Windows).
Instead, the menu entry I saw set (hd1,0) as the root (with the rootnoverify command), but then loaded the first sector of (hd0,0) with "chainloader (hd0,0) +1". This is clearly incorrect. Just another note: Having just checked the grub documentation (info grub, you may wish to peruse that document, as it is rather comprehensive), I see that you can also use this: rootnoverify (hd1,0) chainloader +1 <snip> -- Moral indignation is jealousy with a halo. -- HG Wells -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Darryl Gregorash
-
Mike McCallister
-
Rajko M.