[opensuse] what tools are available to find deleted files
Hi everyone, I have a micro-sd card that I accidentally deleted an important file off of. I don't know the file name because it was the contact list that I was trying to move from my old phone to my new phone, and I never originally intended to use the file system, but I was just going to transfer the contacts using the phone utilities. I am hoping that there are some command line tools I can use to scan the sd card and find the missing file. I had not made any backups :( bad, bad me The card is /dev/sdc1. So I did a "debugfs /dev/sdc1" and I got an error: debugfs 1.41.14 (22-Dec-2010) /dev/sdc1: Bad magic number in super-block while opening filesystem The sd card is formatted as follows: Disk /dev/sdc: 4091 MB, 4091543552 bytes 126 heads, 61 sectors/track, 1039 cylinders, total 7991296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdc1 8192 7991295 3991552 b W95 FAT32 Any ideas anyone? -- G.O. Box #1: 12.1 | KDE 4.8.3 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.8.3 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.3 | Core2 Duo T8100 | 64 | Intel 965GM | 4GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am 27.05.2012 14:01, schrieb George Olson:
Hi everyone,
I have a micro-sd card that I accidentally deleted an important file off of. I don't know the file name because it was the contact list that I was trying to move from my old phone to my new phone, and I never originally intended to use the file system, but I was just going to transfer the contacts using the phone utilities. I am hoping that there are some command line tools I can use to scan the sd card and find the missing file. I had not made any backups :( bad, bad me
The card is /dev/sdc1. So I did a "debugfs /dev/sdc1" and I got an error:
debugfs 1.41.14 (22-Dec-2010) /dev/sdc1: Bad magic number in super-block while opening filesystem
The sd card is formatted as follows:
Disk /dev/sdc: 4091 MB, 4091543552 bytes 126 heads, 61 sectors/track, 1039 cylinders, total 7991296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sdc1 8192 7991295 3991552 b W95 FAT32
Any ideas anyone?
Maybe http://www.cgsecurity.org/wiki/PhotoRec can help you. Although it's name refers to photos it is able to "undelete" almost everything. Just make sure to let it save the recovered files on another disk (not the one you are recovering from)! To me it helped a lot with external disks, photo and mobile phone cards, even after formating them... hth Daniel -- Daniel Bauer photographer Basel Barcelona professional photography: http://www.daniel-bauer.com personal facebook: http://www.facebook.com/mars.fotografo google+: https://plus.google.com/109534388657020287386 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/27/2012 08:46 PM, Daniel Bauer wrote:
Am 27.05.2012 14:01, schrieb George Olson:
Hi everyone,
I have a micro-sd card that I accidentally deleted an important file off of. I don't know the file name because it was the contact list that I was trying to move from my old phone to my new phone, and I never originally intended to use the file system, but I was just going to transfer the contacts using the phone utilities. I am hoping that there are some command line tools I can use to scan the sd card and find the missing file. I had not made any backups :( bad, bad me
The card is /dev/sdc1. So I did a "debugfs /dev/sdc1" and I got an error:
debugfs 1.41.14 (22-Dec-2010) /dev/sdc1: Bad magic number in super-block while opening filesystem
The sd card is formatted as follows:
Disk /dev/sdc: 4091 MB, 4091543552 bytes 126 heads, 61 sectors/track, 1039 cylinders, total 7991296 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000
Device Boot Start End Blocks Id System /dev/sdc1 8192 7991295 3991552 b W95 FAT32
Any ideas anyone?
Maybe http://www.cgsecurity.org/wiki/PhotoRec can help you. Although it's name refers to photos it is able to "undelete" almost everything. Just make sure to let it save the recovered files on another disk (not the one you are recovering from)!
To me it helped a lot with external disks, photo and mobile phone cards, even after formating them...
hth
Daniel
Thanks guys I will try photorec :) -- G.O. Box #1: 12.1 | KDE 4.8.3 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.8.3 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.3 | Core2 Duo T8100 | 64 | Intel 965GM | 4GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 05/27/2012 08:46 PM, Daniel Bauer wrote:
Maybe http://www.cgsecurity.org/wiki/PhotoRec can help you. Although it's name refers to photos it is able to "undelete" almost everything. Just make sure to let it save the recovered files on another disk (not the one you are recovering from)!
To me it helped a lot with external disks, photo and mobile phone cards, even after formating them...
hth
Daniel
Well, photorec was able to recover some lost files. Unfortunately my contact list wasn't in there. I don't know where it went. Sayang. In any case, thanks for the help! At least I got some of my missing files back! -- G.O. Box #1: 12.1 | KDE 4.8.3 | AMD Athlon X3 | 64 | nVidia C61 GeForce 7025 | 4GB RAM Box #2 12.1 | KDE 4.8.3 | Pentium 4 (2core) | 32 | Intel 82915G | 2GB RAM Lap #1: 12.1 | KDE 4.8.3 | Core2 Duo T8100 | 64 | Intel 965GM | 4GB RAM Lap #2: 12.1 | KDE 4.8.2 | Core Duo T2400 | 32 | NVIDIA Quadro NVS 120 | 2GB RAM learning openSUSE and loving it -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Hallo George, op 28-05-12 01:20 schreef je:
On 05/27/2012 08:46 PM, Daniel Bauer wrote:
Maybe http://www.cgsecurity.org/wiki/PhotoRec can help you. Although it's name refers to photos it is able to "undelete" almost everything. Just make sure to let it save the recovered files on another disk (not the one you are recovering from)!
To me it helped a lot with external disks, photo and mobile phone cards, even after formating them...
Well, photorec was able to recover some lost files. Unfortunately my contact list wasn't in there. I don't know where it went. Sayang. In any case, thanks for the help! At least I got some of my missing files back!
Did you do a search on the .txt files? (When I used PhotoRec a few years ago, It saved a lot of files [.js, xml, etc.] as plain text files.) Harrie -- Harrie Baken - Tekstbureau TekstBaken www.tekstbaken.nl | Registered Linux-user #366560 openSUSE 12.1 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Sonntag, 27. Mai 2012, 20:01:36 schrieb George Olson:
[...] debugfs 1.41.14 (22-Dec-2010) /dev/sdc1: Bad magic number in super-block while opening filesystem [...] /dev/sdc1 8192 7991295 3991552 b W95 FAT32
AFAIK, debugfs is an ext debugger! You are trying to use it on a FAT partition. Searching for "linux undelete fat32" gave me this: http://www.cgsecurity.org/wiki/TestDisk:_undelete_file_for_FAT testdisk for openSUSE is available as unstable packages: http://software.opensuse.org/package/testdisk?search_term=testdisk HTH Jan -- There is no limit to how bad things can get. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Daniel Bauer
-
George Olson
-
Harrie Baken
-
Jan Ritzerfeld