Skip to content

Instantly share code, notes, and snippets.

@rngadam
Created June 9, 2012 04:45
Show Gist options
  • Select an option

  • Save rngadam/2899521 to your computer and use it in GitHub Desktop.

Select an option

Save rngadam/2899521 to your computer and use it in GitHub Desktop.
Information extracted from a MicroSD formatted using SD Formatter 3.1
fdisk layout
# fdisk -l /dev/sdb
Disk /dev/sdb: 7964 MB, 7964983296 bytes
255 heads, 63 sectors/track, 968 cylinders, total 15556608 sectors
Units = sectors of 1 * 512 = 512 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 8192 15550919 7771364 b W95 FAT32
parted output
# parted /dev/sdb -s print
Model: Generic STORAGE DEVICE (scsi)
Disk /dev/sdb: 7965MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4194kB 7962MB 7958MB primary fat32
sfdisk
root@rngadam-think:~/lophilo-OS.nfs/root# sfdisk -d /dev/sdb
# partition table of /dev/sdb
unit: sectors
/dev/sdb1 : start= 8192, size= 15542728, Id= b
/dev/sdb2 : start= 0, size= 0, Id= 0
/dev/sdb3 : start= 0, size= 0, Id= 0
/dev/sdb4 : start= 0, size= 0, Id= 0
fsck.msdos output
# fsck.msdos -v /dev/sdb1
dosfsck 3.0.12 (29 Oct 2011)
dosfsck 3.0.12, 29 Oct 2011, FAT32, LFN
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID " "
Media byte 0xf8 (hard disk)
512 bytes per logical sector
32768 bytes per cluster
4398 reserved sectors
First FAT starts at byte 2251776 (sector 4398)
2 FATs, 32 bit entries
971264 bytes per FAT (= 1897 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 4194304 (sector 8192)
242727 data clusters (7953678336 bytes)
63 sectors/track, 255 heads
8192 hidden sectors
15542728 sectors total
Checking for unused clusters.
Checking free cluster summary.
/dev/sdb1: 1 files, 1/242727 clusters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment