BSD
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists BSD

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 6th, 2008, 05:20 PM
Aleksey Cheusov
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
mounting media as a normal user

>The other option is to use amd.
I don't see the amd.conf in my etc file.

I'm using wip/am-utils and my own patched version of msdosfs.
File systems are accessed via /media/{a,c} etc.

Config files are below.

/usr/pkg/etc/amd.conf:

[ global ]
unmount_on_exit = yes

dismount_interval = 4
cache_duration = 4

localhost_address = 127.0.0.1

log_file = syslog
log_options = all

[ /media ]
map_name = /usr/pkg/etc/amd/media

/usr/pkg/etc/amd/media:
/defaults type:=program;fs:=${autodir}/auto/${key};\
unmount:="/root/bin/umount_notif umount ${fs}";addopts:=utimeout=3

a mount:="/sbin/mount mount -t msdosfs /dev/fd0d ${fs}"

c mount:="/sbin/mount mount -t ntfs -o-m=555 /dev/wd0e ${fs}";opts:=ro
d mount:="/sbin/mount mount -t ntfs -o-m=555 /dev/wd1f ${fs}";opts:=ro
f mount:="/sbin/mount mount -t ntfs -o-m=555 /dev/wd0g ${fs}";opts:=ro

cd mount:="/sbin/mount mount -t cd9660 /dev/cd0a ${fs}";opts:=ro,noexec

zip mount:="/root/bin/mount_notif mount -t msdos \
-o-m=644,-M=755,-u=10040,-g=10001,-Dcp866,-Lcp1251 \
/dev/sd0d ${fs}"
sd0a_fat mount:="/root/bin//mount_notif mount -t msdos \
-o-l,-m=644,-M=755,-u=10040,-g=10001,-Dcp866,-Lcp1251 \
/dev/sd0a ${fs}"
sd0d_fat mount:="/root/bin//mount_notif mount -t msdos \
-o-l,-m=644,-M=755,-u=10040,-g=10001,-Dcp866,-Lcp1251 \
/dev/sd0d ${fs}"
sd0e_fat mount:="/root/bin/mount_notif mount -t msdos \
-o-l,-m=644,-M=755,-u=10040,-g=10001,-Dcp866,-Lcp1251 \
/dev/sd0e ${fs}"

--
Best regards, Aleksey Cheusov.

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists BSD > mounting media as a normal user


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway