Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
新手求救:gentoo 2.6.27-r8自动挂载ntfs分区失败
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
yongshibing
n00b
n00b


Joined: 21 Jul 2008
Posts: 2
Location: china

PostPosted: Thu Mar 12, 2009 4:57 am    Post subject: 新手求救:gentoo 2.6.27-r8自动挂载ntfs分区失败 Reply with quote

我的gentoo按照安装手册加入了 dbus hal等use keywords,后来安装了ntfs-3g ,手动挂载ntfs格式的移动硬盘正常,但自动挂载出错。
具体情况:插入fat32格式的移动硬盘后面板上出现磁盘挂载器,能自动挂载该盘,故此断定dbus hal udev等(具体原理不太懂)底层支持软件运行是正常的。但一插入ntfs格式的usb移动硬盘就弹出一个无法加载的错误,用dmesg | tail命令查看,发现了几行reiserFS的错误提示,感觉很奇怪,明明是ntfs格式的啊~
手动挂载是正常的,fat格式的自动挂载也正常,gconf-editor中ntfs和ntfs-3g的选项也貌似正常,自动挂载出错到底从哪里着手解决啊?
Back to top
View user's profile Send private message
daniel_hf
n00b
n00b


Joined: 11 Nov 2004
Posts: 4
Location: china

PostPosted: Fri Apr 10, 2009 8:18 am    Post subject: Reply with quote

我没用过桌面系统的这些功能, 不过你有可能看错了log, 需要再找相关的信息,另外我怀疑在自动挂载的时候,ntfs-3g的模块没有被正确加入, 你试着先modprobe, 然后再插入U盘。下次如果提问,要把错误的log贴上来, 不然谁也不知道发生了什么事情。
Back to top
View user's profile Send private message
sipingal
n00b
n00b


Joined: 12 May 2008
Posts: 58
Location: China

PostPosted: Sat May 02, 2009 1:07 pm    Post subject: Reply with quote

你可以试试这个应该可以解决你的问题

1. 安装ntfs-3g
2. 在/usr/share/hal/fdi/policy/10osvendor/20-storage-methods.fdi 中加入如下粗体显示行
Quote:
<!-- allow these mount options for ntfs -->
<match key="volume.fstype" string="ntfs">
<match key="/org/freedesktop/Hal/devices/computer:system.kernel.name" string="Linux">
<append key="volume.mount.valid_options" type="strlist">uid=</append>
<append key="volume.mount.valid_options" type="strlist">gid=</append>
<append key="volume.mount.valid_options" type="strlist">umask=</append>
<append key="volume.mount.valid_options" type="strlist">locale=</append>
<append key="volume.mount.valid_options" type="strlist">utf8</append>
</match>

3. 重启hald 服务
Code:
/etc/init.d/hald restart
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