Thursday, April 25, 2024
 Popular · Latest · Hot · Upcoming
12
rated 0 times [  12] [ 0]  / answers: 1 / hits: 2288  / 2 Years ago, tue, may 10, 2022, 3:25:25

Some systems use udev / pmount to automatically mount thumbdrives. How is that solved in Ubuntu (specifically, Ubuntu 12.04)? Apparently, neither the pmount package nor the corresponding udev rules are present, yet Ubuntu mounts the inserted USB drives automatically. How does that happen?


More From » 12.04

 Answers
7

In Ubuntu 12.04 (Unity, and presumably Gnome Shell/Classic) automounting is handled by GNOME Desktop/Nautilus, which monitors DBus events for insertion, etc. The gvfs* backend is used, in co-operation with udisks for the low-level mounting, etc.



gvfs-mount is used internally, and running it in monitor mode with the -o switch will show, for example:




$ gvfs-mount -o

Monitoring events. Press Ctrl+C to quit.
Drive connected: 'usb Flashdisk'
Volume added: 'DISK_IMG'
Volume changed: 'DISK_IMG'
Mount added: 'DISK_IMG'
Volume changed: 'DISK_IMG'
Mount changed: 'DISK_IMG'
Mount removed: 'DISK_IMG'
Volume changed: 'DISK_IMG'
Drive disconnected: 'usb Flashdisk'
Volume removed: 'DISK_IMG'

[#35231] Wednesday, May 11, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
erettor

Total Points: 303
Total Questions: 121
Total Answers: 103

Location: Colombia
Member since Mon, May 2, 2022
2 Years ago
;