Skip to main content

Mount new partition

The instruction details how to mount a new partition if you failed to do this before the installation:

note

Run all commands as the root user or a user with super admin privileges.

  1. Check if there are any mounted partitions of appropriate size:

    lsblk
  2. Check the disk partitioning:

    fdisk -l
  3. Create a new partition (/dev/sdb is the new partition to be parted):

    fdisk /dev/sdb -> n - add a new partition
    -> p - primary partition -> 1
    -> w - write your actions
  4. Check the disk partitioning. You will see the created /dev/sdb1 partition:

    fdisk -l
  5. Format a block storage device with a specific filesystem:

    mkfs.xfs /dev/sdb1
  6. Create a mounpoint:

    mkdir -p /opt/workfusion
  7. Mount the created partition to the directory:

    mount /dev/sdb1 /opt/workfusion
  8. Add a record to /etc/fstab to allow the system to mount the partition automatically after the server restart:

    cat << EOF >> /etc/fstab
    /dev/sdb1 /opt/workfusion xfs defaults 0 0
    EOF