S
S
Sergey2015-09-23 19:11:03
linux
Sergey, 2015-09-23 19:11:03

How does automount work?

How does auto-mount [disk, flash drives, etc.] work in different user-friendly distributions a la Linux Mint, Ubuntu, etc.?
And how to implement the same on Debian 8?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Valentine, 2015-09-23
@vvpoloskin

Theory: to mount, the mount command is executed. When automounting, the autoload script (login) hangs, in which this mount command is also written. Mounting flash drives - just hangs a daemon that monitors the appearance of block devices in the system. When they appear, mount is also executed.
mount itself requires root rights, but modern tools (gmount, fuse) allow mounting from a normal user

E
Eddy_Em, 2015-09-24
@Eddy_Em

It is better to mount-unmount manually, but make it easier for yourself with the help of udev: after connecting the flash drive, a directory is created in / media, and the corresponding entry is entered in / etc / fstab, and when disconnected, everything unnecessary is deleted.
That's it .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question