LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1127|回复: 6

debian 6 squeeze 不能识别 u 盘。

[复制链接]
发表于 2011-2-14 17:22:31 | 显示全部楼层 |阅读模式
debian 6
gnome 2.30.2
u盘为fat32格式
已经安装ntfs-3g模块

如何才能让debian6自动挂载u盘?


在usb口上插入u盘后提示如下:

Error mounting: mount exited with exit code 1: helper failed with:
mount: wrong fs type, bad option, bad superblock on /dev/sdb4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
发表于 2011-2-14 22:59:10 | 显示全部楼层
dmesg |tail
结果是什么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-15 13:50:38 | 显示全部楼层
我这里usb接口是/dev/sdb4,修改/etc/fstab文件添加 /dev/sdb4       /media/cdrom        auto        umask=0,iocharset=gb2312,codepage=936,noauto,utf8,user,rw,exec        0        0 才能自动挂载。。。 郁闷。。。


下面是dmesg |tail结果
zhang@debian:~$ dmesg |tail
[   15.173579] Bluetooth: RFCOMM ver 1.11
[   15.220703] Bridge firewalling registered
[   15.486526] Bluetooth: SCO (Voice Link) ver 0.6
[   15.486531] Bluetooth: SCO socket layer initialized
[   15.958821] lp0: using parport0 (interrupt-driven).
[   16.131008] ppdev: user-space parallel port driver
[   19.096643] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
[   19.096664] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode
[   19.096705] nvidia 0000:01:00.0: putting AGP V3 device into 8x mode
[   23.592033] eth0: no IPv6 routers present
回复 支持 反对

使用道具 举报

发表于 2011-2-15 16:15:39 | 显示全部楼层
我的倒是很正常,插入即可
回复 支持 反对

使用道具 举报

 楼主| 发表于 2011-2-15 16:50:23 | 显示全部楼层
Post by alonersir;2128138
我的倒是很正常,插入即可


兄弟能不能把 /etc/fstab 的内容发上来参考下? 或者发到我邮箱里面 谢谢了。
shiyicanghai [at] gmail.com
回复 支持 反对

使用道具 举报

发表于 2011-2-15 17:33:20 | 显示全部楼层
没有任何修改啊
自动识别的,应该是udev吧,这个倒是没有注意过
我看了/etc/mtab,插入U盘后自动添加了一行
/dev/sdb /media/7C0B-7476 vfat rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush 0 0

我的用户uid和gid都是1000,好像debian新建用户id都从1000开始
回复 支持 反对

使用道具 举报

发表于 2011-2-15 22:46:45 | 显示全部楼层
Post by nsdy;2128116
我这里usb接口是/dev/sdb4,修改/etc/fstab文件添加 /dev/sdb4       /media/cdrom        auto        umask=0,iocharset=gb2312,codepage=936,noauto,utf8,user,rw,exec        0        0 才能自动挂载。。。 郁闷。。。


下面是dmesg |tail结果
zhang@debian:~$ dmesg |tail
[   15.173579] Bluetooth: RFCOMM ver 1.11
[   15.220703] Bridge firewalling registered
[   15.486526] Bluetooth: SCO (Voice Link) ver 0.6
[   15.486531] Bluetooth: SCO socket layer initialized
[   15.958821] lp0: using parport0 (interrupt-driven).
[   16.131008] ppdev: user-space parallel port driver
[   19.096643] agpgart-intel 0000:00:00.0: AGP 3.0 bridge
[   19.096664] agpgart-intel 0000:00:00.0: putting AGP V3 device into 8x mode
[   19.096705] nvidia 0000:01:00.0: putting AGP V3 device into 8x mode
[   23.592033] eth0: no IPv6 routers present


是 插入u盘不能自动挂载后的dmesg|tail. 此时的dmesg中记录了自动挂在过程中遇到的错误
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表