Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How dangerous is to replace udev with mdev ? [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 417

PostPosted: Fri Jan 10, 2014 6:16 pm    Post subject: How dangerous is to replace udev with mdev ? [Solved] Reply with quote

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
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Sat Jan 11, 2014 12:07 am    Post subject: Reply with quote

On which wiki-page are you reffering exactly?

It's totally possible to automount with udev.
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 417

PostPosted: Sat Jan 11, 2014 8:43 am    Post subject: Reply with quote

Quote:
On which wiki-page are you reffering exactly?
http://wiki.gentoo.org/wiki/Https://wiki.gentoo.org/wiki/Mdev_automount_usb
Quote:
It's totally possible to automount with udev.
How? Searching in Gentoo Wiki "automount usb" gives me only mdev.
Back to top
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Sat Jan 11, 2014 9:13 am    Post subject: Reply with quote

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
View user's profile Send private message
olek
Apprentice
Apprentice


Joined: 22 Oct 2011
Posts: 173

PostPosted: Sat Jan 11, 2014 11:46 am    Post subject: Reply with quote

despite philosophical reasons, with mdev you can also avoid udevs enormous dependencies, of course
_________________
https://plaintext.blog
Back to top
View user's profile Send private message
frostschutz
Advocate
Advocate


Joined: 22 Feb 2005
Posts: 2977
Location: Germany

PostPosted: Sat Jan 11, 2014 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
apiaio
Guru
Guru


Joined: 04 Dec 2008
Posts: 417

PostPosted: Sat Jan 11, 2014 6:54 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum