Assignment of block device disables the creation of /dev/xvdi

Hi, I’m a newbie

Had my Nitrokey PC2 a couple of weeks. May have stumbled on a little issue. In the Global Config - Device Assignment I added a rule to automatically assign an external usb hard drive to Personal. When I tried to mount it (sudo mount /dev/xvdi mnt) it failed. /dev/xvdi was never created. I removed the automatic assignment and then the device file was created as normal and mounted as normal.

Many Thanks

That sounds worth separating into two checks: whether the disk is attached to the qube at all, and whether the expected partition name is different. In the target qube, run lsblk right after the automatic assignment and compare it with manual attach. A whole disk may show as /dev/xvdi, but a formatted partition is often /dev/xvdi1, so mounting /dev/xvdi can also fail even when the device exists. If lsblk shows nothing only with the rule enabled, then the useful bug detail is the exact rule plus the output of qvm-block in dom0 before and after plugging the drive.

1 Like

So it appears to be my lack of understanding. Before and after plugging in:
dom0:~/$ Field Titles Only
dom0:~/$
usb-sda …
usb-sda1 …

As I now understand it, there are 3 different ways to attack the usb-drive to a qube: the 1. whole usb device, 2. the hard drive it contains and 3. the partition on the hard drive. (In this case there is only one partition.) And it is the last I am interested in.

The day before I had just set up my printer/scanner to attach automatically to disposable “Printer” qube. Because of this I wrongly assumed that the automatic attachment of sda1 to the qube would create /dev/xvdi . It does not. The automatic assignment only creates a “preferred” label in the manual assignment through the mouse. This makes sense because sda1 is a sub-device within a sub-device and it cannot be assumed that everyone wants the same result as myself.

Thank your for the quick response.
Sorry for the noise but I’m learning.
The (non-)issue is resolved.

Well it seems I must correct myself. On rebooting this morning the assignment behaviour of my external usb-harddrive is exactly as I originally expected. I booted with the drive plugged-in to its usual slot, as soon as I opened the Personal qube it was attached and /dev/xvdi was created. So all I had to do was mount it. Don’t understand how but something was cleared to allow this to happen.

Best Wishes