LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-06-2020, 05:16 PM   #1
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Rep: Reputation: Disabled
simple erase program


I would like to find a simple erase program. I'm not worried about someone finding the content on this computer since it would bore them silly.

I'm using Linux Mint 19. with a Hitachi drive on a laptop. I've tried to load Load and Nuke, as well as a Seagate zero erase from the DVD drive, but it keeps defaulting to the hard drive. I'm a very basic user, so keep it simple.

Tommi
 
Old 11-09-2020, 06:57 PM   #2
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
How about dd? There is also a command named shred, which goes through several passes to ensure better erasure.

If you tell us what you want to erase, I can be more specific.
 
Old 11-09-2020, 07:31 PM   #3
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,243

Rep: Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322Reputation: 5322
This is typically done by using the "dd" command to "zero out" the drive. One guide is here:

https://how-to.fandom.com/wiki/How_t...clean_in_Linux
 
Old 11-09-2020, 11:20 PM   #4
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Smile Erase commands to clean hard drive

Thank you both for your responses. I'm a self-taught user, and so unfamiliar with the command line within Linux. These two suggestions will help a lot.

My purpose is to simply erase the content on the hard drive and rebuild the OS. I have a 32-bit machine - rather old since I buy well-used equipment - low low budget. I'm currently sticking with version 18.3 of Mint Mate. Since there is no virus or malware screening software, I like to clean the drive periodically with the intent of cleaning unwanted files. Is this a good idea?
 
Old 11-09-2020, 11:42 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,142

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Probably pointless. If you reformat the filesystem when you re-install, any files from the prior install will be unreachable, and subject to being overwritten at any time. They will not affect your new system.

Your fretting over the lack of screening software is probably a little paranoiac, but that's ok - a little of that is sensible. As for zeroing the system, I used to simply reformat it as NTFS; that defaults to zeroing first (make sure not to use "quick format"). Then make it ext4 or whatever you want to use. Simple, and less likely to get wrong.

Last edited by syg00; 11-09-2020 at 11:43 PM. Reason: added quick format note
 
1 members found this post helpful.
Old 11-10-2020, 01:44 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by OrphanHome View Post
Is this a good idea?
You mean like one of those magical cleaner programs for Windows? No, I wouldn't do it.
 
Old 11-10-2020, 12:15 PM   #7
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Thank you both for your responses. Let me clarify my intent in wiping data.

I'm currently using Linux Mint Mate version 18.3 32 bit. I heard, once upon a time, that zeroing out a hard drive two or three times would clean off any viruses and/or malware, so that has been my practice. Once the HD is squeaky clean, I reload my files and go happily down the road. Of course, I use a strong encryption code for the hard drive files, and use a fairly strong password, but am aware that malicious people can work around these protections. I assume that over the course of six months, someone has embedded a 'Peeking Tom' program, so thus my paranoia. Am I operating under the right assumptions?

As for backing up files, yes, I copy them to a USB stick periodically. Since my equipment is old, it isn't all that dependable.

Tommi Jordon
 
Old 11-10-2020, 12:28 PM   #8
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
So wiping a drive can get rid of malware, certainly, but encryption to keep malicious people out is pointless. Encrypting drive contents only prevents against physical theft. Let me say that again: encrypting drive contents only prevents against physical theft.

The OS has to have everything accessible while running so needs to be able to read everything. If malware or a malicious person is on your system (unlikely), then they will also be able to read whatever data is encrypted.

Also, wiping SSDs is not recommended as it wears them excessively. I believe most SSD manufacturers have some sort of software that safely wipes the drives. I know Samsung does but I've never owned another brand so can't speak to the other manufacturers.
 
Old 11-10-2020, 12:30 PM   #9
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,333
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
Quote:
Originally Posted by sevendogsbsd View Post
So wiping a drive can get rid of malware, certainly, but encryption to keep malicious people out is pointless. Encrypting drive contents only prevents against physical theft. Let me say that again: encrypting drive contents only prevents against physical theft.
It's also a good way of erasing the data. Simply "forget" the key and the data is permanently inaccessible.
 
Old 11-10-2020, 12:34 PM   #10
sevendogsbsd
Senior Member
 
Registered: Sep 2017
Distribution: FreeBSD
Posts: 2,252

Rep: Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011Reputation: 1011
True, then format and all is well
 
Old 11-10-2020, 01:47 PM   #11
sgosnell
Senior Member
 
Registered: Jan 2008
Location: Baja Oklahoma
Distribution: Debian Stable and Unstable
Posts: 1,943

Rep: Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542Reputation: 542
No one can install keylogger software on your system without having physical access and the password, either yours or root's, or you installing it yourself through downloaded malware. On a Linux system, the odds of that are not zero, bur very close. Linux is not Windows. Wiping the hard drive just to get rid of possible malware, of which you have no evidence, is, IMO, a waste of time and effort, regardless of what you may have read about Windows.
 
Old 11-10-2020, 01:48 PM   #12
OrphanHome
Member
 
Registered: Feb 2017
Location: Missouri
Distribution: Linux Mint v:18.3
Posts: 65

Original Poster
Rep: Reputation: Disabled
Wow! I'm getting an education today. I've been operating under some false perceptions for quite a time.

Thank you for your input. Hugs to all of you.

Tommi Jordon
 
  


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
Simple Slackware vs simple Arch vs simple Frugalware punchy71 Linux - Distributions 2 08-28-2012 02:30 PM
A very simple drawing program to do a very simple job. stf92 Linux - Software 8 06-28-2012 03:28 PM
An Automatic Delete or Erase Program alrey Linux - Software 2 02-10-2011 06:18 PM
Can't erase a simple CD-RW Hitboxx Fedora 1 06-01-2007 08:47 AM

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

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