LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   why is grub still loading? (https://www.linuxquestions.org/questions/linux-newbie-8/why-is-grub-still-loading-400962/)

Haloony 01-08-2006 04:15 PM

why is grub still loading?
 
I recently bought a new 60gig hd for my laptop, and i decided to install ubuntu breezy badger. Then i deleted all my linux partitions. I expected my drive to be totally clean and unpartitioned so when i turn on the laptop it would give me the no operating system found error. However, when i booted up i still found grub looking for an operating system. Is there a way to totally clear the drive the way it was when i bought it.

btmiller 01-08-2006 04:21 PM

You deleted all the partitions, but you didn't touch the Master Boot Record (MBR). If you want to clear it, boot off of a Linux rescue disk and do:

Code:

dd if=/dev/zero of=/dev/hda bs=512 count=1
This overwrites the first sector of the hard drive (which holds the MBR) with zeros.

Alternatively, you can just go ahead and install the OS you want and let it overwrite the MBR>

pixellany 01-08-2006 04:25 PM

Or use a disk wipe utility like Darik's boot and nuke.

BinJajer 01-08-2006 04:37 PM

The fastest way would be the dd way, but dban also wipes everything physically...


All times are GMT -5. The time now is 07:43 PM.