I need to use udisksctl
.
I tried the classic method /dev/sda?*
already seen on the internet:
udisksctl mount -b /dev/sda?*
or
udisksctl unmount -b /dev/sda?*
/dev/sda?*
in my case is equivalent to /dev/sda1 /dev/sda2
but udisksctl
only mounts or unmounts the first partition listed /dev/sda1
.
How can I make it mount or unmount all partitions at once?
One way you can do it is to loop though the
/dev/sd
device partitionsIf you only wanted to do
/dev/sda
partitions then change the first?
toa