LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-18-2009, 02:19 AM   #1
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466
Blog Entries: 6

Rep: Reputation: 51
How to format Linux Box in single command?


I want to submit the rental machines back to Vendor.
So I need to format in no time to 8 machines.
RHEL AS 4 Update 6 is installed on those Boxes.
How can I format them in single shot?
 
Old 03-18-2009, 02:25 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I heard about shred command but how to use it for completely cleaning the hard disk.
I dont want vendor to recover the essential corporate data.
 
Old 03-18-2009, 03:18 AM   #3
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 308

Rep: Reputation: 39
Grab UltimateBootCD and then use the Hard Disk tools. Plenty on there including one that'll do a DOD level wipe.
 
Old 03-18-2009, 03:26 AM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by your_shadow03 View Post
So I need to format in no time to 8 machines.
Ain't gunna happen - will take (quite) a while.
 
Old 03-18-2009, 03:38 AM   #5
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
No issue regarding the time factor..But Server should be completely wipe out.
.Why shred not recommended?
 
Old 03-18-2009, 07:05 AM   #6
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I use dban to wipe machines.. depending on the drive size it's not a quick process though.

http://www.dban.org/
 
Old 03-18-2009, 07:15 AM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"shred" operates on files (and--I assume--complete directories) "man shred" for details.

For secure erasing of a disk, you need to wipe everything---not just specific files. If you don't want to use something like DBAN, then you can do it manually with dd**. Regardless of the method, it takes time.....

**"Secure wiping" is nothing more than multiple passes using combination of random data, zeros, etc. I'm no expert, but it's hard to imagine anyone easily recovering data after 2 passes: random, then all zeros.
 
Old 03-18-2009, 07:50 AM   #8
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
shred can also do disks or partitions, just do
Code:
shred /dev/sda
It's very slow though! But presumably so is any other method.
 
Old 03-18-2009, 07:58 AM   #9
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
OK---so I should follow my own advice and actually read the man page? Nah, it's easier to just type a dd command.........
 
Old 03-18-2009, 10:45 AM   #10
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Quote:
Originally Posted by pixellany View Post
I'm no expert
Yes you are.
 
Old 03-18-2009, 10:48 AM   #11
SlowCoder
Senior Member
 
Registered: Oct 2004
Location: Southeast, U.S.A.
Distribution: Debian based
Posts: 1,250

Rep: Reputation: 164Reputation: 164
Software like DBAN wipes your drive(s) at the bit level. Not just files or directories. It wipes out EVERYTHING. Boot sector. FAT. Etc. If there is a faster way to kill all the bits on your drives, please let us know. Start it on your computers and let it run overnight.
 
Old 03-18-2009, 10:56 PM   #12
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
I appreciate all comments.
LAstly I thing I should try using DBAN.
Just for the knowledge what is the complete to wipe hard disk through dd.
 
Old 03-19-2009, 03:11 AM   #13
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
Quote:
Originally Posted by your_shadow03 View Post
Just for the knowledge what is the complete to wipe hard disk through dd.
Code:
dd if=/dev/zero of=[device]
Where device can be /dev/sda, /dev/hda, etc. If you think overwriting with random data is more secure than zeroing, you can do

Code:
dd if=/dev/urandom of=[device]
You might be able to speed it up by adding the parameter bs=1G (read/write 1GiB blocks at a time), I'm not sure. The command shred [device] effectively does many of the above random overwrites, followed optionally by an overwrite with zeroes. This may be overkill though from what I've heard elsewhere.

Don't really see the need for DBAN et al when dd is so simple and comes with every linux distro, but maybe the others have some advantages I don't know about.

Last edited by openSauce; 03-19-2009 at 03:13 AM.
 
Old 03-19-2009, 06:28 AM   #14
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,466

Original Poster
Blog Entries: 6

Rep: Reputation: 51
You mean I need to start wiping out with:
Code:
dd if=/dev/zero of=[device]
First of=/dev/hda5
then of=/dev/hda4
then of=/dev/hda3
and so on..
 
Old 03-19-2009, 07:57 AM   #15
openSauce
Member
 
Registered: Oct 2007
Distribution: Fedora, openSUSE
Posts: 252

Rep: Reputation: 39
That would wipe the partitions individually if you want to do that (not the MBR or partition table though), or you can just do the entire drive with of=/dev/hda (no numerical suffix).
 
  


Reply



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
How to setup two ADSL line on a single fedora linux box? butocherry Linux - Networking 0 09-12-2007 08:46 PM
2 DHCP on 2 NICs on a single Linux box vikyath Linux - Networking 2 05-17-2007 12:10 AM
Single sign-on for linux box against windows 2003 Active Directory bussneth Linux - Networking 4 02-13-2007 06:49 PM
How do I format my single, clean hard drive to Linux? deanh2nd Linux - Newbie 2 06-26-2006 10:24 AM
Slackware book in single-page format? halo14 Slackware 4 06-05-2005 04:52 PM

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

All times are GMT -5. The time now is 07:10 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
Open Source Consulting | Domain Registration