Hello,
First, let me say I'm not a newbie.
I have a SDcard-based CoolPix 3700 digital camera with a 256MB card. On this card, I put 2 jpg and 1 mov (using CP=CoolPix). Then suddenly, the CP told me: "this card cannot be used", and it appeared empty! I thought, 3 files' not a lot, I let it go.
I went on holiday and took tens of jpg and some mov using the same "now-empty" SDcard. I browsed the new files each evening, and all was OK. Back home, the CP suddenly did it again: "this card cannot be used" (it is clear it is a bug from the CP...). And all was gone again! This time it was not only 3 files, so I plugged it on the PC, and
here strange things began:
First I must explain the layout for the CP's fat16 filesystem. There's a "dcim" directory containing the data, and another containing meta-data (let me call this one xxxx as I don't remember the name).
I had already used this card, as well as another, and put the pictures on the PC through the USB cable (/dev/sda1 hotplugged), without any problem. Each time I had:
Code:
/mnt/removable# ls
dcim/ xxxx/
But this time:
Code:
/mnt/removable# ls
dcim/ dcim/ dcim/ xxxx/
And find . , as well as ls -R are consistent! Except the content of dcim
appears to be the same for each dcim. However, ls[tab] only displays: dcim xxxx.
And guess what are the files inside dcim? Those are the 3 files of the start! Those I thought were lost forever and I did not care much about. And all along while storing new photos on the CP, those 3 files were not there, I'm positive about it!
I know nothing about filesystems, and
I had always thought this was impossible, but IMHO:
the CP created dcim and xxxx. 3 files were created. The bug striked for the first time and dcim was somehow created again:
- masking the old dcim, from the CP's point of view, but
- being masked by the old dcim from the PC's point of view.
I took new photos and videos. Then the bug striked for the second time, and dcim was created again:
- masking again (so empty), from the CP's point of view, but
- still masked by the first dcim from the PC's point of view.
That's the only reasonable explanation I have. I tried manually creating a new device (same major, minor+1) for a supposed /dev/sda2. But I got nothing. So I dd if=/dev/sda of=cp.img the whole card, and looked at it with fdisk. And inside, there's only one partition. This makes me think there's indeed only one partition with a "strange" filesystem on it. BTW, I still preciously keep the cp.img file.
Note, however, that when I bought the SDcard, it was preformated, and I had no problems with it. When I needed space, I deleted files one by one. Problems began after I deleted everything by reformating the card
using the Coolpix.
Well...
you guess why I need a filesystem guru: I'd like to somehow get access to the (IMO) hidden files... Thanks for any hint, any suggestion. I'll try and do my best from even the slightest idea of a possibility...
Yves.