PDA

View Full Version : [ubuntu] How to remove grub/bootloader from IDE drive MBR?



Nixie Pixel
March 11th, 2009, 04:10 AM
Hi, I am using an old IDE drive in a newly built system, and I have some problems. I'm trying to get my primary SATA drive to boot, but BIOS won't let me choose it as my boot HDD because I have an IDE drive with an MBR on it. That MBR apparently contains GRUB (which fails when it is run), but I don't know why - it was never used as a boot drive. I did format a portion of it with NTFS and another portion with ext3, but I never booted to it, never thought I put GRUB on it, and never thought its boot sector would be altered.

Anyway, it does have a bunch of data that I want to keep, so I don't want to mess up my partition table. I can't very well hot swap it in, so I'm sort of stuck, as I'm really unfamiliar with boot sectors and how to manipulate them.

Is there a way I can use an Ubuntu Live CD to remove GRUB or to otherwise make it so I can boot to my SATA drive while my IDE drive is plugged in? The SATA drive currently has Vista Ultimate 64 on it.

Thanks!

Neo_The_User
March 11th, 2009, 04:13 AM
You want to completely remove grub and have no boot loader???

meierfra.
March 11th, 2009, 04:22 AM
Is there a way I can use an Ubuntu Live CD to remove GRUB

Yes. Boot from the LiveCD, open a terminal (Applications->Accessories->Terminal) and post the output of


sudo fdisk -lu

and I can tell you the exact command to erase Grub.

Neo_The_User
March 11th, 2009, 04:23 AM
Message blanked by Neo_The_User due to wrong bad command

orethrius
March 11th, 2009, 04:23 AM
Oh, I hope there's another bootloader to take over... ;)

Neo_The_User
March 11th, 2009, 04:24 AM
Oh, I hope there's another bootloader to take over... ;)

I know right?

meierfra.
March 11th, 2009, 04:31 AM
I hope there's another bootloader to take over..
Yes, there is: On the Sata drive. Most bios, if they don't find a boot loader on the first hard drive, will try to boot the second hard drive.

Neo_The_User
March 11th, 2009, 04:34 AM
Message edited.

ridetheteapot
March 11th, 2009, 04:46 AM
meierfra. is smart.

meanwhile you definatly do not want to wipe the whole mbr 512bytes; with this stuff it pays to be cautious. there is a smaller section of the mbr for code, thats what you are aiming for. the whole mbr 512b aka partition sector also includes the partition table :) now wiping that would hurt