Back

Mounting a Volume

Before mounting a volume, create a mount point:

$ sudo mkdir -p /mnt/mount_point_name

Mount the volume:

$ sudo mount -o discard,defaults /dev/vdb /mnt/mount_point_name

Keeping mount point through reboots

You need to add a record into the "fstab" config if you want OS to mount a volume automatically after boot:

$ echo '/dev/vdb /mnt/mount_point_name ext4 defaults,nofail,discard 0 0' | sudo tee -a /etc/fstab

Share

Suggested Articles

  • Cloud server volumes

    Creating a Filesystem on a New Volume

  • Cloud server volumes

    Overview