~/nodetwelve.com$
33 notes · 6 topics
updated 2026-05-10

Add a storage drive to Proxmox 7

· 2 min read

Open the web GUI shell

Log in to the Proxmox web interface, select your node, and open the Shell tab as root.

Proxmox web GUI node shell

List available drives

Run lsblk to list all block devices attached to the host. In this example, sda is the extra SATA drive we want to add.

lsblk displays details about block devices connected to the system (excluding RAM disks).

lsblk

Output of lsblk listing available drives in Proxmox

Partition and format the drive

Warning

Double-check the device path (for example /dev/sda) before running parted or mkfs.ext4. Selecting the wrong disk will wipe existing data.

Install parted if it is not already present, then create a GPT partition table on the new drive:

apt-get update
apt policy parted
apt install parted
parted /dev/sda mklabel gpt

Create a single primary partition using the full disk and format it as ext4. Replace YOURLABELGOESHERE with the label you want for the drive:

parted -a opt /dev/sda mkpart primary ext4 0% 100%
mkfs.ext4 -L YOURLABELGOESHERE /dev/sda1

Run lsblk again to confirm the new partition (sda1) appears:

Output of lsblk showing the newly created sda1 partition

Create a mount point

Create a directory under /mnt where the drive will be mounted. Replace YOURDIRECTORY with a descriptive name such as externaldrive or backups:

mkdir -p /mnt/YOURDIRECTORY

Configure automatic mounting in fstab

Open /etc/fstab so the drive mounts automatically after every reboot:

nano /etc/fstab

Add the following line at the bottom, replacing YOURLABELGOESHERE and YOURDIRECTORY with the values you chose earlier:

LABEL=YOURLABELGOESHERE /mnt/YOURDIRECTORY ext4 defaults 0 2

Mount the drive and verify

Apply the /etc/fstab changes immediately without rebooting:

mount -a

Check with lsblk that the partition is mounted and visible. In this example, sda1 is labelled backups and mounted at /mnt/backups:

lsblk

Output of lsblk confirming sda1 is mounted at /mnt/backups

Add the directory storage in Proxmox 7

Go back to the Proxmox web interface and navigate to Datacenter > Storage.

Proxmox Datacenter Storage menu

Adding directory storage in Proxmox 7

Summary

The new drive will now mount automatically on boot and show up as usable storage inside Proxmox. You can pick it directly as the target storage whenever you run backups for your containers and virtual machines.

Added storage drive available as a backup destination in Proxmox