Recover and wipe files/
Hello.
1- If I format my partition in Linux, How can I recover files? 2- How can I remove file under linux that can't be recover? Cheers. |
Quote:
Quote:
|
Quote:
-- files in a folder, ONLY that ONE folder or one file -- Code:
shred -n 3 -xzuv " The Name Of The File" install or build from source the debian program " srm" ( it dose build on opensuse and RHEL6 ) for instructions see the help and man page for it |
With modern filesystems the safest way would be to wipe free space. Using shred on the file is an option, but there's no guarantee that the file is actually wiped. Wiping free space with zeros or a PRNG should get rid of any deleted files. You can use '/dev/zero' to create a large file and then delete it when you run out of space, or you can use:
http://wipe.sourceforge.net/ to do the same. It is much faster than /dev/urandom. Example: Code:
dd if=/dev/zero of=file conv=fsync bs=4M; rm -f file |
Quote:
|
DBAN is always an option
|
Don't forget to wipe all the backups too...
|
Thank you so much but how can I recover a formatted partition? As you know in windows OS, You can find tons of program for recover NTFS partitions but in Linux....
|
photorec is probably the best bet to retrieve (or partially retrieve) deleted files (not sure if it can resurrect deleted partitions though.
|
testdisk may be able to recover partitions.
|
I think if you used something like parted to create a partition (but don't format it!) with the same start and end sectors, you could recover it. Of course, that's assuming that the partition hasn't been touched...
|
All times are GMT -5. The time now is 11:41 AM. |