removable-device-attach systemd units on a system without removable storage?

thorazine74

New Member
May 29, 2023
2
0
1
Hello, I have two systemd service instances named removable-device-attach@uuid running on boot on a system that has no removable storage connected:

Code:
root@debi7:~# systemctl status removable-device-attach@AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA.service
○ removable-device-attach@AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA.service - Try to mount the removable device of a datastore with uuid 'AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA'.
     Loaded: loaded (/lib/systemd/system/removable-device-attach@.service; static)
     Active: inactive (dead) since Mon 2024-12-23 10:37:02 CET; 9min ago
   Duration: 56ms
    Process: 1289 ExecStart=/usr/sbin/proxmox-backup-manager datastore uuid-mount AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA (code=exited, status=0/SUCCESS)
   Main PID: 1289 (code=exited, status=0/SUCCESS)
        CPU: 53ms

Dec 23 10:37:02 debi7 systemd[1]: Started removable-device-attach@AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA.service - Try to mount the removable device of a datastore with uuid 'AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1Z>Dec 23 10:37:02 debi7 systemd[1]: removable-device-attach@AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA.service: Deactivated successfully.

==================================================

root@debi7:~# systemctl status removable-device-attach@b261c86f-2ff7-44cc-b133-578a6b618932.service                                                                                                               
○ removable-device-attach@b261c86f-2ff7-44cc-b133-578a6b618932.service - Try to mount the removable device of a datastore with uuid 'b261c86f-2ff7-44cc-b133-578a6b618932'.                                       
     Loaded: loaded (/lib/systemd/system/removable-device-attach@.service; static)                                                                                                                                
     Active: inactive (dead) since Mon 2024-12-23 10:37:02 CET; 11min ago                                                                                                                                         
   Duration: 51ms                                                                                                                                                                                                 
    Process: 1290 ExecStart=/usr/sbin/proxmox-backup-manager datastore uuid-mount b261c86f-2ff7-44cc-b133-578a6b618932 (code=exited, status=0/SUCCESS)                                                            
   Main PID: 1290 (code=exited, status=0/SUCCESS)                                                                                                                                                                 
        CPU: 53ms                                                                                                                                                                                                 
                                                                                                                                                                                                                  
Dec 23 10:37:02 debi7 systemd[1]: Started removable-device-attach@b261c86f-2ff7-44cc-b133-578a6b618932.service - Try to mount the removable device of a datastore with uuid 'b261c86f-2ff7-44cc-b133-578a6b618932'>
Dec 23 10:37:02 debi7 systemd[1]: removable-device-attach@b261c86f-2ff7-44cc-b133-578a6b618932.service: Deactivated successfully.

Both instances uuid match to a system partition and a logical volume where PBS is installed (which by is installed on top of Proxmox which is installed on top of Debian).

Code:
/dev/nvme0n1p4: UUID="AZj05Z-RbF8-Ic8W-Z13J-29yt-SRyn-h1ZqdA" TYPE="LVM2_member" PARTLABEL="Linux LVM" PARTUUID="2182e173-0bb1-4279-9b5d-142afacc6222"
/dev/mapper/debi7--vg01-lv01--system: LABEL="debian-btrfs" UUID="b261c86f-2ff7-44cc-b133-578a6b618932" UUID_SUB="1b222524-4f15-4946-8ade-4102815c1acb" BLOCK_SIZE="4096" TYPE="btrfs"

This system currently has no removable storage connected, but its possible that it had one external usb disk connected while PBS was installed.
Everything is working as expected, only it seems to barely affect boot times, but nothing noticecable
I'm just curious why this units are created, are they somehow trying to mount system partitions as if they were removable storage?
I've tried to get rid of them but I dont know how to handle this kind of systemd service instances.
 
Last edited:

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 yours easily in our online shop.

Buy now!