LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Help installing dual boot (https://www.linuxquestions.org/questions/debian-26/help-installing-dual-boot-271582/)

AcetoliNe 12-29-2004 01:12 PM

Help installing dual boot
 
I have recently installed Ubuntu 4.1 (a distribution based largely on debian) on my Windows system. Now windows doesn't boot.

I have GRUB as the default bootloader. I also used to have both Windows 98 and XP installed.

I only have one hard drive, which had four partitions: one primary (Windows 98) and three other logical drives (within an extended partition), the first of which Windows XP was installed in. So,

C: Win98 (hd0, 0)
D: WinXP (hd0, 4)
E: (hd0, 5)
F: (hd0, 6)

When I installed linux, I resized F to linux swap size, and consequently made E bigger. I installed Linux to E, and made F the swap partition.
When installing GRUB, it recognized Windows and said it's okay to install GRUB to the Master Boot Record. I did as it said, and now Windows doesn't work.

I researched on the Internet, and basically came up with the fact that my having two Windows' installed may be the problem.

Is there any way to fix this without reinstalling Windows and maintaining Linux?

TigerOC 12-30-2004 11:17 AM

You will have to edit /boot/grub/menu.lst and check what has been configured but you should have lines like this;

title Windows 98
root (hd0,0)
makeactive
chainloader +1

title Windows XP
root (hd0,4)
makeactive
chainloader +1

Once you made these changes then you need to write them to the mbr by doing as root grub-update.

AcetoliNe 12-31-2004 02:49 AM

Thanks for the help!


All times are GMT -5. The time now is 04:33 AM.