Creating a new file system in Linux
Here how you would create a new file system :
- First create a new partition using fdisk. eg:
fdisk /dev/sdb   –> Options (m , n,p,1,  ,t,8e,w) - Create volume group
vgcreate myvg /dev/sdb1 - Create a logical volume
lvcreate -L 512G -n my_lv myvg - mkfs.ext4 /dev/myvg/my_lv
- You can optionally add the file system in /etc/fstab to automatically mount
- Mount /myfilesystem