Phone sdcard and external sdcard missing several files

Using TestDisk to repair the filesystem
Post Reply
Message
Author
TestdiskForTheWin
Posts: 10
Joined: 07 Apr 2014, 12:12

Phone sdcard and external sdcard missing several files

#1 Post by TestdiskForTheWin » 07 Apr 2014, 13:52

Ive tried most of things for my very specific situation in Testdisk but they didnt help except a few things I havent tried because I dont know if and how do them.

What happened:
I had removable sdcard in phone and plugged phone into Pc via usb cable to charge phone and reverse tether(share PC's internet connection with phone).
The storages are always automounted even if I havent used Mount USB Storage in Android.For some reason (I dont know why) I used the option.After that I used unmount usb storage and pulled cable because it was taking very long and I thought that it is safe because the storage is not doing anything.
I also only selected eject removable media for one storage only (I use Lubuntu 14.04 Linux Operating System)

What is now:
Most of the files are gone and the storages have more free space.Ive not used the phone at all yet (for two weeks) to not overwrite any file.I need to use phone for work but asking around on multitude of forums have not helped me yet.

phone storage

Code: Select all

In the Boot menu I get the following warnings:

     Disk /dev/sdb - 12 GB / 11 GiB - CHS 1502 255 63
         Partition                  Start        End    Size in sectors
       P FAT32                    0   0  1  1502  63 33   24133632 [NO NAME]
    
    Boot sector
    check_FAT: Unusual media descriptor (0xf0!=0xf8)
    Warning: number of heads/cylinder mismatches 4 (FAT) != 255 (HD)
    Warning: number of sectors per track mismatches 16 (FAT) != 63 (HD)
    OK
    
    Backup boot sector
    check_FAT: Unusual media descriptor (0xf0!=0xf8)
    Warning: number of heads/cylinder mismatches 4 (FAT) != 255 (HD)
    Warning: number of sectors per track mismatches 16 (FAT) != 63 (HD)
    OK
    
    Sectors are identical.
    
    A valid FAT Boot sector must be present in order to access
    any data; even if the partition is not bootable.
After choosing Rebuild BS (Bootsector) I get warnings:

Code: Select all

Disk /dev/sdb - 12 GB / 11 GiB - CHS 1502 255 63
         Partition                  Start        End    Size in sectors
       P FAT32                    0   0  1  1502  63 33   24133632 [NO NAME]
    
    FAT : 32
    cluster_size 64 64
    reserved     32 32
    total_sect   24133632 24133632
    fat32_length 2946 2946
    root_cluster 2 2
    free_count   uninitialised 375052
    next_free    uninitialised 514
    Extrapolated boot sector and current boot sector are different.

**After the repair boot sector is finished nothing changes:I can still copy the same amount of files as before (almost nothing)** 
removable sdcard

Code: Select all

Disk /dev/sdc - 15 GB / 14 GiB - CHS 1909 255 63
     Partition                  Start        End    Size in sectors
   P FAT32                    0   0  1  1909  43 54   30670848 [NO NAME]

Boot sector
OK

Backup boot sector
OK

First sectors (Boot code and partition information) are not identical.

A valid FAT Boot sector must be present in order to access
any data; even if the partition is not bootable.
After choosing Rebuild BS (Bootsector) I get warnings:

Code: Select all

Disk /dev/sdc - 15 GB / 14 GiB - CHS 1909 255 63
     Partition                  Start        End    Size in sectors
   P FAT32                    0   0  1  1909  43 54   30670848 [NO NAME]

FAT : 32
cluster_size 64 64
reserved     704 704
total_sect   30670848 30670848
fat32_length 3744 3744
root_cluster 2 2
free_count   uninitialised 448822
next_free    uninitialised 11
Extrapolated boot sector and current boot sector are different.
Failed copy file attempts:
When using copy, all files that: Testdisk says are 32768 in size (there are lots of these files and they are not 32768 in size) fail to be copied and Testdisk immediately says
Copy done! 0 ok, 0 failed .Several other files are 0 in size according to Testdisk and I get the same message.

When I select copy 123Folder Testdisk always copies the 123Folder but with the contents of all files it sees.(For example the copied 123Folder will contain empty 123Folder and all other files Testdisk sees on storage) This issue is for some other folders too which have 0 in size according to Testdisk

Copied folder has exact same size and filename but it is an .exe so I cant access it.

Music folder (contains .flac) and TitaniumkBackup is zero in size according to Testdisk so I tried Photorec.But all files except 4 flac are corrupt.

Sponsored links

User avatar
cgrenier
Site Admin
Posts: 3754
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Phone sdcard and external sdcard missing several files

#2 Post by cgrenier » 07 Apr 2014, 21:01

Can you try PhotoRec 6.14 or 7.0-WIP ?
After selecting the partition, choose [Search] and [Whole] instead of [Free].

TestdiskForTheWin
Posts: 10
Joined: 07 Apr 2014, 12:12

Re: Phone sdcard and external sdcard missing several files

#3 Post by TestdiskForTheWin » 08 Apr 2014, 02:18

Thanks very much for your reply cgrenier.
I have used Photorec 7.0 WIP and used Whole.Photorec recovered most files Testdisk couldn't recover.
Unfortunately only 4 flac files out of about 56 aren't corrupted (I'm keeping the corrupted flac in hope that they can be fixed)
and most of tar jar zip wav png flac that Ive tried to open are corrupted.
(Im only after flac files and tar files unless I can restore filenames and directory structure)

Photorec hasn't finished restoring removable sdcard yet but most of files are corrupted.

Thanks again cgrenier.


User avatar
cgrenier
Site Admin
Posts: 3754
Joined: 18 Feb 2012, 15:08
Location: Le Perreux Sur Marne, France
Contact:

Re: Phone sdcard and external sdcard missing several files

#5 Post by cgrenier » 13 Apr 2014, 17:00

If the original filesystem was fragmented, all files can't be recovered successfully. Sorry.

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests