Skip to main content

Mount a Drive by ID in Proxmox

First find the ID of the drive you want to mount.

Note: In this example, we're mounting the partition /dev/sde1.

  • Open the Proxmox Virtual Environment (PVE) web console.

  • In the Server View (lefthand pane), find the node under Datacenter and open the PVE node's shell.

  • For this example, we want to mount /dev/sde1. Note the partition number 1 in the device path β€” this is a partition, not a physical drive (which wouldn't have a number, e.g. /dev/sde).

  • Create an empty directory where the partition will be mounted:

    mkdir /mnt/datassd
  • Get the ID and filesystem of the drive by running (substitute sde1 with your partition):

    lsblk -f | grep sde1

    Output:

    └─sde1 ext4 1.0 fb08fe41-01c5-4c2f-8b2e-c3bb600007b4 1T 38%
  • Test mounting the drive via the mount command:

    mount -U fb08fe41-01c5-4c2f-8b2e-c3bb600007b4 /mnt/datassd
  • If it mounts and works as expected, edit your fstab with the ID and filesystem:

    nano /etc/fstab
  • Add a line like this (substituting your ID, path, and filesystem values):

    /dev/disk/by-uuid/fb08fe41-01c5-4c2f-8b2e-c3bb600007b4 /mnt/datassd ext4 rw 0 0
  • Test reloading your fstab like this:

    mount -a