|
From: Silvar Beitel on 9 Jul 2008 11:32 Most of the various SD cards I have examined have Master Boot Records on them (like a hard disk), but one (a Dane-Elec 128 MB) has none and starts right in with the (obviously only) volume Boot Record, like a floppy disk. Is there a "simple" "standard" way to tell whether or not a card has one? Obrigado in advance :-) -- Silvar Beitel
From: robertwessel2 on 9 Jul 2008 17:45 On Jul 9, 10:32 am, Silvar Beitel <silverbee...(a)net1plus.com> wrote: > Most of the various SD cards I have examined have Master Boot Records > on them (like a hard disk), but one (a Dane-Elec 128 MB) has none and > starts right in with the (obviously only) volume Boot Record, like a > floppy disk. Is there a "simple" "standard" way to tell whether or > not a card has one? You can read the first sector of the disk and looking to see if it has a partition table in it, or you can read the first sector of the volume on the device, and assuming it's FAT (12/16/32), the disk will be partitioned if the hidden sector count (at offset +28) is non- zero. The latter is generally possible for non-FAT filesystems as well, but the details vary.
|
Pages: 1 Prev: 3X4 KEY PAD INTERFACE Next: Timer ticks occurring much more faster |