Hi Team,
Could anyone assist. I used to run proxmox 4 and was able to connect a usb drive to do offsite backup. After upgrading to proxmox 5 that does not work anymore. I have tried to do a fresh install of proxmox 5 but still have the same problem. The way the drive was being mounted was via udev.
This is the rule that was put in udev
11-media-by-label-auto-mount.rules
/etc/udev/rules.d/
This is the content of the rul:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
This would automatically mount the usb drive when it was connected and unmount it when disconnected.
Can anyone please assist.
I am willing to pay a £50 for any successful
Could anyone assist. I used to run proxmox 4 and was able to connect a usb drive to do offsite backup. After upgrading to proxmox 5 that does not work anymore. I have tried to do a fresh install of proxmox 5 but still have the same problem. The way the drive was being mounted was via udev.
This is the rule that was put in udev
11-media-by-label-auto-mount.rules
/etc/udev/rules.d/
This is the content of the rul:
KERNEL!="sd[a-z][0-9]", GOTO="media_by_label_auto_mount_end"
# Import FS infos
IMPORT{program}="/sbin/blkid -o udev -p %N"
# Get a label if present, otherwise specify one
ENV{ID_FS_LABEL}!="", ENV{dir_name}="%E{ID_FS_LABEL}"
ENV{ID_FS_LABEL}=="", ENV{dir_name}="usbhd-%k"
# Global mount options
ACTION=="add", ENV{mount_options}="relatime"
# Filesystem-specific mount options
ACTION=="add", ENV{ID_FS_TYPE}=="vfat|ntfs", ENV{mount_options}="$env{mount_options},utf8,gid=100,umask=002"
# Mount the device
ACTION=="add", RUN+="/bin/mkdir -p /media/%E{dir_name}", RUN+="/bin/mount -o $env{mount_options} /dev/%k /media/%E{dir_name}"
# Clean up after removal
ACTION=="remove", ENV{dir_name}!="", RUN+="/bin/umount -l /media/%E{dir_name}", RUN+="/bin/rmdir /media/%E{dir_name}"
# Exit
LABEL="media_by_label_auto_mount_end"
This would automatically mount the usb drive when it was connected and unmount it when disconnected.
Can anyone please assist.
I am willing to pay a £50 for any successful