I have a pen drive and one partition:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 931.5G 0 disk └─sda1 8:1 0 931.5G 0 part / sdb 8:16 1 7.5G 0 disk └─sdb1 8:17 1 7.5G 0 part
and I have formatted with command:
# mkfs.fat -n A /dev/sdb
and it works fine.
But after then, I skimmed though the man page for mkfs:
mkfs is used to build a Linux filesystem on a device, usually a hard disk partition. The device argument is either the device name (e.g. /dev/hda1, /dev/sdb2), or a regular file that shall contain the filesystem. The size argument is the number of blocks to be used for the filesystem.
mkfs should work with partition number. And my problem is why my operation works without error prompt?