gnome 2.8 Changes for FAQ: 19. How do I mount my removable
media in Nautilus?
Vladimir Grebenschikov
vova at fbsd.ru
Thu Oct 7 04:50:29 PDT 2004
В чт, 07/10/2004 в 13:24 +0200, Franz Klammer пишет:
> gnome 2.8 hase some changes in handling of usermounting
> removerable volumes and i think that should be added to the FAQ.
...
> 2. there are naming conventions of the mounting points:
> (relative to e.g.: /usr/home/username/mnt/)
> CD-ROMS => cdrom
> CD-RW => cdrw
> Memory Sticks => memstick
> and so on ...
>
> without that nautilus didn't work correctly.
> i had hours with trying and trubles until figured this out... :-(
>
> attached the gnomevfs-function where i found all the names.
oops, why ? Why gnome team to not use gnome config to store this
matching ?
> 3. (maybe) OT question: when i insert my memory stick the access right set
> for the device created by usbd (/dev/da0s1) don't allow access from a
> normal user. currently i helped my with a dirty trick:
>
> adding to /etc/devfs.conf:
> perm da0s1 0666
>
> and to /etc/usbd.conf:
> device "MEGA"
> devname "umass0"
> attach "/bin/sleep 5; /etc/rc.d/devfs restart"
>
> if there is a (which i'm sure there is) a good solution that
> should also be added to the FAQ.
I guess it is much better to use devfs.rules file:
% cat /etc/devfs.rules
[devfsrules_common=7]
add path 'da*' mode 660 group operator
add path 'acd*' mode 660 group operator
add path 'cd*' mode 660 group operator
add path 'pass*' mode 660 group operator
add path 'xpt*' mode 660 group operator
% fgrep devfs /etc/rc.conf
devfs_system_ruleset="devfsrules_common"
%
This approach configures device permission on devfs on adding drive
automatically, also with ATA-based (or any other not-USB) memory stick
there is no USB attach event.
('operator' group can be changed to 'cdrom' or like)
> here to see how it looks like two screenshots of "Computer":
> http://webonaut.com/temp/unmounted.png
> http://webonaut.com/temp/mounted.png
>
>
> franz.
--
Vladimir B. Grebenchikov
vova at fbsd.ru
More information about the freebsd-gnome
mailing list