LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How do I use the dd command to do a secure erase using Try Ubuntu? (https://www.linuxquestions.org/questions/linux-newbie-8/how-do-i-use-the-dd-command-to-do-a-secure-erase-using-try-ubuntu-908327/)

php111 10-15-2011 09:41 AM

How do I use the dd command to do a secure erase using Try Ubuntu?
 
I'm not familiar with any sort of Linux, or Unix. I have a copy on CD of Ubuntu. I don't want to install it. I only to try it. I'm confused on how the dd commands go. I want to erase my entire 1TB drive using the dd secure erase. I am a Windows user. Would I have a drive of sda0 possibly, or how could I find that out? Do I need to create a su in order to use the dd commands?

Thank you,

lugoteehalt 10-15-2011 10:10 AM

It would be more usual to use the command 'shred'. This is designed for the job. It is not 100% guaranteed that someone with the money might not retrieve the data. The only way to be certain is to smash up the drive and burn it - not a joke. Shred used to be on Ubuntu live CD, probably still is.

php111 10-15-2011 10:12 AM

How do I use shred? Thank you for your reply.

lugoteehalt 10-15-2011 10:29 AM

info coreutils 'shred invocation' and man shred will give information.
Quote:

Originally Posted by php111 (Post 4499189)
How do I use shred? Thank you for your reply.

Mainly you need balls of steel for what you propose to do!

Put in the Ubuntu CD and reboot. Use the sort of demonstration only, do not install mode.

You then need the name of the device you mean to shred.

sudo fdisk -l

may give an idea. It'll be /dev/sdb or something like that.

shred /dev/whatever

might work. Might have to use the --force option.

This makes me nervous just writing about it. I have never done it before myself.

php111 10-15-2011 10:34 AM

I'm not really understanding. Are there an easier way that could explain this?

thezerodragon 10-15-2011 12:21 PM

lugo was giving a list of commands to enter into the terminal.

Unless I misunderstood, he suggested that you:

Boot to the Ubuntu live CD

Do Not install

open the terminal

type in

Code:

        info coreutils 'shred invocation'
and

Code:

man shred
to understand more about the shred command

then

Code:

sudo fdisk -l
to view a list of mounted drives.

then, carefully, use shred as outlined in the man pages to shred /dev/sd* where sd* is the 1TB hard drive you wish to erase. dd also has a function to overwrite with all 0s, but I recommend you read up before doing anything as these are powerful commands that can't be undone.

jlinkels 10-15-2011 12:36 PM

I am always amazed that people who cannot afford to shred a $80 hard disk have such important data which must absolutely not be disclosed. And yet keeping it secret is not worth $80...

jlinkels

kindofabuzz 10-15-2011 12:44 PM

if you ever need to know how to use a command,
Code:

man <command>

php111 10-15-2011 12:48 PM

I prefer a LLF dd command that will do it at secure erase. I don't know any commands.

lugoteehalt 10-15-2011 09:10 PM

Quote:

Originally Posted by php111 (Post 4499279)
I prefer a LLF dd command that will do it at secure erase. I don't know any commands.

Suggest you put in the Ubuntu live CD and let it do its demonstration thing and then from the Applications menu choose Accesories > terminal.

I'm trying to get a command line to type commands into the thing.

Then type:
Code:

sudo fdisk -l
and post the result here.

Then people should be able to give the command to shred, or whatever, the 1T hard drive. And all that's necessary is to type it in.:)

yancek 10-15-2011 09:26 PM

Here's a link to a site which explains briefly using the shred command to do what you want to an entire disk. The reason you are being asked to post partition information is to show how many physical hard drives and partitions you have. You have only indicated you want to overwrite a 1TB disk but not whether it is the only disk you have or how many disk you do have. If you have multiple disks, you could easily overwrite the wrong one.

http://linuxhelp.blogspot.com/2006/0...sk-before.html


All times are GMT -5. The time now is 05:30 AM.