diskinfo -v da0
for my USB -SD card reader I see this:root@E6420:~ # diskinfo -v da0
da0
512 # sectorsize
16139354112 # mediasize in bytes (15G)
31522176 # mediasize in sectors
0 # stripesize
0 # stripeoffset
1962 # Cylinders according to firmware.
255 # Heads according to firmware.
63 # Sectors according to firmware.
000000000903 # Disk ident.
Not_Zoned # Zone Mode
root@E6420:~ # file /raid1/Images/_.disk.image.i386
/raid1/Images/_.disk.image.i386: DOS/MBR boot sector; partition 1 : ID=0xa5, start-CHS (0x3ff,255,63), end-CHS (0x3ff,255,63), startsector 1, 65536 sectors; partition 2 : ID=0xa5, active, start-CHS (0x3ff,255,63), end-CHS (0x3ff,255,63), startsector 65537, 334976 sectors
You can create a md(4) device backed by an image with mdconfig(8) and then use all the standard tools like gpart(8) etc. on it.What are the FreeBSD tools for working with images?
bs=bit sectors
root@E6420:~ # diskinfo -t ada0
ada0
512 # sectorsize
64023257088 # mediasize in bytes (60G)
125045424 # mediasize in sectors
0 # stripesize
0 # stripeoffset
124053 # Cylinders according to firmware.
16 # Heads according to firmware.
63 # Sectors according to firmware.
141183401444 # Disk ident.
Not_Zoned # Zone Mode