Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.mobile.android > #65385 > unrolled thread

SD Card data recovery files filled with 0s

Started byRoland Schweiger <roland_schweiger@web.de>
First post2019-12-09 10:45 +0100
Last post2019-12-11 15:46 +0100
Articles 11 — 6 participants

Back to article view | Back to comp.mobile.android


Contents

  SD Card data recovery files filled with 0s Roland Schweiger <roland_schweiger@web.de> - 2019-12-09 10:45 +0100
    Re: SD Card data recovery files filled with 0s Chris <ithinkiam@gmail.com> - 2019-12-09 13:30 +0000
      Re: SD Card data recovery files filled with 0s Roland Schweiger <roland_schweiger@web.de> - 2019-12-09 17:50 +0100
        Re: SD Card data recovery files filled with 0s Roland Schweiger <roland_schweiger@web.de> - 2019-12-09 17:59 +0100
          Re: SD Card data recovery files filled with 0s Chris <ithinkiam@gmail.com> - 2019-12-09 22:27 +0000
            Re: SD Card data recovery files filled with 0s Roland S <rol@live.at> - 2019-12-10 11:52 +0000
            Re: SD Card data recovery files filled with 0s Eric Pozharski <whynot@pozharski.name> - 2019-12-11 09:34 +0200
              Re: SD Card data recovery files filled with 0s Chris <ithinkiam@gmail.com> - 2019-12-11 14:18 +0000
        Re: SD Card data recovery files filled with 0s "Carlos E.R." <robin_listas@es.invalid> - 2019-12-09 21:41 +0100
    Re: SD Card data recovery files filled with 0s Piet <www.godfatherof.nl/@opt-in.invalid> - 2019-12-10 16:54 +0100
      Re: SD Card data recovery files filled with 0s "Carlos E.R." <robin_listas@es.invalid> - 2019-12-11 15:46 +0100

#65385 — SD Card data recovery files filled with 0s

FromRoland Schweiger <roland_schweiger@web.de>
Date2019-12-09 10:45 +0100
SubjectSD Card data recovery files filled with 0s
Message-ID<qsl539$kta$1@news.albasani.net>
  Have an LG G4 phone with camera storing photos / videos on SD card.

The LG G4 has a "gallery App" and i long-pressed accidentially on my 
album and hit DELETE, it deleted the ENTIRE album instead of just one 
picture.

So i pulled the SD card out, stuck it into a card reader on my PC ant 
tried several data recovery methods.

The card is formatted in exFAT so i tried exFAT-capable programs such as
sdXCardRecovery, R-Undelete, AidFile.

They all tend do correctly FIND the deleted files, proper date-stamp and 
file sitzes.
But looking at the recovered files with a HEX editor, they are all 
filled with zeros.

Can this really be a behaviour of the phone's gallery app that photos 
get properly deleted with 0s overwriting, or is there still a chance 
e.g. the controllers of the card-readers cannot read deleted blocks?

Does anyone have similar experience?


greetings from Vienna, and wonderful pre-christmas time (in German - 
Advent) from

Roland Schweiger

[toc] | [next] | [standalone]


#65386

FromChris <ithinkiam@gmail.com>
Date2019-12-09 13:30 +0000
Message-ID<qsli9d$ama$3@dont-email.me>
In reply to#65385
On 09/12/2019 09:45, Roland Schweiger wrote:
> 
>   Have an LG G4 phone with camera storing photos / videos on SD card.
> 
> The LG G4 has a "gallery App" and i long-pressed accidentially on my 
> album and hit DELETE, it deleted the ENTIRE album instead of just one 
> picture.
> 
> So i pulled the SD card out, stuck it into a card reader on my PC ant 
> tried several data recovery methods.
> 
> The card is formatted in exFAT so i tried exFAT-capable programs such as
> sdXCardRecovery, R-Undelete, AidFile.
> 
> They all tend do correctly FIND the deleted files, proper date-stamp and 
> file sitzes.
> But looking at the recovered files with a HEX editor, they are all 
> filled with zeros.
> 
> Can this really be a behaviour of the phone's gallery app that photos 
> get properly deleted with 0s overwriting, or is there still a chance 
> e.g. the controllers of the card-readers cannot read deleted blocks?
> 
> Does anyone have similar experience?

I have used photorec once or twice in the past and it works well. 
Although all the files had random names, their content was all there.

Did you format the SD card as an extended version of the internal FS or 
was it a separate volume? If you had the former, that might scupper your 
chances.

> 
> greetings from Vienna, and wonderful pre-christmas time (in German - 
> Advent) from

I bet Vienna is beautiful at this time of year. A lovely city.

[toc] | [prev] | [next] | [standalone]


#65387

FromRoland Schweiger <roland_schweiger@web.de>
Date2019-12-09 17:50 +0100
Message-ID<qslu1e$5a2$1@news.albasani.net>
In reply to#65386
Am 09.12.2019 um 14:30 schrieb Chris:

> Did you format the SD card as an extended version of the internal FS or  > was it a separate volume? If you had the former, that might scupper 
your > chances.



The card was formatted as a SEPERATE VOLUME in exFAT; it was never part 
of the internal file-system.
Also i never moved any APPs to the card, the card is exclusively used by 
the camera-app to store photos / videos.


And i also tried Photorec (which is now part of the TestDisk suite) but 
AFAIK it does not support exFAT and in the parameter serttings where it 
supports file-system-independant recovery, it only recoveres worthless 
files.

I am quite surprised - i cannot imagine that the LG phone's camera 
(gallery) app really thorrowly deletes an album entirely with 
overwriting 0s as this would unintentionally streign the wearleveling of 
the card.
Really thought that chances of recovery would be good but as i said ... 
the tools that support exFAT do find the files (with correct names and 
date) but content entirely 0s.

Anyhow, thanks for replying.


> I bet Vienna is beautiful at this time of year. A lovely city.

Yep Vienna is nece, but (i say this as an Austrian) ... i think 
especially for Christmas, there are cities in the world with even mor 
pittoresc scenes. But yes the city center offers much variety round the 
year and at christmas, right now we don't have snow in the city which 
makes life easier to get around.

greetings


Roland Schweiger

[toc] | [prev] | [next] | [standalone]


#65388

FromRoland Schweiger <roland_schweiger@web.de>
Date2019-12-09 17:59 +0100
Message-ID<qslui8$6bk$1@news.albasani.net>
In reply to#65387
> And i also tried Photorec (which is now part of the TestDisk suite) but 
> AFAIK it does not support exFAT and in the parameter serttings where it 
> supports file-system-independant recovery, it only recoveres worthless 
> files.


UPDATE - actually Photorec does aparantly support exFAT as it mentions 
it wonce in the parameter explaination (it says HPFS - NTFS but then 
asks if only unallocated or entire space of exFAT should be scanned).

Now i have one more test -- i stuck the card into a different 
card-reader --- maybe the controller is accessible slightly differently 
and it can recover more than 0s.

greetings

Roland Schweiger

[toc] | [prev] | [next] | [standalone]


#65391

FromChris <ithinkiam@gmail.com>
Date2019-12-09 22:27 +0000
Message-ID<qsmhpe$nho$1@dont-email.me>
In reply to#65388
Roland Schweiger <roland_schweiger@web.de> wrote:
> 
>> And i also tried Photorec (which is now part of the TestDisk suite) but 
>> AFAIK it does not support exFAT and in the parameter serttings where it 
>> supports file-system-independant recovery, it only recoveres worthless 
>> files.
> 
> 
> UPDATE - actually Photorec does aparantly support exFAT as it mentions 
> it wonce in the parameter explaination (it says HPFS - NTFS but then 
> asks if only unallocated or entire space of exFAT should be scanned).
> 
> Now i have one more test -- i stuck the card into a different 
> card-reader --- maybe the controller is accessible slightly differently 
> and it can recover more than 0s.
> 

A top tip is to take an disk image of the card before any tests on the
actual card. Saves any corruption of the precious data. 

[toc] | [prev] | [next] | [standalone]


#65398

FromRoland S <rol@live.at>
Date2019-12-10 11:52 +0000
Message-ID<qso0uh$pvj$1@news.albasani.net>
In reply to#65391
 
>
>A top tip is to take an disk image of the card before any tests on the
>actual card. Saves any corruption of the precious data. 
>
unfortunately no luck

------------------

from Android 6.0

[toc] | [prev] | [next] | [standalone]


#65413

FromEric Pozharski <whynot@pozharski.name>
Date2019-12-11 09:34 +0200
Message-ID<slrnqv170o.hkl.whynot@orphan.zombinet>
In reply to#65391
with <qsmhpe$nho$1@dont-email.me> Chris wrote:
> Roland Schweiger <roland_schweiger@web.de> wrote:

>>> And i also tried Photorec (which is now part of the TestDisk suite)
>>> but AFAIK it does not support exFAT and in the parameter serttings
>>> where it supports file-system-independant recovery, it only
>>> recoveres worthless files.
>> UPDATE - actually Photorec does aparantly support exFAT as it
>> mentions it wonce in the parameter explaination (it says HPFS - NTFS
>> but then asks if only unallocated or entire space of exFAT should be
>> scanned).
*SKIP*
> A top tip is to take an disk image of the card before any tests on the
> actual card. Saves any corruption of the precious data. 

Topper tip would be unleashing an undeleter on the image because it
saves time (if successful).  (I've undeleted 16G for multiple filetypes;
unfortunately, google was faster -- all my apks were gone.)

-- 
Torvalds' goal for Linux is very simple: World Domination
Stallman's goal for GNU is even simpler: Freedom

[toc] | [prev] | [next] | [standalone]


#65414

