[TUTORIAL] USB Automount

sebcbien

Member
Jun 7, 2020
44
7
13
51
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... ;)
 

borpin

New Member
Jun 27, 2020
21
7
3
58
I am getting an error trying to update

Code:
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: 77.235.68.36 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.
 

proxuser2

New Member
Sep 15, 2020
3
0
1
42
Update for PVE6.x:

New package now for PVE6 available:
Code:
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.

prox.PNG

Code:
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:

fireon

Famous Member
Oct 25, 2010
3,908
325
103
40
Austria/Graz
iteas.at
Could you post your actually list?
Code:
cat /etc/apt/sources.list.d/iteas.list
ls /etc/apt/sources.list.d
 

proxuser2

New Member
Sep 15, 2020
3
0
1
42
Could you post your actually list?
Code:
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?

Code:
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
root@proxmox:~#

Edit: reinstalled proxmox
 
Last edited:

fireon

Famous Member
Oct 25, 2010
3,908
325
103
40
Austria/Graz
iteas.at
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.
Code:
apt remove pve5-usb-automount
apt install pve6-usb-automount
 

Antaris

Member
May 14, 2019
9
0
6
47
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.
 

Antaris

Member
May 14, 2019
9
0
6
47
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?
 

Malz1902

New Member
Sep 26, 2020
21
2
3
33
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
 

fireon

Famous Member
Oct 25, 2010
3,908
325
103
40
Austria/Graz
iteas.at
I have installed the tool, on a completly fresh proxmox6. Work normal. Hmm... and you have really updated your packagesources? I mean "apt update" ?
 

Malz1902

New Member
Sep 26, 2020
21
2
3
33
After this:
Code:
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
Sep 15, 2019
41
0
11
Hi,
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!
 

The_Invisible

Member
Apr 19, 2016
3
3
23
38
Hello,

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.
 

About

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 your own in 60 seconds.

Buy now!