View previous topic :: View next topic |
Author |
Message |
apiaio Guru
Joined: 04 Dec 2008 Posts: 417
|
Posted: Fri Jan 10, 2014 6:16 pm Post subject: How dangerous is to replace udev with mdev ? [Solved] |
|
|
Hi there.
I would like to have USB automount available in new installation. Reading gentoo wiki is possible to use pumount but it is necessary to change *dev.
Is it dangerous way? Does exist any other? I have amd64 installation and WM fluxbox.
Thanks in advance
Last edited by apiaio on Sat Jan 11, 2014 6:54 pm; edited 1 time in total |
|
Back to top |
|
|
olek Apprentice
Joined: 22 Oct 2011 Posts: 173
|
Posted: Sat Jan 11, 2014 12:07 am Post subject: |
|
|
On which wiki-page are you reffering exactly?
It's totally possible to automount with udev. _________________ https://plaintext.blog |
|
Back to top |
|
|
apiaio Guru
Joined: 04 Dec 2008 Posts: 417
|
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Sat Jan 11, 2014 9:13 am Post subject: |
|
|
So, maybe searching for "automount udev" will work...
You can absolutely do this with udev rules. If you truly want to use mdev, go ahead, but unless you have some philosophical reason to do that, you should just stay with udev and write udev rules for that. (Hint: searching for "udev rules" will show you some interesting things).
If you don't want to do that, you can still try some udev based tools that exist for that, like sys-apps/uam. Can't comment on them though, since I never used them. |
|
Back to top |
|
|
olek Apprentice
Joined: 22 Oct 2011 Posts: 173
|
Posted: Sat Jan 11, 2014 11:46 am Post subject: |
|
|
despite philosophical reasons, with mdev you can also avoid udevs enormous dependencies, of course _________________ https://plaintext.blog |
|
Back to top |
|
|
frostschutz Advocate
Joined: 22 Feb 2005 Posts: 2977 Location: Germany
|
Posted: Sat Jan 11, 2014 1:36 pm Post subject: |
|
|
udev is extremely common, so a lot of programs may rely on udev behaviour. if any udev alternative does anything different, there may be problems.
that said, as long as you know what you are doing, you may even get by without any udev/mdev whatsoever. devtmpfs is sufficient in many cases.
still, I use udev, even if I have to beat it a little so it doesn't do stupid things like give cryptic names to perfectly normal network devices |
|
Back to top |
|
|
apiaio Guru
Joined: 04 Dec 2008 Posts: 417
|
Posted: Sat Jan 11, 2014 6:54 pm Post subject: |
|
|
Thanks for answers. Finally I stayed with udev. Wrote udev rules and auto mount/unmount works fine. Just one more question. This is part of my fstab Quote: | #none /proc/bus/usb usbfs devgid=85,devmode=0666 0 0
/dev/sdd1 /media vfat defaults,noauto,sync,group,gid=15,umask=0002 0 0
| Before automounting I had used usbfs filesystem for mounting fat32 usb key. Now I was forced to change it ito vfat.
How should I modify fstab for mounting another filesystems e.g. when want to connect usb HDD? |
|
Back to top |
|
|
|