I have a USB drive disk, whose label is 'DATA'. When I plug in the USB disk, Ubuntu will automatically mount it to /media/cjl/DATA.
I partition it with fdisk command, and I don't want to mount it with 'mount' command. So I unplug the USB drive and plug it in again. Then Ubuntu will automatically mount it to /media/cjl/DATA.
Is there anyway to mount it after fdisk which needn't unplug it?
In other words, how to trigger the plug event without actually plugging in the USB drive?
udisks
to mount partions, but I suspect it just callsmount
anyway. – mikewhatever Dec 23 '22 at 08:00udisksctl mount -b /dev/sdb1
... but, not without specifying a partition name/identifier AFAIK ... This post might help shed some light on this issue ... It's a bit complicated :-) – Raffa Dec 23 '22 at 08:10