LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Erase Hard Drive from Rescue? (http://www.linuxquestions.org/questions/linux-newbie-8/erase-hard-drive-from-rescue-69398/)

mithras 07-01-2003 06:20 PM

Erase Hard Drive from Rescue?
 
Anyone know if I can erase all my partitions or erase completly my hard drive from rescue mode? Thank you =)

mithras 07-01-2003 06:53 PM

Can anyone help me please?

nakkaya 07-02-2003 01:34 AM

yes you can but what are trying to do? if you want to get rid of linux you dont need to mess with recuse and also if you want to install linux again you dont nned to erease them too. :0

mithras 07-02-2003 12:21 PM

Rescue
 
Thank you for your time, anyway do you know how to invoke or what commands do I have to put to erase all the partitions in the Hard Drive? Thank you

spak 12-11-2003 07:11 PM

To answer your original question, assuming you've previously installed Linux on the first hard disk on the primary controller, once you've booted the machine from the rescue CD or floppy, type the following from the command line:

* * * WARNING * * *
THIS WILL MAKE DATA ON THE HARD DISK INACCESSIBLE
* * * * * * * * * * * *

dd if=/dev/zero of=/dev/hda bs=512 count=1

* * * WARNING * * *
THIS WILL MAKE DATA ON THE HARD DISK INACCESSIBLE
* * * * * * * * * * * *

This will write zero's over the Master Boot Record, wiping out the Initial Program Loader (IPL) and the disk partition table. It is possible to rebuild a MBR written over in this way, but it would be a right royal pain.

jayakrishnan 12-11-2003 11:13 PM

simple use the shred command

jayakrishnan 12-11-2003 11:29 PM

http://freshmeat.net/projects/reset/?topic_id=43%2C146


All times are GMT -5. The time now is 10:33 PM.