sudo vgreduce <volume name> <filesystem>
vgcreate <volume name> <filesystem>
sudo lvcreate --size <size> --name <directory 1> ... <directory n>
This is stored on /dev/directory_1/…/directory_n
Use mkfs as follow
sudo mkfs -t <filesystem_type> <disk_name>
mount <filesystem> <directory>
umount <filesystem>
UUID=8d113aa7-30d8-4c6d-b012-eeea1c463312 /backup ext4 noauto,defaults 0 0
mount -o ro <filesystem> <directory>
Each record in the /etc/fstab file contains information about a filesystem to be mounted at boot, their standard mount points and what options should be used when mounting them. Each record in the file contains white space separated fields of information about a filesystem to be mounted:
NFS, coda, afs are network filesystems.
root@mariadb:~# ls -lhF /sbin/mkfs*
-rwxr-xr-x 1 root root 15K Apr 9 2024 /sbin/mkfs*
-rwxr-xr-x 1 root root 23K Apr 9 2024 /sbin/mkfs.bfs*
-rwxr-xr-x 1 root root 35K Apr 9 2024 /sbin/mkfs.cramfs*
lrwxrwxrwx 1 root root 6 Oct 8 2023 /sbin/mkfs.ext2 -> mke2fs*
lrwxrwxrwx 1 root root 6 Oct 8 2023 /sbin/mkfs.ext3 -> mke2fs*
lrwxrwxrwx 1 root root 6 Oct 8 2023 /sbin/mkfs.ext4 -> mke2fs*
-rwxr-xr-x 1 root root 51K Mar 23 2022 /sbin/mkfs.fat*
-rwxr-xr-x 1 root root 43K Apr 9 2024 /sbin/mkfs.minix*
lrwxrwxrwx 1 root root 8 Dec 20 21:14 /sbin/mkfs.msdos -> mkfs.fat*
lrwxrwxrwx 1 root root 6 Dec 20 21:14 /sbin/mkfs.ntfs -> mkntfs*
lrwxrwxrwx 1 root root 8 Dec 20 21:14 /sbin/mkfs.vfat -> mkfs.fat*
layout: post —
root@mariadb:~# blkid /dev/sda*
/dev/sda: PTUUID="86eabe20-5bae-4421-b44d-5f868db10ea2" PTTYPE="gpt"
/dev/sda1: PARTUUID="c93cde54-cae8-4a4f-a714-2ccf57c1be63"
/dev/sda2: UUID="06F1-6200" BLOCK_SIZE="512" TYPE="vfat" PARTLABEL="EFI System Partition" PARTUUID="f8c6001d-84e9-49e3-ad67-2eb6f9feeacf"
/dev/sda3: UUID="19c5ce25-a085-434c-8ae2-bbb8be11756d" BLOCK_SIZE="4096" TYPE="ext4" PARTUUID="7ba971f7-262f-4a90-ad98-d1763afbb81e"