MBR or not? (on SD cards)

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

Reply to
Silvar Beitel
Loading thread data ...

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.

Reply to
robertwessel2

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.