LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Removing Linux (https://www.linuxquestions.org/questions/linux-newbie-8/removing-linux-552605/)

Seanmcn 05-09-2007 09:22 AM

Removing Linux
 
"You can wipe away the partition table of the hard disk in linux by issuing the following command (in command line mode, after you've logged in as root):

dd if=/dev/zero of=/dev/hda bs=521 count=1
However, I get this output?

PHP Code:

[root@localhost ~]# dd if=/dev/zero of=/dev/hda bs=521 count=1
ddopening `/dev/hda': Read-only file system 


Nathanael 05-09-2007 09:47 AM

output of sfdisk -l and mount might help

Seanmcn 05-09-2007 09:51 AM

sorry? I don't understand. You want what?

syg00 05-09-2007 10:56 AM

At the command line (where you tried the "dd") type
Code:

sfdisk -l
mount

(first command uses a lower case ell, as in list)

Not a good idea to play with "dd" like that if you don't know what you're doing - I suspect that bs should be 512. Won't matter much in this case.

pixellany 05-09-2007 03:04 PM

The request for more info is relevant to determining if hda is really the drive you want to modify.
Regardless of what command you use, we need more info on the configuration of your system.


All times are GMT -5. The time now is 04:35 AM.