View Full Version : restore MBR?
BoHu
October 28th, 2005, 01:34 PM
I am dual booting Win2K and Ubuntu using grub. I want to erase Ubuntu and recover the hard drive space for win2k.
But erasing Ubuntu also means erasing grub. Won't that make Windows unbootable? How do I get around this?
Efwis
October 28th, 2005, 03:19 PM
I am dual booting Win2K and Ubuntu using grub. I want to erase Ubuntu and recover the hard drive space for win2k.
But erasing Ubuntu also means erasing grub. Won't that make Windows unbootable? How do I get around this?
I may be wrong on this, so someone please correct me if I am, but I think its really a simple fix.
I recommend doing this step first in case you have to fix the MBR. Make a boot disk and make sure your boot disk has Fdisk on it
If the your boot disk doesn't have fdisk then go to Bootdisk.com (http://www.bootdisk.com) and download a copy of the Windows 98 boot disk.
NOTE: Make sure you do not get the OEM version.
then do the following:
erase your Ubuntu partition like you want.
Reboot and see if Windows loads correctly. If it does, the next step is to regain that space that was used by Ubuntu.
If you can't boot to Windows:
start the computer with the boot disk and go to your command prompt
type the following at the command prompt and hit enter
fdisk /MBR
please note the space between the "k" and the "/"
then reboot your computer normally and reclaim the space that was previously used by Ubuntu.
hope this helps.
BoHu
October 29th, 2005, 01:32 PM
so fdisk /MBR will write a new master boot record?
RayH
October 29th, 2005, 01:37 PM
That should do it. I had a PIII system that I installed Ubuntu 5.10 on and then wanted to install XP Home instead for my wife. I did the XP home install but when I rebooted I still got the grub boot loader. I booted to a boot disk, ran fdisk /mbr and rebooted and XP came right up.
Moloko
October 29th, 2005, 01:47 PM
so fdisk /MBR will write a new master boot record?
yes, another option is boot from the win2k cd and go to the "Recovery console", there is a couple of commands that are usefull:
FIXBOOT
FIXMBR
but at least "fdisk /mbr" is faster an easy.
Efwis
October 30th, 2005, 02:42 AM
yes, another option is boot from the win2k cd and go to the "Recovery console", there is a couple of commands that are usefull:
FIXBOOT
FIXMBR
but at least "fdisk /mbr" is faster an easy.
its best to use "fidisk /mbr" because there are reported issues of the recovery consoles' "fiixboot" and "fixmbr" not working properly.
Moloko
October 30th, 2005, 06:03 AM
its best to use "fidisk /mbr" because there are reported issues of the recovery consoles' "fiixboot" and "fixmbr" not working properly.
in my case when I tried to use fixboot and fixmbr was useless, it simply doesn't work, but in the M$ support web is the "oficial" solution :razz:
vBulletin® v3.8.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.