usb 自动挂载

0 views
Skip to first unread message

unread,
Oct 15, 2009, 5:04:42 AM10/15/09
to debian-c...@lists.debian.org
我想问 usb 自动挂载是基于什么的,用哪个软件包?
__________________________________________________
�Ͽ�ע���Ż����������������ä?
http://cn.mail.yahoo.com


--
To UNSUBSCRIBE, email to debian-chine...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

enzo fang

unread,
Oct 15, 2009, 6:07:16 AM10/15/09
to debian-c...@lists.debian.org
大概是udev和hal

2009/10/15 苏 <sxps...@yahoo.com.cn>



--
Best Regards

stesenchina

unread,
Oct 16, 2009, 2:56:36 AM10/16/09
to debian-c...@lists.debian.org
pmount?

enzo fang wrote:
> 大概是udev和hal
>
> 2009/10/15 苏 <sxps...@yahoo.com.cn <mailto:sxps...@yahoo.com.cn>>


>
> 我想问 usb 自动挂载是基于什么的,用哪个软件包?
> __________________________________________________
> �Ͽ�ע���Ż����������������ä?
> http://cn.mail.yahoo.com
>
>
> --
> To UNSUBSCRIBE, email to
> debian-chine...@lists.debian.org

> <mailto:debian-chine...@lists.debian.org>


> with a subject of "unsubscribe". Trouble? Contact

> listm...@lists.debian.org <mailto:listm...@lists.debian.org>
>
>
>
>
> --
> Best Regards

unread,
Oct 16, 2009, 3:11:44 AM10/16/09
to debian-c...@lists.debian.org
我现在知道了,udev + pmount ,我设置好了规则,但不起作用。


$cat /etc/udev/rules.d/10-mountusb.rules
ACTION=="add", SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
ATTRS{removable}=="1", RUN+=”/usr/bin/pmount %k”
ACTION=="remove",SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
ATTRS{removable}=="1", RUN+=”/usr/bin/pumount %k”

有没有人懂,给说下。

aXqd

unread,
Oct 16, 2009, 9:32:43 AM10/16/09
to debian-c...@lists.debian.org
2009/10/16 苏 <sxps...@yahoo.com.cn>:

> 我现在知道了,udev + pmount ,我设置好了规则,但不起作用。
桌面环境pmount,不需要桌面环境usbmount
http://packages.debian.org/zh-cn/lenny/usbmount
http://packages.debian.org/zh-cn/lenny/pmount

>
>
> $cat /etc/udev/rules.d/10-mountusb.rules
> ACTION=="add", SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
> ATTRS{removable}=="1", RUN+=”/usr/bin/pmount %k”
> ACTION=="remove",SUBSYSTEM=="block", KERNEL==”sd[b-z][1-9]″,
> ATTRS{removable}=="1", RUN+=”/usr/bin/pumount %k”
>
> 有没有人懂,给说下。
你要挂载的分区是NTFS格式的么?那样貌似需要root privilege
--
Regards.
-Tian
Reply all
Reply to author
Forward
0 new messages