LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-15-2011, 10:41 AM   #1
php111
LQ Newbie
 
Registered: Sep 2007
Posts: 20

Rep: Reputation: 0
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,
 
Old 10-15-2011, 11:10 AM   #2
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
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.
 
Old 10-15-2011, 11:12 AM   #3
php111
LQ Newbie
 
Registered: Sep 2007
Posts: 20

Original Poster
Rep: Reputation: 0
How do I use shred? Thank you for your reply.
 
Old 10-15-2011, 11:29 AM   #4
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
info coreutils 'shred invocation' and man shred will give information.
Quote:
Originally Posted by php111 View Post
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.
 
Old 10-15-2011, 11:34 AM   #5
php111
LQ Newbie
 
Registered: Sep 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I'm not really understanding. Are there an easier way that could explain this?
 
Old 10-15-2011, 01:21 PM   #6
thezerodragon
Member
 
Registered: Apr 2009
Location: Paris, France
Distribution: Fedora 12 Constantine
Posts: 142

Rep: Reputation: 44
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.
 
Old 10-15-2011, 01:36 PM   #7
jlinkels
Senior Member
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 4,707

Rep: Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742Reputation: 742
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
 
Old 10-15-2011, 01:44 PM   #8
kindofabuzz
Member
 
Registered: Mar 2010
Location: There
Distribution: Linux Mint 17.1
Posts: 237

Rep: Reputation: 45
if you ever need to know how to use a command,
Code:
man <command>
 
Old 10-15-2011, 01:48 PM   #9
php111
LQ Newbie
 
Registered: Sep 2007
Posts: 20

Original Poster
Rep: Reputation: 0
I prefer a LLF dd command that will do it at secure erase. I don't know any commands.
 
Old 10-15-2011, 10:10 PM   #10
lugoteehalt
Senior Member
 
Registered: Sep 2003
Location: UK
Distribution: Debian
Posts: 1,215
Blog Entries: 2

Rep: Reputation: 49
Quote:
Originally Posted by php111 View Post
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.
 
Old 10-15-2011, 10:26 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,332

Rep: Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407Reputation: 1407
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Secure Erase flash media? Super TWiT General 2 09-06-2011 02:16 PM
hdparm secure erase dman777 Linux - General 5 01-13-2011 05:28 PM
Secure Erase causes HDD to stop being detected galapogos Linux - Hardware 4 07-16-2010 11:17 PM
Secure erase HDD from within itself paddyrooney Linux - Security 4 12-16-2009 05:20 PM
Secure Erase Tool? subaruwrx General 5 08-14-2004 11:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration