Messages in this thread | | | Date | Sat, 25 Oct 2003 19:41:02 +0200 | From | Vid Strpic <> | Subject | Re: *FAT problem in 2.6.0-test8 |
| |
On Sun, Oct 26, 2003 at 01:43:43AM +0900, OGAWA Hirofumi wrote: > Vid Strpic <vms@bofhlet.net> writes: > > > It looks like it doesn't conform to Microsoft's or SmartMedia's > > > specifications. > > > Yes. It will be important to know how it was formated. > > Well, I really don't know if it was formatted when I bought it, 2 years > > ago. What puzzles me, is that 2.4 mounts it normally... > Yes, 2.4 doesn't check it field.
Obviously. I compared the drivers 2.4.22 -> test8, and diff -u is about 1000 lines, a lot.
> > This is the hex dump of begginning (problematic no-name 64Mb card): > > 0000000: e900 002a 6453 777c 4948 4300 0220 0100 ...*dSw|IHC.. .. > > 0000010: 0200 0100 00f8 0c00 2000 0800 3700 0000 ........ ...7... > > 0000020: c9f3 0100 0000 0000 0000 0000 0000 0000 ................ > > 0000030: 0000 0000 0000 4641 5431 3220 2020 0000 ......FAT12 .. > > 0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ > > And this is the SanDisk 32Mb card which mounts normally under 2.6: > > 0000000: e900 0020 2020 2020 2020 2000 0220 0100 ... .. .. > > 0000010: 0200 01dd f9f8 0600 1000 0800 2300 0000 ............#... > > 0000020: 0000 0000 0000 2900 0000 004e 4f20 4e41 ......)....NO NA > > 0000030: 4d45 2020 2020 4641 5431 3220 2020 0000 ME FAT12 .. > > 0000040: 0000 0000 0000 0000 0000 0000 0000 0000 ................ > On these FAT formats, the target field should be offset 512.
Hm.
> > Maybe I should try to reformat the card in the reader? My camera has > > 'delete all images' but no 'format card' I'm sorry... > Um.. Could you please test to reformat? Of course, do it after backup > the your disk image.
Backups were done yesterday, I'm on the backup-freak side ;)
Just reformatted, it works - used mkdosfs -F 12 -v /dev/sda1, camera reads the card and can write picture on it...
Reformatted card now can be mounted by standard fat.ko ...
-- vms@bofhlet.net, IRC:*@Martin, /bin/zsh. C|N>K Linux moria 2.6.0-test8 #1 Mon Oct 20 16:19:20 CEST 2003 i686 19:30:50 up 1 day, 2:14, 1 user, load average: 0.97, 1.51, 0.87 Najkraci C program se sastoji od osam znakova: main(){} (C)Hrv, 2002. [unhandled content-type:application/pgp-signature] | |