LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-14-2010, 04:59 PM   #1
pvelliky
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Rep: Reputation: 0
Using Terminal Commands to Wipe Disks on Server


I'm attempting to do a low level wipe of a server in our office. I originally attempted to use DBAN but it wouldn't recognize the disks.

I've now moved on to attempting to use a Live Boot of Ubuntu 10.10 on a USB drive.

I'm using the following terminal command - sudo dd if=/dev/urandom of=/dev/sda bs=1M

When I did this the first time it simply wiped the USB drive that had Ubuntu on it.

What do I need to do in order to have it wipe all 4 disks on the server instead of the USB Drive?
 
Old 12-14-2010, 05:11 PM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Replace "/dev/sda" with the name of a disk. Repeat for the other 3.

Also, instead of dd, look at "shred" which is made for this.
 
Old 12-14-2010, 06:15 PM   #3
Noway2
Senior Member
 
Registered: Jul 2007
Distribution: Gentoo
Posts: 2,125

Rep: Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781Reputation: 781
Running the command 'df' in a terminal will show you what /dev/sdX is mounted as what partition. Apparently your first hard drive isn't sda. Sda will apply to a SCSI or SATA drive. If you have an IDE drive it will be a HD device instead of SD.
 
Old 12-14-2010, 07:33 PM   #4
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,824

Rep: Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615Reputation: 615
Quote:
Originally Posted by Noway2 View Post
Running the command 'df' in a terminal will show you what /dev/sdX is mounted as what partition.
If it's not mounted, "fdisk -l" will give you a list.
Quote:
Sda will apply to a SCSI or SATA drive. If you have an IDE drive it will be a HD device instead of SD.
Since 2.6.20, even IDE drives are sdX.
 
Old 12-15-2010, 09:52 AM   #5
pvelliky
LQ Newbie
 
Registered: Dec 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks guys, you were a huge help.

Running exactly as I had hoped.
 
  


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
[SOLVED] Terminal commands working in terminal but not in a script GreYFoXGTi Linux - Newbie 1 08-04-2010 09:36 AM
making a script that opens terminal and enter commands into that terminal Cinematography Linux - General 8 12-16-2008 10:34 AM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - Software 2 07-02-2008 06:26 PM
Need help for Windows cmd commands into Linux terminal commands. windowsNilo Linux - General 2 07-01-2008 06:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 11:48 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