Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
如何使一般用户可以使用mount挂载usb
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese)
View previous topic :: View next topic  
Author Message
tiancongxin
n00b
n00b


Joined: 31 May 2005
Posts: 23
Location: Beijing Chaoyang

PostPosted: Wed Jul 13, 2005 7:45 am    Post subject: 如何使一般用户可以使用mount挂载usb Reply with quote

如何使一般用户可以使用mount挂载usb
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Wed Jul 13, 2005 7:49 am    Post subject: Re: 如何使一般用户可以使用mount挂载usb Reply with quote

在/etc/fstab的选项中加入user或者users, 看一下man mount
Code:

/dev/sda1       /mnt/sda1   reiserfs    defaults,user,noatime,noauto        0 0
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Tue Jul 26, 2005 10:06 am    Post subject: Reply with quote

如果你使用的是 udev 的话, 可以这样:


  • 首先让你的兔兔启动时自动加载 usb 模块: 编辑 /etc/modules.autoload.d/kernel-2.6, 并添加 'uhci-hcd' 到最后一行. 这可以让兔兔启动时自动创建 /dev/sd* 这样的 usb 设备节点.
  • 然后启动到桌面环境, 比如 gnome 或 xfce4, 这时插入 usb 设备, 打开 nautilus 文件管理器或者 xffm 文件管理器, 应该就能看到新的 usb 设备的图标, 双击就能自动挂载并打开的 :)


udev 已经很聪明啦 (用户用起来就可以很傻瓜式啦).
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
EricNeon
n00b
n00b


Joined: 09 Jun 2005
Posts: 17
Location: Shanghai-China

PostPosted: Tue Jul 26, 2005 12:50 pm    Post subject: Reply with quote

首先
#emerge hotplug hal portmap gnome-volume-manager
#rc-update add hotplug default
#rc-update add hal default
#rc-update add portmap default

然后在gnome中,插入usb硬盘或U盘,桌面上就会自动跳出相应的设备。
_________________
AMD Athlon-mp 2200+ 512M

If you can dream it , you can do it !
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Tue Jul 26, 2005 2:20 pm    Post subject: Reply with quote

你确定么?
portmap?
现在portage里就一个net-nds/portmap
这个是RPC(remote procedure call) daemon
没联系的吧

在多emerge一个dbus倒是必要的
Back to top
View user's profile Send private message
EricHsu
Moderator
Moderator


Joined: 03 May 2004
Posts: 591
Location: Aragon Consulting Group, Beijing, China

PostPosted: Wed Jul 27, 2005 2:37 am    Post subject: Reply with quote

EricNeon wrote:
首先
#emerge hotplug hal portmap gnome-volume-manager
#rc-update add hotplug default
#rc-update add hal default
#rc-update add portmap default

然后在gnome中,插入usb硬盘或U盘,桌面上就会自动跳出相应的设备。


嗯, sorry, 我忘了还得有这些相关软件 :P
我记得 hotplug hal gnome-volume-manager 是必须的, 光 emerge gnome-volume-manager 就可以吧?
因为相关的依赖包会自动加入进来的, 可以先 emerge -pv gnome-volume-manager 看看都有哪些包会装进来 :)
_________________
- http://nkbit.com
- http://twitter.com/xuyihua
Back to top
View user's profile Send private message
r0bertz
Developer
Developer


Joined: 13 Sep 2004
Posts: 257
Location: HKSAR,China

PostPosted: Wed Jul 27, 2005 12:56 pm    Post subject: Reply with quote

http://forums.gentoo.org/viewtopic.php?t=217412&highlight=utopia
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index 中文 (Chinese) 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