Khoa Bui's Website

Resume

Linkedin

Github

Academic Works

Contact Me

Notes

Filesystem Basics

LVM Storage management

How to format a disk?

Use mkfs as follow

sudo mkfs -t <filesystem_type> <disk_name>

How to mount a VFS?

  1. Mount the filesystem to the directory:
    mount <filesystem> <directory>
    
  2. Vice versa, you can unmount with:
    umount <filesystem>
    

How to configure auto-mount?

  1. Edit the fstab file with noauto option. Example:
    UUID=8d113aa7-30d8-4c6d-b012-eeea1c463312   /backup    ext4   noauto,defaults    0 0
    

How to make a mount read only?

  1. Run the command:
    mount -o ro <filesystem> <directory>
    

/etc/fstab

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:

Notable Filesystems:


layout: post —

Disk Partition