I’ve been switching between Linux distro’s for quite a while now and have settled on Opensuse (13.1 KDE 64 bit).
On one of the other distro’s that i’ve used in the past i ran ‘photorec’ on the SD card from my digital camera and was amazed how easily i could recover my old photos that i’d deleted. Since then i’d been formatting the cards in the gnome partition editor (if my memory serves me correctly you can tell it to overwrite the card with '0’s) and that seemed to do the trick - i couldn’t recover any files using photorec any more.
Now that i’ve switched to Opensuse, how can i make the photos that i’ve deleted from my SD card unrecoverable?
Delete just one file and overwrite it a bunch: use the ‘shred’ command for
the deletion from the command line.
Clean off any old given media: dd if=/dev/urandom of=/dev/usbHere
This one requires being ‘root’, and if you typo something and put in your
real hard drive you’ll be done (broken/toast) before you realize it.
–
Good luck.
If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below…
This doesn’t require you be root, nor does it risk wiping undeleted
data. Just let it run until the device is full, then delete the
“file.tmp” file that’s been created.
On 2013-12-10 00:46, Jim Henderson wrote:
> This doesn’t require you be root, nor does it risk wiping undeleted
> data. Just let it run until the device is full, then delete the
> “file.tmp” file that’s been created.
Good point…
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
I’m going to use this topic because it has similarities to my own thinking.
From time to time I would take my external drives over to my windows machine to do a format of some sort. I’m not all that interested in formatting as I am writing all zero’s to the drive. If I navigate to yast partition manager, how would one go about writing zero’s to the drive.
I don’t know anything about konsole or terminal, so let’s leave that one out for the moment.
Thanks for all your suggestions, I particularly like 'hendersj’s suggestion so I’m in the process of trying it out, I’ll get back when I’m finished creating files, deleting & trying to recover them!
On 2013-12-10 19:46, lenwolf wrote:
>
> ab;2606758 Wrote:
>> Delete just one file and overwrite it a bunch: use the ‘shred’ command
>> for the deletion from the command line.
> Hi, just a small question - can I be sure that this will work on
> flashdrives despite the wear levelling algorythm in the controller?
Probably not.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
A single pass should be enough for flash memory. Some methods use multiple passes because magnetic media leaks info to between tracks. But multiple passes could be detrimental to flash because of the ware factor. Also memory sticks do ot have the sophisticated algorithms to level ware and do not have an abundance (or any) of the extra memory as in a ssd. Thus they have much shorter lives by definition.
I had an issue where it was saying the card was full even though it wasn’t and then the CPU racing away at 100%, and then i realised that the card was 8gb and in FAT the files can’t be any more than 4gb-ish, Once i’d twigged that it went perfectly - Doh!!!
> This is the one that I would like to learn. I could probably do the most
> of it, but I don’t know how to find the device name.
Well, again, many ways.
For instance, you open a terminal and run:
sudo tailf /var/log/messages
then you plug in the device (if it is connected, umount, remove, connect
again). You will see in the text that gets printed in the terminal the
device name.
Or instead of that command in the terminal, you run, after connect,
“dmesg” in a terminal. The text is long, but the end of it should be the
same messages.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)
> I had an issue where it was saying the card was full even though it
> wasn’t and then the CPU racing away at 100%, and then i realised that
> the card was 8gb and in FAT the files can’t be any more than 4gb-ish,
> Once i’d twigged that it went perfectly - Doh!!!
Ah, just write two or three files, different names, that’s all.
–
Cheers / Saludos,
Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)