Computing.Net > Forums > Linux > Wiping GRUB off MBR

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Wiping GRUB off MBR

Reply to Message Icon

Name: rturro
Date: May 6, 2006 at 03:05:30 Pacific
OS: WinXP/SuSE dual-boot
CPU/Ram: Athlon 2100+/1024 MB
Product: ASUS
Comment:

I have a dual-boot (XP/SuSE) with WinXP on the primary partition and SuSE on the extended partition. SuSE has been installed on an HDD with pre-existing WinXP. When installing SuSE, GRUB was written in the master boot record of the primary (WinXP) partition.

My task: wiping off the MBR to enable clean re-install of WinXP, then re-partitioning the HDD and installing SuSE.
My problem: GRUB is stuck in MBR and does not want to be wiped off :-)
What I tried:
1) fdisk (starting from Win 95 bootdisk throught to Win 98 bootdisk) - deleted and re-created partitions, set a primary (and active) partition, formatted c: /u /s - GRUB is still in MBR. To be fair I have not tried a WinXP Pro bootdisk set - currently downloading and will give it a try tonight.
2) Partition Magic 8 bootdisk - deleted everything of the disk, created a single partition, formatted it as NTFS, rebooted - GRUB is still in MBR.
3) WinXP installation CD - booted from it, went to Recovery Console mode, fixboot - Yes; fixmbr - Yes, rebooted - GRUB is still in MBR.

It seems like whatever I do is just not enough to get GRUB out of MBR.

Any ideas and help are much appreciated.


Also, one more question: if I have a dual-boot WinXP/Linux system, what is more preferable, convenience-safety-wise: installing GRUB into MBR on the primary (active) partition (in my case, WinXP partition) or having it in the MBR of the extended partition (in my case, the Linux partition)?



Sponsored Link
Ads by Google

Response Number 1
Name: arochester
Date: May 6, 2006 at 12:51:59 Pacific
Reply:

I think you use fdisk with the command "fdisk /mbr". This should "repair"/replace the mbr.


0

Response Number 2
Name: Dlonra
Date: May 6, 2006 at 18:17:50 Pacific
Reply:

regarding safety, I always put my bootloader on diskette and never touch the hard drive mbr.


0

Response Number 3
Name: 3Dave
Date: May 8, 2006 at 01:39:23 Pacific
Reply:

FYI you only have one MBR (Master Boot Record). Each partition can have a boot section but only one can be the master and is usually on /dev/hda or /dev/sda. I personally always use the MBR, but each to their own. I also keep boot floppies.

Deleting and formatting partitions will not affect any boot loaders. Just installing XP from the CD (or any windoze version) will overwrite your boot loader for you (with no warning....thanx Bill!). You can delete it by hand from within linux with:
# dd if=/dev/zero of=/dev/hda bs=512 count=1
You can do the same but keep the partition table intact with:
# dd if=/dev/zero of=/dev/hda bs=446 count=1


0

Response Number 4
Name: lynnevan
Date: May 23, 2006 at 16:09:10 Pacific
Reply:

There's an old M$ NT floppy prog called 'disksave' saved my ss many times. Backs up MBR & Bootsector. Install windoz, run disksave & anytime you have problems, just reinstall clean MBR &or bootsector. Don't know what happens if you decide to re-partition windoz though.

lynnevan


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Wiping GRUB off MBR

How do I reactivate the old MBR? www.computing.net/answers/linux/how-do-i-reactivate-the-old-mbr/17762.html

GRUB and PartitionMagic 8 www.computing.net/answers/linux/grub-and-partitionmagic-8/18055.html

GRUB and Windows 98 - a bad mix www.computing.net/answers/linux/grub-and-windows-98-a-bad-mix/23384.html