Skip to content

Instantly share code, notes, and snippets.

@kstevenson722
Last active March 17, 2024 18:38
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save kstevenson722/f90e9f09ac40da8ab7e9e2fb10573581 to your computer and use it in GitHub Desktop.
Save kstevenson722/f90e9f09ac40da8ab7e9e2fb10573581 to your computer and use it in GitHub Desktop.
Mount UBS Drive for Proxmox Backup

Mount UBS Drive for Proxmox Backup

✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
YouTube Mount UBS Drive for Proxmox Backup 🔗 https://youtu.be/lZjMxdBPH7M
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨
SUPPORT MY WORK - Everything Helps Thanks YouTube 🔗 https://YouTube.GetMeTheGeek.com
Buy Me a Coffee ☕ https://www.buymeacoffee.com/getmethegeek
Hire US 🔗 https://getmethegeek.com
Digital Ocean referral 🔗 https://tiny.cc/plxdigitalocean
✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨✨

Find the USB Drive

Plug USB drive into Proxmox host machine.

lsblk
lsusb
fdisk -l
mkdir /mnt/usb-drive 
/etc/fstab
ls -l /dev/disk/by-uuid/*

Format USB drive EXT4

mkfs.ext4 /dev/sde1
blkid -o list

Make directory to mount usb drive

mkdir /mnt/usb-drive

Setup Permanent Mount

In order to mount your USB drive permanently after reboot add a line into your /etc/fstab config file. If drives are added or removed from the Proxmox the device may change. For this reason the partion UUID will need to be used instead of the block device name.

ls -l /dev/disk/by-uuid/*
lrwxrwxrwx 1 root root 13 Jun 30 10:50 /dev/disk/by-uuid/169C06729C064CA5 -> ../../zd128p1
lrwxrwxrwx 1 root root 10 Sep  7 08:23 /dev/disk/by-uuid/1C9696109695EA92 -> ../../sde1
lrwxrwxrwx 1 root root 10 Jun 30 10:50 /dev/disk/by-uuid/4331501758443482231 -> ../../sdd2
lrwxrwxrwx 1 root root 12 Jun 30 10:50 /dev/disk/by-uuid/46FF7800EE8FFB6D -> ../../zd96p1

Above will give you the uuid. Open the fstab for editing

nano /etc/fstab

Add this line to your fstab using the correct UUID.

/dev/disk/by-uuid/1C9696109695EA92    /mnt/usb-drive         ext4   defaults   0

Mount drive

mount -a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment