What's package daemon that add to /etc/fstab when you add USB sticks
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
If your system doesn't have this, using it might break how automounting works on your system. You could always just enter "mount" by itself and use the values returned to create your own entry in /etc/fstab, but make sure you use "UUID=" or "LABEL=" and not the device name. This is because the next time you insert a device it might be /dev/sdc1 instead of /dev/sdb1. You can use the "udevinfo" program to determine the UUID or LABEL of a disk. "udevinfo -q env -n /dev/sdb1" for example. Look for the line of output that says something like "ID_FS_UUID=4B1135F8699960E7", then use "UUID=4B1135F8699960E7" in place of the device in the fstab entry. ( The particular UUID number will be different of course. ). For fat32 filesytems, using the "uid=" option together with the "users" option will allow mounting by a normal user. Using the appropriate "fmask" and "dmask" values can give you exclusive access for that pendrive on that computer.
On many distro's the dbusd, hald and udevd daemons are involved along with helper programs which may include a KDE or Gnome daemon as well. Hal will detect the device and udev will create a device node for it. The PolicyKit package may be involved as well. After the device is mounted there will be a /media/.hal-mtab entry created for that device as well.
Other systems use hotplug to do most of the work.
If your system uses HAL, check if you have a "halmount" program which would allow you to mount a device from the console as a normal user.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.