LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-18-2010, 01:18 PM   #1
leehrsn53
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
Need to do low format or zeroes on external usb drive


I have an external 500GB USB drive that I want to sell. I've copied some stuff to it and practiced partitioning and formatting with it, but I want to use something to erase it completely. Is this possible if the USB is connected to a ThinkCentre 8187-EJU with an Ubuntu 10.04 OS? I've used Dban to erase regular hard disks but don't any software that could be installed on my computer that would erase a USB drive. Any suggestions?
 
Old 09-18-2010, 01:33 PM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
use shred

Use shred

Shred originally designed to delete file securely. It deletes a file securely, first overwriting it to hide its contents. However same can be used to erase hard disk. For example your hard disk name is /dev/sda (SCSI hard disk) then type following command:

Code:
# shred -n 5 -vz /dev/sda
you can achieve this using knoppix http://www.knoppix.net/
 
1 members found this post helpful.
Old 09-18-2010, 01:35 PM   #3
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: RHEL/Ubuntu/Debian/Fedora/Centos/K3OS
Posts: 1,159
Blog Entries: 4

Rep: Reputation: 149Reputation: 149
Thumbs up use shred

Use shred

Shred originally designed to delete file securely. It deletes a file securely, first overwriting it to hide its contents. However same can be used to erase hard disk. For example your hard disk name is /dev/sda (SCSI hard disk) then type following command:

Code:
# shred -n 5 -vz /dev/sda
you can achieve this using by booting from knoppix ... http://www.knoppix.net/
 
2 members found this post helpful.
Old 09-18-2010, 06:07 PM   #4
cantab
Member
 
Registered: Oct 2009
Location: England
Distribution: Kubuntu, Ubuntu, Debian, Proxmox.
Posts: 553

Rep: Reputation: 115Reputation: 115
Plain old dd should be fine.

Code:
dd if=/dev/zero of=/dev/disk/by-id/usb-SOMETHING bs=1M
Be very very careful you wipe the correct drive! Using the /dev/disk/by-id/ folder gives you an easy-to-understand drive name.

If your data is very sensitive, use if=/dev/urandom instead of if=/dev/zero. But that's slower.
 
2 members found this post helpful.
Old 09-18-2010, 06:47 PM   #5
leehrsn53
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Thumbs up Thank you!

Quote:
Originally Posted by cantab View Post
Plain old dd should be fine.

Code:
dd if=/dev/zero of=/dev/disk/by-id/usb-SOMETHING bs=1M
Be very very careful you wipe the correct drive! Using the /dev/disk/by-id/ folder gives you an easy-to-understand drive name.

If your data is very sensitive, use if=/dev/urandom instead of if=/dev/zero. But that's slower.
__________


Thanks very much! Is it okay to use Gpart to get the "dev" "disk" "by-id" "usb-something which I assume will be discernible in Gpart"? I'm a real novice at this stuff but I think I can get it.

Thanks to both responders for your advice! This should be a real learning experience!

Lee
 
Old 09-19-2010, 07:07 AM   #6
harryhaller
Member
 
Registered: Sep 2004
Distribution: Slackware-14.2
Posts: 468

Rep: Reputation: Disabled
Red face

post deleted - misunderstood question

Last edited by harryhaller; 09-19-2010 at 07:14 AM.
 
  


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
imminent drive failure and low level format salimshahzad Linux - Newbie 6 01-06-2010 01:00 PM
I'm trying to format an external USB hard drive... djackson75 Linux - Software 3 08-09-2008 02:26 PM
Couldn't boot system till ran low-lvl format on drive Quakeboy02 Linux - Hardware 1 03-24-2007 05:00 AM
How to format a partition on an external USB drive robbbert Linux - Hardware 8 08-17-2006 02:31 PM
How do I low-level format a SCSI drive on Aurora Sparc Linux v1.0? JustinCase Linux - Hardware 3 03-02-2004 11:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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