Linux - General This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
01-20-2008, 05:24 PM
|
#1
|
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Rep:
|
What's package daemon that add to /etc/fstab when you add USB sticks
Hello,
On some machines and live cd, when you plug a USB stick, it changes the /etc/fstab automatically, and the user can mount it !!
Very easy, what is this daemon ? Does it exist a package for Debian Stable ? ( the started daemon might be in the /etc/init.d ...)
Thanks for the information !
|
|
|
01-20-2008, 05:53 PM
|
#2
|
LQ Addict
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908
|
If I am not mistaken, mounting the USB stick is handled by usbfs. Usbfs is mounted on boot if you have an entry like this in your /etc/fstab:
Code:
none /proc/bus/usb usbdevfs defaults 0 0
When you plug in the USB stick, it should appear either in /mnt or /media.
|
|
|
01-20-2008, 06:35 PM
|
#3
|
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733
|
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.
|
|
|
01-20-2008, 08:30 PM
|
#4
|
Senior Member
Registered: Jun 2007
Location: E.U., Mountains :-)
Distribution: Debian, Etch, the greatest
Posts: 2,561
Original Poster
Rep:
|
Thanks
add. info: I know that for instance with Suse distros, it is done automatically, even no X started.
|
|
|
All times are GMT -5. The time now is 11:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|