Jump to content

Windows kills LiLo [solved]


fuego
 Share

Recommended Posts

Hello esteemed Mandriva users.

 

I have a boot issue with my XP/Mandriva2006 setup.

 

The drive is a 30Gb with partitions as follows:

1) 60Mb boot Fat32 - contains MBR

2)10Gb WinXp NTFS

3)9Gb DataStash Fat32

4)10Gb Linux Mandriva 2006

5)600Mb Linux swap

 

I first installed XP, ran fine. Then I installed Mandriva, awsome I love it.

I reboot and am presented with the LiLo menu. I chose Linux. It boots, yay no prob.

I reboot. I get Lilo menu. I choose win. It boots, Yay no problems. I reboot; it goes straight back to windows, no sign on lilo anymore.

 

I assigned Lilo to the root linux partition on install after trying it in the first partition, still no joy.

I tried adding a line to the boot.ini too but I don't know what file or location to point to to boot linux.

 

I am very new to linux. 3 weeks maybe.

Please can anyone enlighten me on this issue?

 

Thanks

~fuego~

Edited by fuego
Link to comment
Share on other sites

So you can see what is happening and try to get away from the CLI or command line interface so early on in your experience, try the following.

 

Put in your No1 Mandriva disk and reboot, then do a "pretend" upgrade and follow through to the last summary of settings. In the part regarding the boot up, select grub if it is there as a choice as bootloader and select for it to be installed on the MBR (Master Boot Record) . If grub is not listed it means it was not installed so select lilo and again install it as bootloader on the MBR. You can also recheck other system settings as well then reboot.

 

All of this only takes a few minutes and is not as confusing as trying to use the CLI.

Cheers. John.

Link to comment
Share on other sites

That "60MB FAT32 boot partition" is a bad idea. Who told you to do so?

Which partitions are primary?

A reasonable solution would be formatting your 60M FAT32 partition as ext2, and mounting it within Mandrake as /boot (it will move all files contained in /boot in there after you do that on mcc/harddrake). After that, if using LILO, you do have to rerun mcc/boot and reconfigure the boot loader. Simply pick writing it to the HD mbr ( /dev/hda, or /dev/sda if you use a SATA harddisk).

Edited by scarecrow
Link to comment
Share on other sites

Hey thanks for the input guys!

 

I have unfortunately tried to put lilo on the first partition. When I do this I can select either operating system but if I select windows and go into windows and then reboot I will no longer get my lilo but just windows boots up.

 

Any ideas how to stop this?

Link to comment
Share on other sites

From your description, windows is conducting a "repair" when it runs. Are you running a utility by windows or a third party vendor that "repairs" the drive when running automatically, like an antivirus program? Something is "repairing" the mbr. There are utilities that can be set to do that. Turn it off of automatic and give it a new mbr as a restore point.

Link to comment
Share on other sites

Thanks Everyone !

 

I have sorted it out.

 

Now I can choose either operating system to load and it's all good.

 

Here's how I did it.

 

I left the partitions in the same order as described upstairs.

Then I reinstalled lilo to my linux partition.

Then I had to go into linux and open a console and make a 512 byte file of the boot to copy to my first patition.

 

this was using the dd comand to create a file called bootsect.lnx

this file was then copied to the first partition and the boot.ini edited to add the following line:

c:/bootsect.lnx

this will allow you to boot to lilo or grub from windows which in turn will allow you to switch back to the windows boot loader.

 

so both boot loaders can now be accessed and both OS's can also be loaded.

Thanks again for the input.

Mandriva rocks!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...