LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   unable to open /mbr (https://www.linuxquestions.org/questions/linux-newbie-8/unable-to-open-mbr-341097/)

randau 07-07-2005 08:22 PM

unable to open /mbr
 
I am trying to remove lilo with the command fdisk /mbr but get "unable to open /mbr".

I want to do this so that I can reach my Windows OS (which is not recognized by lilo). I have erased all partitions except the ones containing Windows, after having a failed Gentoo.

HELP!

JimBass 07-07-2005 08:31 PM

You have to let window$ repair the mbr. If you put the M$ XP cd (assuming it is XP, the older versions may support this as well) and boot to a repair prompt, there should be a choice to repair the MBR.

You can check google and microsoft's website, and there will be instructions of how to issue and use the repair feature of the disk.

Peace,
JimBass

randau 07-07-2005 08:36 PM

Thx.
The problem i s that I dont have that cd.

Tinkster 07-07-2005 08:44 PM

If the distro you're using has taken a snap-shot
you could try
lilo -u /dev/hda


Cheers,
Tink

v00d00101 07-07-2005 10:11 PM

If not try making a win xp or win 2k bootdisk. You can get the images from here and then use dd to write them to a floppy.

Before you redo the mbr, you may want to save the lilo mbr to a file so you can boot to linux using the nt bootloader. A guide to doing this can be found here:

http://www.linuxquestions.org/questi...45#post1733645


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