LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-02-2015, 05:58 AM   #1
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Rep: Reputation: Disabled
Almost DD a partition


In Windows most overwrite programs start with the File Allocation Table and delete out 'deleted entries' before they write some kind of 'goo' over every sector of the HD.

This first step would stop 99% of the people from recovering lost data.

Is there a way to do the same in Linux?

This just takes too long...
dd if=/dev/zero of=trash.txt bs=16M; sync; rm -f trash.txt

thanks to everyone in advance.
 
Old 07-02-2015, 09:35 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
You can copy your harddisk with clonezilla.
 
Old 07-02-2015, 11:29 AM   #3
goumba
Senior Member
 
Registered: Dec 2009
Location: New Jersey, USA
Distribution: Fedora, OpenSUSE, FreeBSD, OpenBSD, macOS (hack). Past: Debian, Arch, RedHat (pre-RHEL).
Posts: 1,335
Blog Entries: 7

Rep: Reputation: 402Reputation: 402Reputation: 402Reputation: 402Reputation: 402
I do not know if something like bleachbit will be any faster as I've never had a need for data destruction like this, but maybe give it a try.
 
1 members found this post helpful.
Old 07-02-2015, 01:57 PM   #4
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,493

Rep: Reputation: Disabled
There is a program called shred that may be of interest to you.
https://www.gnu.org/software/coreuti...nvocation.html
 
Old 07-02-2015, 02:30 PM   #5
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
I am only looking to do a real quick wipe of the "deleted" files on a hard drive; if even possible.

DD does a fine job of zero's or random data but takes a long time.
 
Old 07-02-2015, 02:36 PM   #6
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Is this an HDD or SSD?
 
Old 07-02-2015, 02:37 PM   #7
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
SSD most of the time.
 
Old 07-02-2015, 02:38 PM   #8
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
Either or both are encrypted too.
 
Old 07-02-2015, 02:42 PM   #9
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
SSDs move writes around constantly, even if the OS thinks it's writing to the same cell and overwriting the data, it isn't. The only way to securely erase an SSD is to overwrite everything, as you're doing with your dd command, and you need to run it multiple times to clear out the extra cells that the SSD firmware holds in reserve for wear leveling and backup.

Your original example of Windows programs overwriting the recently deleted files on disk will accomplish absolutely nothing on an SSD, except for increased write cycles and wear.

See the "Only Do This If You Have To" section in this article:
http://www.makeuseof.com/tag/securel...ut-destroying/

Last edited by suicidaleggroll; 07-02-2015 at 02:49 PM.
 
1 members found this post helpful.
Old 07-02-2015, 04:53 PM   #10
HardenedCriminal
Member
 
Registered: May 2015
Posts: 104

Original Poster
Rep: Reputation: Disabled
Thanks. But it looks like the only software to do an electronic wipe is Windows or thumb drive boot. I was hoping for something that could be installed and used on a regular "cronjob". Maybe later some Linux programer will come up with something or the manufacturers will help us Linux server guys out.
 
  


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
HowTo convert Primary Partition to Logical (ie move it inside the Extended Partition) Tom6 Linux - Software 3 11-29-2010 03:40 PM
tricky backup of Linux system to NTFS partition to increase partition size Pandarsson Linux - General 5 07-09-2008 02:35 PM
Hard Drive Partition Management - Mandriva Double Partition with Swap File partition moshebagelfresser Linux - Hardware 2 05-23-2008 10:46 AM
Total partition size - User partition size is not equals to Free partition size navaneethanj Linux - General 5 06-14-2004 12:55 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 12:10 AM.

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