4GB Kingston CF card -------------------- says: copyright 2014 24-Jun-2014 ----------- Out of the box: [root@toad-sl61 ~]# dosfsck -v /dev/sdb1 dosfsck 3.0.9 (31 Jan 2010) dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN Checking we can access the last sector of the filesystem Boot sector contents: System ID "MSDOS5.0" Media byte 0xf8 (hard disk) 512 bytes per logical sector 32768 bytes per cluster 6288 reserved sectors First FAT starts at byte 3219456 (sector 6288) 2 FATs, 32 bit entries 487424 bytes per FAT (= 952 sectors) Root directory start at cluster 2 (arbitrary size) Data area starts at byte 4194304 (sector 8192) 121728 data clusters (3988783104 bytes) 63 sectors/track, 16 heads 8128 hidden sectors 7798832 sectors total Checking for unused clusters. Checking free cluster summary. Free cluster summary uninitialized (should be 121727) /dev/sdb1: 1 files, 1/121728 clusters [root@toad-sl61 ~]# fdisk /dev/sdb WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdb: 3997 MB, 3997163520 bytes 128 heads, 63 sectors/track, 968 cylinders Units = cylinders of 8064 * 512 = 4128768 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/sdb1 * 2 969 3899416 c W95 FAT32 (LBA) Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 128, 1) logical=(1, 1, 2) Partition 1 has different physical/logical endings: phys=(967, 127, 63) logical=(968, 15, 63) Command (m for help): q Use gParted on macbook VM delete existing partition create 256MiB fat16 partition check again from linux -> there now is a different number of head/sect/cyl !!!??? [root@toad-sl61 ~]# fdisk /dev/sdb WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdb: 3997 MB, 3997163520 bytes 195 heads, 34 sectors/track, 1177 cylinders Units = cylinders of 6630 * 512 = 3394560 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0006de95 Device Boot Start End Blocks Id System /dev/sdb1 1 80 262144 6 FAT16 And the number of reserved sectors is 8 instead of 1 [root@toad-sl61 ~]# dosfsck -v /dev/sdb1 dosfsck 3.0.9 (31 Jan 2010) dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN Checking we can access the last sector of the filesystem Boot sector contents: System ID "mkdosfs" Media byte 0xf8 (hard disk) 512 bytes per logical sector 4096 bytes per cluster 8 reserved sectors First FAT starts at byte 4096 (sector 8) 2 FATs, 16 bit entries 131072 bytes per FAT (= 256 sectors) Root directory starts at byte 266240 (sector 520) 512 root directory entries Data area starts at byte 282624 (sector 552) 65467 data clusters (268152832 bytes) 62 sectors/track, 123 heads 0 hidden sectors 524288 sectors total Checking for unused clusters. /dev/sdb1: 58 files, 155/65467 clusters Disconnect - Reconnect to VM Reformat [root@toad-sl61 ~]# mkdosfs -f 2 -F 16 -R 1 -S 512 -s 16 -r 512 -v -n "CMX_CF07" /dev/sdb1 mkfs.fat 3.0.26 (2014-03-07) /dev/sdb1 has 123 heads and 62 sectors per track, hidden sectors 0x0800; logical sector size is 512, using 0xf8 media descriptor, with 524288 sectors; drive number 0x80; filesystem has 2 16-bit FATs and 16 sectors per cluster. FAT size is 128 sectors, and provides 32749 clusters. There is 1 reserved sector. Root directory contains 512 slots and uses 32 sectors. Volume ID is 5238cc43, volume label CMX_CF07 . [root@toad-sl61 ~]# dosfsck -v /dev/sdb1 dosfsck 3.0.9 (31 Jan 2010) dosfsck 3.0.9, 31 Jan 2010, FAT32, LFN Checking we can access the last sector of the filesystem Boot sector contents: System ID "mkfs.fat" Media byte 0xf8 (hard disk) 512 bytes per logical sector 8192 bytes per cluster 1 reserved sector First FAT starts at byte 512 (sector 1) 2 FATs, 16 bit entries 65536 bytes per FAT (= 128 sectors) Root directory starts at byte 131584 (sector 257) 512 root directory entries Data area starts at byte 147968 (sector 289) 32749 data clusters (268279808 bytes) 62 sectors/track, 123 heads 2048 hidden sectors 524288 sectors total Checking for unused clusters. /dev/sdb1: 1 files, 0/32749 clusters from Windows copy ACE config files 268,279,808 bytes (255 MB) capacity 36,970,496 bytes (35.2 MB) used