请教一下,为什么会无法自动挂载移动硬盘呢?

为当前最终发行版之前的所有版本提供支持
回复
washa
帖子: 4
注册时间: 2009-08-11 1:46
送出感谢: 0
接收感谢: 0

请教一下,为什么会无法自动挂载移动硬盘呢?

#1

帖子 washa » 2013-03-04 16:10

各位,小弟的系统最近出现了无法自动挂载硬盘的问题。不仅仅是移动硬盘,电脑硬盘中非ubuntu的分区也全部不会自动挂载。
好在这些硬盘在/dev文件夹中都能看到,fdisk -l也显示它们都已被检测到;

代码: 全选

/dev/sda1   *          63   209712509   104856223+   7  HPFS/NTFS/exFAT
/dev/sda2       209712510  1953503999   871895745    f  W95 Ext'd (LBA)
/dev/sda5       209712573  1953503999   871895713+   7  HPFS/NTFS/exFAT

/dev/sdb1   *          63   206724419   103362178+   7  HPFS/NTFS/exFAT
/dev/sdb2       206724420   682360874   237818227+   7  HPFS/NTFS/exFAT
/dev/sdb3       682362878   976771071   147204097    5  Extended
/dev/sdb5       682362880   683360255      498688   83  Linux
/dev/sdb6       683362304   691357695     3997696   82  Linux swap / Solaris
/dev/sdb7       691359744   891357183    99998720   83  Linux
/dev/sdb8       891359232   976771071    42705920   83  Linux

/dev/sdd1              63   307194929   153597433+   7  HPFS/NTFS/exFAT
/dev/sdd2       307194930   976768064   334786567+   7  HPFS/NTFS/exFAT
其中sda和sdb是我电脑中的硬盘,sdd是一块移动硬盘。看来都已识别,就是没有自动挂载而已。google了一下,在fstab中增加了以下几行:

代码: 全选

/dev/sdb1 /media/C ntfs defaults 0 0
/dev/sda1 /media/D ntfs defaults 0 0
/dev/sda5 /media/E ntfs defaults 0 0
/dev/sdb2 /media/F ntfs defaults 0 0
算是解决了电脑硬盘的挂载问题,可是移动硬盘该怎么处理呢?不想每次都手动挂载...
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#2

帖子 eexpress » 2013-03-04 16:29

现在不是fstab时代了。都是udev规则挂载的。
你确定这些:
1。 pgrep udev 启动了。
2。dmesg|tail 看插入后的提示。
3。不重复发帖。
● 鸣学
washa
帖子: 4
注册时间: 2009-08-11 1:46
送出感谢: 0
接收感谢: 0

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#3

帖子 washa » 2013-03-04 16:45

eexpress 写了:现在不是fstab时代了。都是udev规则挂载的。
你确定这些:
1。 pgrep udev 启动了。
2。dmesg|tail 看插入后的提示。
3。不重复发帖。
你好,谢谢回答!我试了一下你给的方法,得到:

代码: 全选

$  pgrep udev
390
392
3924
3925

代码: 全选

$
 dmesg|tail
[ 4878.306100] scsi8 : usb-storage 1-1.3:1.0
[ 4879.405404] scsi 8:0:0:0: Direct-Access     Kingston DT 101 G2        1.00 PQ: 0 ANSI: 4
[ 4879.406628] sd 8:0:0:0: Attached scsi generic sg5 type 0
[ 4879.407182] sd 8:0:0:0: [sde] 15131636 512-byte logical blocks: (7.74 GB/7.21 GiB)
[ 4879.407721] sd 8:0:0:0: [sde] Write Protect is off
[ 4879.407728] sd 8:0:0:0: [sde] Mode Sense: 45 00 00 00
[ 4879.408181] sd 8:0:0:0: [sde] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 4879.412728]  sde: sde1
[ 4879.415082] sd 8:0:0:0: [sde] Attached SCSI removable disk
[ 4912.027053] usb 1-1.3: USB disconnect, device number 3
以上是插拔了一个u盘,同样不能自动挂载。我是小白。。还请详解一下解决方法
另外重复发帖不好意思哈,已删除
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙
送出感谢: 4 次
接收感谢: 256 次

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#4

帖子 eexpress » 2013-03-04 21:41

看着正常啊。你把fstab里面的先去掉吧。让udev直接管理。你什么桌面环境呢?
● 鸣学
washa
帖子: 4
注册时间: 2009-08-11 1:46
送出感谢: 0
接收感谢: 0

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#5

帖子 washa » 2013-03-05 12:16

eexpress 写了:看着正常啊。你把fstab里面的先去掉吧。让udev直接管理。你什么桌面环境呢?
确实看着一切正常,usb的3g上网卡都可以使用,就是u盘啊移动硬盘什么的全都无法自动挂载--ps:手动是可以的。
fstab去掉之后依旧障碍,连内置硬盘都不挂载了。我怀疑udev是不是失效了,该怎样检查并修复呢?
ps:桌面环境就是ubuntu 默认的。我装的是12.04.2,64位版本。
washa
帖子: 4
注册时间: 2009-08-11 1:46
送出感谢: 0
接收感谢: 0

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#6

帖子 washa » 2013-03-05 12:56

以下是/var/log/syslog 中对插入移动硬盘的记录,好像也没什么问题吧

代码: 全选

Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.866527] usb 2-1.8: new high-speed USB device number 10 using ehci_hcd
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.959993] usb 2-1.8: New USB device found, idVendor=13fd, idProduct=1840
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.959998] usb 2-1.8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960001] usb 2-1.8: Product: External        
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960004] usb 2-1.8: Manufacturer: Generic 
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960006] usb 2-1.8: SerialNumber: 365645475838424C20202020
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960665] scsi13 : usb-storage 2-1.8:1.0
Mar  5 12:52:27 washa-OptiPlex-990 mtp-probe: checking bus 2, device 10: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8"
Mar  5 12:52:27 washa-OptiPlex-990 mtp-probe: bus: 2, device: 10 was not an MTP device
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.958950] scsi 13:0:0:0: Direct-Access     Generic  External         1.08 PQ: 0 ANSI: 4
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.960245] sd 13:0:0:0: Attached scsi generic sg2 type 0
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.960895] sd 13:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.962749] sd 13:0:0:0: [sdc] Write Protect is off
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.962755] sd 13:0:0:0: [sdc] Mode Sense: 23 00 00 00
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.963379] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.963385] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.965355] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.965360] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.026434]  sdc: sdc1 sdc2
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029027] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029033] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029036] sd 13:0:0:0: [sdc] Attached SCSI disk
dd455524632
帖子: 1
注册时间: 2014-07-27 0:10
系统: 14.04
送出感谢: 0
接收感谢: 0

Re: 请教一下,为什么会无法自动挂载移动硬盘呢?

#7

帖子 dd455524632 » 2017-09-03 11:47

washa 写了:以下是/var/log/syslog 中对插入移动硬盘的记录,好像也没什么问题吧

代码: 全选

Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.866527] usb 2-1.8: new high-speed USB device number 10 using ehci_hcd
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.959993] usb 2-1.8: New USB device found, idVendor=13fd, idProduct=1840
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.959998] usb 2-1.8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960001] usb 2-1.8: Product: External        
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960004] usb 2-1.8: Manufacturer: Generic 
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960006] usb 2-1.8: SerialNumber: 365645475838424C20202020
Mar  5 12:52:27 washa-OptiPlex-990 kernel: [ 2912.960665] scsi13 : usb-storage 2-1.8:1.0
Mar  5 12:52:27 washa-OptiPlex-990 mtp-probe: checking bus 2, device 10: "/sys/devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.8"
Mar  5 12:52:27 washa-OptiPlex-990 mtp-probe: bus: 2, device: 10 was not an MTP device
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.958950] scsi 13:0:0:0: Direct-Access     Generic  External         1.08 PQ: 0 ANSI: 4
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.960245] sd 13:0:0:0: Attached scsi generic sg2 type 0
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.960895] sd 13:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.962749] sd 13:0:0:0: [sdc] Write Protect is off
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.962755] sd 13:0:0:0: [sdc] Mode Sense: 23 00 00 00
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.963379] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.963385] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.965355] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2913.965360] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.026434]  sdc: sdc1 sdc2
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029027] sd 13:0:0:0: [sdc] No Caching mode page present
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029033] sd 13:0:0:0: [sdc] Assuming drive cache: write through
Mar  5 12:52:28 washa-OptiPlex-990 kernel: [ 2914.029036] sd 13:0:0:0: [sdc] Attached SCSI disk
作为小白,就不乱发新贴了。请问,我的情况是移动硬盘在任何系统都不识别
fdisk -l看不到硬盘状态,lsusb可以显示Bus 002 Device 002: ID 1058:1140 Western Digital Technologies, Inc. My Book Essential (WDBACW)
lsusb -t显示/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/6p, 480M
|__ Port 3: Dev 2, If 0, Class=Mass Storage, Driver=usb-storage, 480M
使用Disks查看移动盘状态unknown
一心想保硬盘里的数据
有哪位高手能帮帮我,不胜感激
回复

回到 “老旧版本支持”