Generals

Format Flash Disk on Ubuntu

root@ts:/home/ts# fdisk -l
Disk /dev/sda: 465,8 GiB, 500107862016 bytes, 976773168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x721a166e

Device Boot Start End Sectors Size Id Type
/dev/sda1 * 2048 781461503 781459456 372,6G 83 Linux
/dev/sda2 781463550 791031807 9568258 4,6G 5 Extended
/dev/sda5 781463552 791031807 9568256 4,6G 82 Linux swap / Solaris

Partition 2 does not start on physical sector boundary.

Disk /dev/sdb: 14,6 GiB, 15664676864 bytes, 30595072 sectorsfdisk -l
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x199700bc

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 0 3312959 3312960 1,6G 0 Empty
/dev/sdb2 3241304 3246167 4864 2,4M ef EFI (FAT-12/16/32)

root@ts:/home/ts# umount /dev/sdb1

root@ts:/home/ts# mkfs.vfat /dev/sdb1
mkfs.fat 4.0 (2016-05-06)

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s