LinuxQuestions.org
Visit Jeremy's Blog.
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 01-05-2019, 08:55 AM   #1
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Rep: Reputation: Disabled
Prevent data from recovering


Hi
My friend just returned my USB. He used my USB to store his data and returned me after deleting it, thinking that his data is permanently deleted from my USB. But we know that this data can be recovered using data recovery softwares (like photorec/testdisk etc.). So, here is a question that (except shred) how to securely format/wipe my USB that I (or someone else) cannot recover his (deleted) data. shred is effective when data is already present. But after simple deletion, it can be recovered. So, how to securely erase empty space in USB?
Thanks
 
Old 01-05-2019, 09:17 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 22,033

Rep: Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344Reputation: 7344
microwave oven for example. Or a hammer. (if reformat/shred/whatever weren't good enough).
Long time ago I read some low level formatter, I don't know if they are still available.
But first, if you want to secure your data you need to create an encrypted volume on that drive. Without key that will be useless, so you don't really need to wipe it at all.
 
Old 01-05-2019, 09:20 AM   #3
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
microwave oven for example. Or a hammer. (if reformat/shred/whatever weren't good enough).
Long time ago I read some low level formatter, I don't know if they are still available.
But first, if you want to secure your data you need to create an encrypted volume on that drive. Without key that will be useless, so you don't really need to wipe it at all.
Is there anything like 'secure wipe' or 'secure format'? Few years back I was installing Hackintosh in one of my pc and during installation, it gave an option of 'secure format/wipe'.

Last edited by zetrotrack000; 01-05-2019 at 09:24 AM.
 
Old 01-05-2019, 09:29 AM   #4
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
Code:
dd if=/dev/zero of=/dev/<whatever>
We call it "zeroing out".
 
Old 01-05-2019, 09:35 AM   #5
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Code:
dd if=/dev/zero of=/dev/<whatever>
We call it "zeroing out".
I was just typing the same thing to ask
Is:
Code:
cat /dev/urandom > /dev/sdX
same like "dd if=/dev/zero of=/dev/sdX"?
 
Old 01-05-2019, 09:36 AM   #6
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Found here:
https://wiki.archlinux.org/index.php...ite_the_target
 
Old 01-05-2019, 09:43 AM   #7
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,249

Rep: Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323Reputation: 5323
I'd imagine so. The point is to overwrite all the data on the disk, and both methods do that.
 
Old 01-05-2019, 09:44 AM   #8
zetrotrack000
Member
 
Registered: Dec 2011
Posts: 401

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
I'd imagine so. The point is to overwrite all the data on the disk, and both methods do that.
Thanks a lot.
 
  


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
recovering formatted data walterw Linux - Newbie 4 11-09-2003 06:17 PM
Recovering data from a failed hard drive. 2damncommon LinuxQuestions.org Member Success Stories 0 10-03-2003 11:16 PM
Recovering data from formatted FS? froguy Linux - General 4 10-02-2003 08:30 PM
Recovering deleted data Korff Linux - Software 13 06-23-2003 01:58 AM
recovering data from ext3 chupacabra Linux - General 2 10-21-2002 10:32 AM

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

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