FromChris <ithinkiam@gmail.com>
Date2019-12-11 14:18 +0000
Message-ID<qsqtsg$jie$1@dont-email.me>
In reply to#65413
Eric Pozharski <whynot@pozharski.name> wrote:
> with <qsmhpe$nho$1@dont-email.me> Chris wrote:
>> Roland Schweiger <roland_schweiger@web.de> wrote:
> 
>>>> And i also tried Photorec (which is now part of the TestDisk suite)
>>>> but AFAIK it does not support exFAT and in the parameter serttings
>>>> where it supports file-system-independant recovery, it only
>>>> recoveres worthless files.
>>> UPDATE - actually Photorec does aparantly support exFAT as it
>>> mentions it wonce in the parameter explaination (it says HPFS - NTFS
>>> but then asks if only unallocated or entire space of exFAT should be
>>> scanned).
> *SKIP*
>> A top tip is to take an disk image of the card before any tests on the
>> actual card. Saves any corruption of the precious data. 
> 
> Topper tip would be unleashing an undeleter on the image because it
> saves time (if successful).  

That was what I meant, but I see that what I wrote was arse-about-face. 


[toc] | [prev] | [next] | [standalone]


#65390

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-12-09 21:41 +0100
Message-ID<q4o2cg-5oo.ln1@Telcontar.valinor>
In reply to#65387
On 09/12/2019 17.50, Roland Schweiger wrote:

...

> I am quite surprised - i cannot imagine that the LG phone's camera
> (gallery) app really thorrowly deletes an album entirely with
> overwriting 0s as this would unintentionally streign the wearleveling of
> the card.

Indeed.
Seems to be a "secure delete" function, not a normal delete.
Not even a format fills data sectors with zeroes.

Yes, you should try different hardware readers and computers if possible.

-- 
Cheers, Carlos.

[toc] | [prev] | [next] | [standalone]


#65401

FromPiet <www.godfatherof.nl/@opt-in.invalid>
Date2019-12-10 16:54 +0100
Message-ID<qsof2n$19uc$1@gioia.aioe.org>
In reply to#65385
Roland Schweiger wrote:
> The LG G4 has a "gallery App" and i long-pressed accidentially on my 
> album and hit DELETE, it deleted the ENTIRE album instead of just one 
> picture.

Useful feature, but not always. ;-)

> So i pulled the SD card out, stuck it into a card reader on my PC ant 
> tried several data recovery methods.
> The card is formatted in exFAT so i tried exFAT-capable programs such as
> sdXCardRecovery, R-Undelete, AidFile.
> They all tend do correctly FIND the deleted files, proper date-stamp and 
> file sitzes.
> But looking at the recovered files with a HEX editor, they are all 
> filled with zeros.

I've had the same with the sd-card of a friend's camera. After copying
all files to his pc he formatted the sd-card in the camera. The photos
were okay, but the videos were nowhere to be found. Turned out videos
reside in a different folder, which he hadn't copied. Checked the SD
card with several recovery progs, but all "recovered" files contained
only zeroes.

> Can this really be a behaviour of the phone's gallery app that photos 
> get properly deleted with 0s overwriting

Any chance that the sd-card was encrypted? I could imagine encryption
making only zeroes show up when a file is read on another device.

> greetings from Vienna

Then before the next destructive action you may want to have a look at
MyPhoneExplorer on fjsoft.at (yeah, Austria) and its Android companion
(Google Play Store). Works like a charm.

-p

[toc] | [prev] | [next] | [standalone]


#65415

From"Carlos E.R." <robin_listas@es.invalid>
Date2019-12-11 15:46 +0100
Message-ID<23c7cg-rgt.ln1@Telcontar.valinor>
In reply to#65401
On 10/12/2019 16.54, Piet wrote:
> Roland Schweiger wrote:
>> The LG G4 has a "gallery App" and i long-pressed accidentially on my 
>> album and hit DELETE, it deleted the ENTIRE album instead of just one 
>> picture.
> 
> Useful feature, but not always. ;-)
> 
>> So i pulled the SD card out, stuck it into a card reader on my PC ant 
>> tried several data recovery methods.
>> The card is formatted in exFAT so i tried exFAT-capable programs such as
>> sdXCardRecovery, R-Undelete, AidFile.
>> They all tend do correctly FIND the deleted files, proper date-stamp and 
>> file sitzes.
>> But looking at the recovered files with a HEX editor, they are all 
>> filled with zeros.
> 
> I've had the same with the sd-card of a friend's camera. After copying
> all files to his pc he formatted the sd-card in the camera. The photos
> were okay, but the videos were nowhere to be found. Turned out videos
> reside in a different folder, which he hadn't copied. Checked the SD
> card with several recovery progs, but all "recovered" files contained
> only zeroes.

Wild guessing. Maybe the blocks are zeroed because on flash media this
makes writing them with new content faster.

Guessing that flash media have a function to erase blocks instantly. Or
to appear as deleted, and a trim function then actually deletes them later.

These are wild guesses, no idea if they are true.

> 
>> Can this really be a behaviour of the phone's gallery app that photos 
>> get properly deleted with 0s overwriting
> 
> Any chance that the sd-card was encrypted? I could imagine encryption
> making only zeroes show up when a file is read on another device.

No, encryption looks like random data (and possibly zeroes decode as
some other random data).

-- 
Cheers, Carlos.

[toc] | [prev] | [standalone]


Back to top | Article view | comp.mobile.android


csiph-web