USB HD 外壳“休眠”,文件系统错误随之而来,无法重新安装,设备消失。帮助解释这些日志?

USB HD 外壳“休眠”,文件系统错误随之而来,无法重新安装,设备消失。帮助解释这些日志?

我通过 USB2 使用这个带有 Ubuntu 11.10 的外壳: http://www.newegg.com/Product/Product.aspx?Item=N82E16817173042

一段时间不活动后,机箱似乎进入睡眠状态,Ubuntu 无法将其唤醒。我已确认内部驱动器正在工作(没有坏块等)。此外,在 Windows 中,当机箱处于睡眠状态时,Windows 似乎能够在访问驱动器时将其唤醒。在 Ubuntu 中,我只有在访问挂载点时才会收到 I/O 错误。

syslog 的相关部分如下所示。有人能告诉我这是否证实了我上面的想法吗?我该怎么办?

Mar 11 14:35:30 iwill-x61 kernel: [320435.920084] usb 2-2: reset high speed USB device number 34 using ehci_hcd
Mar 11 14:35:30 iwill-x61 kernel: [320436.052429] usb 2-2: device firmware changed
Mar 11 14:35:30 iwill-x61 kernel: [320436.052496] usb 2-2: USB disconnect, device number 34
Mar 11 14:35:30 iwill-x61 kernel: [320436.053107] sd 16:0:0:0: Device offlined - not ready after error recovery
Mar 11 14:35:30 iwill-x61 kernel: [320436.056960] XFS (sdc1): xfs_do_force_shutdown(0x1) called from line 1052 of file /build/buildd/linux-3.0.0/fs/xfs/linux-2.6/xfs_buf.c.  Return address = 0xffffffffa04abc43
Mar 11 14:35:30 iwill-x61 kernel: [320436.056976] XFS (sdc1): I/O Error Detected. Shutting down filesystem
Mar 11 14:35:30 iwill-x61 kernel: [320436.056982] XFS (sdc1): Please umount the filesystem and rectify the problem(s)
Mar 11 14:35:30 iwill-x61 kernel: [320436.276053] usb 2-2: new high speed USB device number 38 using ehci_hcd
Mar 11 14:35:30 iwill-x61 kernel: [320436.412175] scsi17 : usb-storage 2-2:1.0
Mar 11 14:35:30 iwill-x61 mtp-probe: checking bus 2, device 38: "/sys/devices/pci0000:00/0000:00:1d.7/usb2/2-2"
Mar 11 14:35:31 iwill-x61 mtp-probe: bus: 2, device: 38 was not an MTP device
Mar 11 14:35:40 iwill-x61 kernel: [320446.048060] XFS (sdc1): xfs_log_force: error 5 returned.
Mar 11 14:35:53 iwill-x61 kernel: [320458.960073] usb 2-2: reset high speed USB device number 38 using ehci_hcd
Mar 11 14:36:03 iwill-x61 kernel: [320469.204057] usb 2-2: reset high speed USB device number 38 using ehci_hcd
Mar 11 14:36:10 iwill-x61 kernel: [320476.128565] XFS (sdc1): xfs_log_force: error 5 returned.
Mar 11 14:36:19 iwill-x61 kernel: [320485.448076] usb 2-2: reset high speed USB device number 38 using ehci_hcd
Mar 11 14:36:20 iwill-x61 kernel: [320485.696111] usb 2-2: reset high speed USB device number 38 using ehci_hcd
Mar 11 14:36:30 iwill-x61 kernel: [320495.940068] usb 2-2: reset high speed USB device number 38 using ehci_hcd
Mar 11 14:36:30 iwill-x61 kernel: [320496.072729] scsi 17:0:0:0: Device offlined - not ready after error recovery
Mar 11 14:36:40 iwill-x61 kernel: [320506.208076] XFS (sdc1): xfs_log_force: error 5 returned.
Mar 11 14:37:10 iwill-x61 kernel: [320536.288054] XFS (sdc1): xfs_log_force: error 5 returned.
Mar 11 14:37:40 iwill-x61 kernel: [320566.368072] XFS (sdc1): xfs_log_force: error 5 returned.
Mar 11 14:38:10 iwill-x61 kernel: [320596.448067] XFS (sdc1): xfs_log_force: error 5 returned.

答案1

首先,抱歉我的回复这么慢。

考虑使用crontouch唤醒磁盘。这将每分钟唤醒一次磁盘。

在终端中运行,crontab -e

现在,nano如果它提示编辑器,请选择。

在文件末尾的新行添加:

*/1 * * * * touch /media/usbdisk/touch.txt

Ctrl+ O(即字母 O),然后Ctrl按 + X。如果语法正确,命令应该会成功。请将其替换/media/usbdisk/为 HDD 的挂载点。

相关内容