[问题]xubuntu不能识别移动硬盘

各种窗口管理器和美化相关
starty
帖子: 13
注册时间: 2008-05-30 15:01
来自: 中华

[问题]xubuntu不能识别移动硬盘

#1

帖子 starty » 2008-07-03 15:28

我在电脑上安装了xubuntu 8.04,发觉不能识别移动硬盘。注意,是不能识别而不是不能挂载,因为在终端中输入命令“fdisk -l”不能看到移动硬盘的分区;但是U盘能够识别并挂载,是不是ntfs的问题呢?可我的电脑上的windows ntfs分区却能够挂载。请问各位大虾有没有解决办法。
玉皇大帝、如来佛、耶和华.......
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#2

帖子 百草谷居士 » 2008-07-23 9:18

我也遇到了相同的问题,USB硬盘是NTFS格式的,可以在windows下正常访问。
我的ubuntu8.04可以正常使用U盘,但是无法使用这个usb硬盘。
我使用gparted和fdisk -l检测均不能检测到有新硬盘。
但是使用dmesg检测好像是发现usb存储设备,使用virtualbox上的启用usb设备功能也能发现一个usb设备,但是启动虚拟机的时候提示无法识别该设备。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#3

帖子 百草谷居士 » 2008-07-23 9:35

我把USB硬盘连接在WINDOWS下重新格式化为FAT32格式,还是不行。dmesg输出的部分信息如下:

代码: 全选

[  274.911617] 
[ 2819.267412] usb 1-2: new full speed USB device using ohci_hcd and address 7
[ 2819.479298] usb 1-2: configuration #1 chosen from 1 choice
[ 2819.512147] scsi10 : SCSI emulation for USB Mass Storage devices
[ 2819.512877] usb-storage: device found at 7
[ 2819.512880] usb-storage: waiting for device to settle before scanning
[ 2824.510568] usb-storage: device scan complete
[ 2824.774463] scsi scan: INQUIRY result too short (5), using 36
[ 2824.774472] scsi 10:0:0:0: Direct-Access     WDC WD20 0BB-00AUA1       18.2 PQ: 0 ANSI: 0
[ 2824.789436] sd 10:0:0:0: [sdb] 39100224 512-byte hardware sectors (20019 MB)
[ 2824.795424] sd 10:0:0:0: [sdb] Write Protect is off
[ 2824.795427] sd 10:0:0:0: [sdb] Mode Sense: 00 07 00 00
[ 2824.795428] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[ 2824.811418] sd 10:0:0:0: [sdb] 39100224 512-byte hardware sectors (20019 MB)
[ 2824.817396] sd 10:0:0:0: [sdb] Write Protect is off
[ 2824.817399] sd 10:0:0:0: [sdb] Mode Sense: 00 07 00 00
[ 2824.817401] sd 10:0:0:0: [sdb] Assuming drive cache: write through
[ 2824.817405]  sdb: sdb1
[ 2824.828471] sd 10:0:0:0: [sdb] Attached SCSI disk
[ 2824.828509] sd 10:0:0:0: Attached scsi generic sg2 type 0
[ 2855.356446] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 2885.974842] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 2916.593212] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 2947.211624] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 2977.817964] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3008.423250] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3008.899510] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[ 3008.899520] end_request: I/O error, dev sdb, sector 39100216
[ 3008.899526] printk: 262 messages suppressed.
[ 3008.899528] Buffer I/O error on device sdb, logical block 4887527
[ 3039.094746] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3069.713060] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3100.327670] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3130.957628] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3161.570920] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3192.198654] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3192.672287] sd 10:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[ 3192.672295] end_request: I/O error, dev sdb, sector 39100216
[ 3192.672298] Buffer I/O error on device sdb, logical block 4887527
[ 3222.816988] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3253.439367] usb 1-2: reset full speed USB device using ohci_hcd and address 7
[ 3284.065783] usb 1-2: reset full speed USB device using ohci_hcd and address 7
从这些信息来看,系统发现了sdb设备,但是有错误。
会不会和安装virtualbox时修改了usb定义有关系呢?
修改了/etc/init.d/mountdevsubfs.sh中的定义
#
# Magic to make /proc/bus/usb work
#
#mkdir -p /dev/bus/usb/.usbfs
#domount usbfs "" /dev/bus/usb/.usbfs -obusmode=0700,devmode=0600,listmode=0644
#ln -s .usbfs/devices /dev/bus/usb/devices
#mount --rbind /dev/bus/usb /proc/bus/usb
修改了/etc/fstab文件,加入了
none /proc/bus/usb usbfs devgid=1002,devmode=664 0 0
语句,这些内容我也不懂,只是为了使用virtualbox而在论坛上比葫芦画瓢搞的。
上次由 百草谷居士 在 2008-07-24 12:34,总共编辑 1 次。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#4

帖子 百草谷居士 » 2008-07-24 8:43

在Virtualbox的usb管理器上,这个设备显示为:
Anchor chips, Inc. Firmware Frameworks

是不是这个移动硬盘不是简单的usb mass storage,而是usb-scsi-ide转换的?
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#5

帖子 百草谷居士 » 2008-07-24 10:40

代码: 全选

 dmesg
[ 4769.196084] usb 2-1: new full speed USB device using ohci_hcd and address 3
[ 4769.408959] usb 2-1: configuration #1 chosen from 1 choice
[ 4769.414998] scsi7 : SCSI emulation for USB Mass Storage devices
[ 4769.407186] usb-storage: device found at 3
[ 4769.407190] usb-storage: waiting for device to settle before scanning
[ 4774.402112] usb-storage: device scan complete
[ 4774.665856] scsi scan: INQUIRY result too short (5), using 36
[ 4774.665864] scsi 7:0:0:0: Direct-Access WDC WD20 0BB-00AUA1 18.2 PQ: 0 ANSI: 0
[ 4774.680825] sd 7:0:0:0: [sdb] 39100224 512-byte hardware sectors (20019 MB)
[ 4774.686837] sd 7:0:0:0: [sdb] Write Protect is off
[ 4774.686840] sd 7:0:0:0: [sdb] Mode Sense: 00 07 00 00
[ 4774.686842] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4774.701851] sd 7:0:0:0: [sdb] 39100224 512-byte hardware sectors (20019 MB)
[ 4774.707808] sd 7:0:0:0: [sdb] Write Protect is off
[ 4774.707816] sd 7:0:0:0: [sdb] Mode Sense: 00 07 00 00
[ 4774.707818] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 4774.707823] sdb: sdb1
[ 4774.723648] sd 7:0:0:0: [sdb] Attached SCSI disk
[ 4774.723677] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 4805.026591] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 4835.646055] usb 2-1: reset full speed USB device using ohci_hcd and address 3
根据提示,在俘获了一个scsi磁盘,为sdb,并且识别出来只有一个分区:sdb1;还检查出来硬盘型号是:WDC WD20 0BB-00AUA1 ;容量为: 39100224 512-byte hardware sectors (20019 MB);在/dev下找不到sdb设备,别说是sdb1了。
另外,倒是有sg2。 Attached scsi generic sg2 type 0对解决问题有什么帮助吗?
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#6

帖子 百草谷居士 » 2008-07-24 10:48

[ 4927.504251] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 4958.123488] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 4958.597623] sd 7:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[ 4958.597632] end_request: I/O error, dev sdb, sector 39100216
[ 4958.597637] Buffer I/O error on device sdb, logical block 4887527
[ 4988.791002] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5019.410361] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5050.029730] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5080.649075] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5111.268518] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5141.887903] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5142.362329] sd 7:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[ 5142.362337] end_request: I/O error, dev sdb, sector 39100216
[ 5142.362342] Buffer I/O error on device sdb, logical block 4887527
[ 5172.507272] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5203.125913] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5233.745003] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5264.365363] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5294.984764] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5325.603732] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5326.077144] sd 7:0:0:0: [sdb] Result: hostbyte=DID_ABORT driverbyte=DRIVER_OK,SUGGEST_OK
[ 5326.077152] end_request: I/O error, dev sdb, sector 39100216
[ 5326.077156] Buffer I/O error on device sdb, logical block 4887527
[ 5356.259611] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5386.878986] usb 2-1: reset full speed USB device using ohci_hcd and address 3
[ 5417.498189] usb 2-1: reset full speed USB device using ohci_hcd and address 3
这些内容是不是告诉我硬盘的39100216扇区出现错误了,为什么在windows下面没有问题呢?
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#7

