@related : sd
DISK=/dev/sdb # sudo parted ${DISK} -s unit b print #| Model: USB 2.0 SD MMC Reader (scsi) #| Disk /dev/sdb: 3963617280B #| Sector size (logical/physical): 512B/512B #| Partition Table: msdos #| Number Start End Size Type File system Flags #| 1 4194304B 3963617279B 3959422976B primary fat32 parted /dev/mmcblk0 -s print unit b print #| Model: Unknown (unknown) #| Disk /dev/mmcblk0: 3964MB #| Sector size (logical/physical): 512B/512B #| Partition Table: msdos #| Number Start End Size Type File system Flags #| 1 4194kB 3964MB 3959MB primary fat32 #| Disk /dev/mmcblk0: 3963617280B #| 1 4194304B 3963617279B 3959422976B primary fat32 DISK=/dev/mmcblk0 DISK=/dev/sdc # sudo parted $DISK -s mklabel msdos unit cyl print mkpart primary fat16 64 255 toggle 1 boot print # 512 : parted /dev/mmcblk0 -s mklabel msdos unit cyl print mkpart primary fat16 119296B 512229375B mkfs 1 fat16 DISK=/dev/sdc # PART=${DISK}1 sudo mkfs.vfat -F 16 -n usbboot ${PART}
sudo parted /dev/mmcblk0 -s print unit b print unit cyl print #| Model: Unknown (unknown) #| Disk /dev/mmcblk0: 512MB #| Sector size (logical/physical): 512B/512B #| Partition Table: msdos #| Number Start End Size Type File system Flags #| 1 119kB 512MB 512MB primary fat16 #| Model: Unknown (unknown) #| Disk /dev/mmcblk0: 512229376B #| Sector size (logical/physical): 512B/512B #| Partition Table: msdos #| Number Start End Size Type File system Flags #| 1 119296B 512229375B 512110080B primary fat16 #| Model: Unknown (unknown) #| Disk /dev/mmcblk0: 992cyl #| Sector size (logical/physical): 512B/512B #| BIOS cylinder,head,sector geometry: 992,16,63. Each cylinder is 516kB. #| Partition Table: msdos #| Number Start End Size Type File system Flags #| 1 0cyl 992cyl 992cyl primary fat16