Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Do flash drives hold traces of deleted stuff on them which can lead to
deletion reversion like it can happen on magnetic media like HDD's ?
my personal answer is no , but I have a small doubt of %1 and since this is a security issue so I thought i'd better get the facts assured.
P.S with the word "deleted" I'm NOT referring to the process of removing files by only hitting the "delete" key , but I'm pointing to files/data which have been completely overwritten with new data basically zeros.(via drive formatting for example)
P.S with the word "deleted" I'm NOT referring to the process of removing files by only hitting the "delete" key , but I'm pointing to files/data which have been completely overwritten with new data basically zeros.(via drive formatting for example)
Formatting a drive does not overwrite it with anything.
usually if i want to delete stuff to unrecoverable you can use shred
but to wipe a whole defice i usualy just use dd if=/dev/urandom of=/dev/sda a few times and throw in a few dd if=/dev/zero of=/dev/sda but seeing as that is a solid state device i dont believe there is any slop in how it is written that would facilitate file recovery in magnetic media.
drive formating does very little. I personally have recovered entire drives that were formated.
Formatting a drive does not overwrite it with anything
Oh really , probably it depends on the type of formatting doesn't it ?
anyways , I see that formatting isn't the best way to destroy data irreversibly .
Quote:
usually if i want to delete stuff to unrecoverable you can use shred
but to wipe a whole defice i usualy just use dd if=/dev/urandom of=/dev/sda a few times and throw in a few dd if=/dev/zero of=/dev/sda
alright I know about shred but let me have a look at the commands you gave ,from what I can speculate
those commands do copy something random into sda then a bunch of zero into it (probably to hide the fact that is has been "Shredded")
nonetheless , I'd appreciate if you would explain in more detail how this command dd works and why it's better to use than shred on wiping out devices beyond recognition.
As already stated formating does nothing with the data part of the filesystem. It really only zeros out the meta data i.e. FAT, inodes etc. etc. to save time.
It depends on the filesystem. shred will not erase any data in the journal. Journalized filesystems are like ext3, reiserfs, jfs and xfs. dd operates on the byte level so basically you are wiping out the entire partition with ones and zeros.
Your other question about the differences between flash memory vs magnetic media. IMHO flash or any other solid state memory can not have a residual state. Once a cell has been changed to a one you can not tell if it ever was a zero.
Your other question about the differences between flash memory vs magnetic media. IMHO flash or any other solid state memory can not have a residual state. Once a cell has been changed to a one you can not tell if it ever was a zero.
Thanks , that was exactly the answer I was looking for
i also appreciate the other infos , yes I've gained indeed some new intel
I did some googling and discovered that I was wrong. I did find that flash memory does have a residual properties. Unless your storing classified material I would not worry about it to much. And stupid me, you should write zeros instead of ones....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.