帖子 百草谷居士 » 2008-07-24 11:35

使用hardinfo工具查看,确实是发现了硬盘,但是在/dev下就是没有出现sdb节点。
附件
Screenshot-Storage - System Information.png
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#8

帖子 百草谷居士 » 2008-07-24 12:35

我在windows下使用磁盘医生检查了磁盘,没有发现错误。
后来使用分区工具删除了原来的fat32分区,重新建立了一个ext3分区,有一半大小。还是无法识别。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#9

帖子 百草谷居士 » 2008-07-24 13:31

这样一段话也许对我有帮助,先记下来:
USB 2 Issues

If you encounter problems using your USB device with USB 2 (i.e. 'high speed' mode), you can revert to the 'full speed' mode (slower) by unloading ehci_hcd. To do that, type in a terminal :

sudo rmmod ehci_hcd

before pluging your device.
Buffer I/O Errors

If you see errors related to Buffer I/O when attaching a USB Storage device, there are two ways to work around it. First, try using varying max_sectors settings, as such:

sudo sh -c "echo 120 > /sys/block/sda/queue/max_sectors_kb"

Try values of 120, 64 and 32. If this does not resolve the issue, then you may need an unusual_dev entry for your device. It would look something like this:

UNUSUAL_DEV(0x03eb , 0x2002, 0x0100, 0x9999,
"Generic",
"MusicDrive",
US_SC_DEVICE, US_PR_DEVICE, NULL,
US_FL_IGNORE_RESIDUE),

The vendor and device ID's can be obtained from the output of "lsusb". The entry would be placed in drivers/usb/storage/unusual_devs.h. If you cannot compile your own kernel, please file a bug report, and we'll attempt to compile a test module for you.
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#10

帖子 百草谷居士 » 2008-07-24 17:12

可是还是不行。
我终于遇见传说中的的硬件驱动问题了
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
2ine
帖子: 200
注册时间: 2008-05-02 15:55

#11

帖子 2ine » 2008-07-24 18:48

跑到Win下面在移动硬盘上复制粘贴个文件,再回来试试
每回我的win非正常关机导致Ubuntu下面访问NTFS分区有问题,就是这么做的。
另外可以在win下面用chkdsk /f 试试
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#12

帖子 百草谷居士 » 2008-07-25 8:04

我已经重新分区几次了,现在是ext3分区。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
caiqinren
帖子: 17
注册时间: 2008-05-08 7:57

#13

帖子 caiqinren » 2008-07-25 8:12

右键在面板上点击“添加新项目”,出现添加项目到面板对话框,选中Mount devices点击添加,会在面板上出现一个devices的小图标,若系统能够识别移动硬盘,点击该硬盘对应的盘符即可自动挂载。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#14

帖子 百草谷居士 » 2008-07-25 8:24

不是挂载的问题,是根本没有出现对应的硬盘设备:sdb。但是可以检查出scsi硬盘。
希望高手仔细看看前面的症状描述。
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
头像
百草谷居士
帖子: 3910
注册时间: 2006-02-10 16:36
系统: Mint21.1/Deepin20.8

#15

帖子 百草谷居士 » 2008-07-25 8:58

今天早上使用

代码: 全选

sudo sh -c "echo 64 > /sys/block/sda/queue/max_sectors_kb" 
竟然可以使用了。
不过在此之前,我先找别人的移动硬盘在我电脑上试了一下,没有问题,然后继续测试我自己的,是不是必须由好硬盘做个引子?
debian 12 / 深度系统 20.9 / Mint 21.3

为何热衷于搞发行版的多,搞应用程序开发的少?Linux最多余的就是各种发行版,最缺的就是应用程序,特别是行业应用程序。
回复