LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Dualbooting WinXP and Suse 10.0 using GRUB (https://www.linuxquestions.org/questions/linux-newbie-8/dualbooting-winxp-and-suse-10-0-using-grub-394250/)

Zmyrgel 12-18-2005 03:24 PM

Dualbooting WinXP and Suse 10.0 using GRUB
 
Okay, my problem at the moment is this.
-I have installed Windows XP on a master drive and it's using NTFS.
-I added a another hd to pc and made it master disk and the previous xp hd was put to slave.
-I installed SuSE 10.0 on the new master hard drive
-GRUB is installed on a boot partition of the current master disk(50mb).


After a while I tried to boot my system back to windows but the automatic option for booting into windows didn't work. It just printed out this "chainloader (hd1,0) +1".

After little browsing in the net I found few hints what to do but I havenīt found any help for my problem yet. My /boot/grub/menu.lst has this kind of line in the WinXP section:
title Windows XP
rootnoverify (hd1,0)
makeactive
chainloader +1
boot

According to mount command my windows C drive is /dev/hdb1/ which is hd1,0 in GRUB, right?
I'm not sure about that boot line, it was used some exampel in the net so I tried it and it didn't work. I have no other OS than XP and SuSE on the machine so I thought I don't need to put map (hd1) (hd0) lines in menu.lst?

At the above lines the GRUB just prints those lines into screen and nothing happens after that. One of the error messages I got was "Error 18: Selected cylinder exceeds maximum supported by BIOS"

Does anyone have a solid solution to this. The GRUB has worked in the past when it was installed on the same MBR as WinXP, overwriting the XP:s version. It broke down and I have now tried to install these loaders better to avoid reinstalling whole operating systems for few mistakes :)

bigrigdriver 12-18-2005 06:28 PM

Windows is jealous of its position in the scheme of things. It wants to be first (read primary or master). You now have it on the slave drive. So, to fix this, convince it that is really master.

Between 'title windows' and 'rootnoverify' add these two lines:
map (hd0,0) (hd1,0)
map (hd1,0) (hd0,0)

That will remap the drives to windows satisfaction.

Note: I could be wrong about where in the config to put those lines. If they don't work there, move them down one line (after rootnoverigy) then try again.

Zmyrgel 12-19-2005 12:31 AM

Okay, I thought I didn't need those lines but I'll try that. Thanks.

Edit: Okay, Thanks. My GRUB is now working as it should.

Zmyrgel 01-27-2006 02:39 PM

Lifting this thread as I have a new problem.

I canīt boot to Windows straight from Grub as itīs missing few lines from itīs command like "rootnoverify (hd1,0). If I boot to SuSE 10.0 (works perfectly) and modify /boot/grub/menu.lst and save the changes, at the next boot-up it has lost the changes. I have also tried to use yast but same results. Any idea whatīs causing this?

pixellany 01-27-2006 02:49 PM

Make sure you are editing menu.lst as root. After editing with a text ediotr, you should find both old and new versions in /boot/grub---the old version with have "~" appended

Zmyrgel 01-27-2006 02:58 PM

I tried as a root but Iīll try again later on. Iīm now at XP so I canīt test that now. Logically thinking that shoud work. If I remember correctly it added the lines I edited into it but for some reason deleted the "rootnoverify" line... I added the makeactive and chainloader lines. ... Weird.


All times are GMT -5. The time now is 09:57 AM.