On my Ubuntu linux box I can easily mount USB connected drives or CDROM clicking on devices icons that I can found on the Desktop.
For example if I click on a USB connected drive icon the following things happen:
This process is significantly different from mounting using the mount
command. In particular:
There is a command line command that behaves like the Gnome GUI mounting facilities does?
The mount command mounts a storage device or filesystem, making it accessible and attaching it to an existing directory structure. The umount command "unmounts" a mounted filesystem, informing the system to complete any pending read or write operations, and safely detaching it.
It's close enough – the location is /run/user/1000/gvfs , which is a FUSE mount that exposes all virtual Gvfs mounts inside.
What you are looking for is gio mount
(it recently replaced gvfs-mount
, which replaced gnome-mount
).
There is a man page here or you can just type gio help mount
for the details
The basic usage is:
gio mount --list --detail
to get a list of mounted and mountable volumes
gio mount [-u] <volume>
to [un]mount it, e.g. gio mount smb://server/share
or gio mount WINDOWS
.
Sadly, there seems to be a bug that results in a "Error mounting location: volume doesn't implement mount" message trying to mount by volume name, but gvfs-mount -d /dev/<devicename>
might work.
In modern distributions, HAL is no longer used. The pmount
still exists, but it is deprecated. Use:
udisks --mount /dev/sdXN
The udisksctl
command is being used as an alternative to the udisks
command. This can be used the same way, -b
is just to be appended to define the block device.
udisksctl mount -b /dev/sdXN
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With