Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old October 28th, 2005   #1
BoHu
5 Cups of Ubuntu
 
BoHu's Avatar
 
Join Date: Mar 2005
Beans: 32
Send a message via Yahoo to BoHu
restore MBR?

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?
BoHu is offline   Reply With Quote
Old October 28th, 2005   #2
Efwis
Ubuntu Extra Shot
 
Efwis's Avatar
 
Join Date: May 2005
Location: Iowa, USA
Beans: 361
Ubuntu 8.04 Hardy Heron
Send a message via Yahoo to Efwis
Re: restore MBR?

Quote:
Originally Posted by BoHu
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 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

Code:
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.
__________________
Registered Linux User #400602
Efwis is offline   Reply With Quote
Old October 29th, 2005   #3
BoHu
5 Cups of Ubuntu
 
BoHu's Avatar
 
Join Date: Mar 2005
Beans: 32
Send a message via Yahoo to BoHu
Re: restore MBR?

so fdisk /MBR will write a new master boot record?
BoHu is offline   Reply With Quote
Old October 29th, 2005   #4
RayH
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 27
Re: restore MBR?

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.
RayH is offline   Reply With Quote
Old October 29th, 2005   #5
Moloko
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 23
Kubuntu 6.10 Edgy
Re: restore MBR?

Quote:
Originally Posted by BoHu
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.
Moloko is offline   Reply With Quote
Old October 30th, 2005   #6
Efwis
Ubuntu Extra Shot
 
Efwis's Avatar
 
Join Date: May 2005
Location: Iowa, USA
Beans: 361
Ubuntu 8.04 Hardy Heron
Send a message via Yahoo to Efwis
Re: restore MBR?

Quote:
Originally Posted by Moloko
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.
__________________
Registered Linux User #400602
Efwis is offline   Reply With Quote
Old October 30th, 2005   #7
Moloko
5 Cups of Ubuntu
 
Join Date: Oct 2005
Beans: 23
Kubuntu 6.10 Edgy
Re: restore MBR?

Quote:
Originally Posted by Efwis
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
Moloko is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:07 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry