mkfs with label

Posted on Thu 11 May 2017 in Linux, mkfs

Pretty basic, but for whatever reason I always tend to forget the flag for setting a label when using mkfs. For future reference:

mkfs.ext4 -L label /dev/sdb1