Create an ext4 filesystem with a volume-label

mkfs.ext4

sudo mkfs.ext4 -L {{volume_label}} {{/dev/sdb1}}

click the source code to copy