So we have this note on the wiki about aligning partitions to 4MB:
http://pandorawiki.org/Formatting_SD_cards#Partitions
And more details:
http://wiki.laptop.org/go/How_to_Damage_a_FLASH_Storage_Device
The factory format is probably right, so what would be good ways to get information about it, either for making a similar one or to restore it later? The partition layout should be simple, but looks like the file system parameters might matter too.
One example card:
sudo fdisk -lu /dev/mmcblk1
Disk /dev/mmcblk1: 3965 MB, 3965190144 bytes
49 heads, 48 sectors/track, 3292 cylinders, total 7744512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk1p1 8192 7744511 3868160 b W95 FAT32
I think that means it has a partition which starts at 4MiB. Do SD cards always have partitions, or do some not? And a partition can't start at 0 because the partition layout information has to go at the beginning?
(cfdisk says "FATAL ERROR: Bad primary partition 0: Partition ends in the final partition cyl".)
http://pandorawiki.org/Formatting_SD_cards#Partitions
And more details:
http://wiki.laptop.org/go/How_to_Damage_a_FLASH_Storage_Device
The factory format is probably right, so what would be good ways to get information about it, either for making a similar one or to restore it later? The partition layout should be simple, but looks like the file system parameters might matter too.
One example card:
sudo fdisk -lu /dev/mmcblk1
Disk /dev/mmcblk1: 3965 MB, 3965190144 bytes
49 heads, 48 sectors/track, 3292 cylinders, total 7744512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/mmcblk1p1 8192 7744511 3868160 b W95 FAT32
I think that means it has a partition which starts at 4MiB. Do SD cards always have partitions, or do some not? And a partition can't start at 0 because the partition layout information has to go at the beginning?
(cfdisk says "FATAL ERROR: Bad primary partition 0: Partition ends in the final partition cyl".)