[TUTORIAL] USB Automount

Oh ! :)
I found a bug ?!?, great, I was useful for once :cool:

Thanks @fireon !

p.s. found this command that removed the entry:
pvesm remove usb-sde1
Obvious ... :rolleyes: but you know, ... noobs... ;)
I am getting an error trying to update

Ign:4 https://apt.iteas.at/iteas buster InRelease
Err:5 https://apt.iteas.at/iteas buster Release
  Could not handshake: Error in the pull function. [IP: 443]
Reading package lists... Done
E: The repository 'https://apt.iteas.at/iteas buster Release' no longer has a Release file.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
Update for PVE6.x:

New package now for PVE6 available:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2FAB19E7CCB7F415
echo "deb https://apt.iteas.at/iteas buster main" > /etc/apt/sources.list.d/iteas.list
apt install pve6-usb-automount

Now the many libs are no longer needed.

So this didn't work, it broke my apt update. It also messed up the ssh window.


root@proxmox:~# apt update
[' is not known on line 1 in source list /etc/apt/sources.list.d/iteas.list
E: The list of sources could not be read.
Last edited:
Could you post your actually list?
cat /etc/apt/sources.list.d/iteas.list
ls /etc/apt/sources.list.d
Could you post your actually list?
cat /etc/apt/sources.list.d/iteas.list
ls /etc/apt/sources.list.d

It gives nothing, when I try to open the list with nano it has nothing human-readable. Do you know how should I replace the iteas.list?

root@proxmox:~# ls /etc/apt/sources.list.d
iteas.list  pve-enterprise.list
root@proxmox:~# cat /etc/apt/sources.list.d/iteas.list
root@proxmox:~#             ^C

Edit: reinstalled proxmox
Last edited:
Upgrade the tool from PVE5 to PVE6

It is very important that the old PVE5 package will removed when upgrading to PVE6. Then install pve6-usb-automount as new package.
If you don't do this, you have a big memory leak with udisk.
apt remove pve5-usb-automount
apt install pve6-usb-automount
Nothing. Put in your USB stick and it will automaticly mounted (sync) and a new storage will be added.
I have 1TB usb hdd, gpt initialized and plugged in with ext4 partition on the entire drive. Rebooted the server multiple times, but nothing mounts in /media/usb*.
And this is my first install of usb automount, so I'm on v6 directly.
Hi fireon,
This USB is intended for permanent backup storage. It not mounts after reboot the PVE server.
Where i can find this log? /var/log/journal?
apt install pve6-usb-automount Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package pve6-usb-automount

cat /etc/apt/sources.list.d/iteas.list deb https://apt.iteas.at/iteas stretch main

ls /etc/apt/sources.list.d debmatic.list iteas.list pve-enterprise.list
I have installed the tool, on a completly fresh proxmox6. Work normal. Hmm... and you have really updated your packagesources? I mean "apt update" ?
After this:
apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 2FAB19E7CCB7F415
echo "deb https://apt.iteas.at/iteas buster main" > /etc/apt/sources.list.d/iteas.list
apt update
apt install pve6-usb-automount
it works

i thin, i forgot to update it first
  • Like
Reactions: fireon
I see very bad write performance with pve6-usb-automount.
Write performance is in the range of only a few megabytes per second (1 - 4 MB/s) on USB3 drives. Reading from those drives is in the range of 120+ MByte/s

When I mount the USB drives over FSTAB the read and write performance is in the same range of 120+ MByte/s.

Type of filesystem doesn't make any difference. I have two 8TB Seagate drives. One with ext4 and the other with NTFS. Both suffer from the same performance hit.

Is there an option I have missed with pve6-usb-automount?

Thanks in advance!

pve6-usb-automount uses the mount option "sync" for mounting drives. This means no caches or other optimations are used for write operations. This can be especially slow on mechanical drives. The benefit is when the write process finishes the data was really written on disk and not in some cache. This is enabled by default to avoid data loss when someone just unplugs the drive.

You can try to enable async mode in the /usr/bin/pve6_usb_automount.py script. Just search for -o sync and change to async or delete this section and restart the pve6-usb-automount service, then unplug and plug in your disk again. You can see the mode by running the mount command.


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!