我有一个USB驱动器安装到Ubuntu 9.04服务器安装中的文件夹.安装选项存储在/ etc / fstab中,以便于安装/拆卸:
#
/dev/sdb1 /media/backup ntfs nouser,auto,sync 0 3
(我已经将部分更改为UUID以查看它是否有助于解决问题).备份一直在每天早上将文件复制到磁盘而没有问题.刚才我尝试将其中一个文件复制到另一个文件夹,结果出现错误:
cp: reading `ts01-even.tgz': Input/output error
我发现问题发生了,因为/ dev / sdb已更改为/ dev / sdc.如果我挂载/ dev / sdc并尝试再次复制该文件,驱动器将更改回/ dev / sdb.将fstab文件系统从/ dev / sdX1更改为UUID后,行为没有区别.此外,我曾经能够列出tarball的文件内容,但现在尝试这样做会导致上述行为.有任何想法吗?
更新:
运行备份脚本并将备份存储在usb HD上不会产生问题,但是在tarball中列出文件会产生问题.以下是tarball命令“tar -ztf FILENAME”期间syslog的输出:
Jul 3 15:09:14 ts01 kernel: [308398.446893] Buffer I/O error on device sdc1, logical block 786433
Jul 3 15:09:28 ts01 ntfs-3g[7468]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Jul 3 15:09:28 ts01 ntfs-3g[7468]: Failed to read of MFT, mft=5 count=1 br=-1: Input/output error
Jul 3 15:09:28 ts01 kernel: [308412.404579] Buffer I/O error on device sdc1, logical block 786433
Jul 3 15:09:29 ts01 ntfs-3g[7468]: Unmounting /dev/sdc1 (FreeAgent Drive)
Jul 3 15:09:32 ts01 ntfs-3g[29176]: Version 2009.2.1 external FUSE 27
Jul 3 15:09:32 ts01 ntfs-3g[29176]: Mounted /dev/sdb1 (Read-Write, label "FreeAgent Drive", NTFS 3.1)
Jul 3 15:09:32 ts01 ntfs-3g[29176]: Cmdline options: rw,sync
Jul 3 15:09:32 ts01 ntfs-3g[29176]: Mount options: rw,sync,silent,allow_other,nonempty,relatime,fsname=/dev/sdb1,blkdev,blksize=4096
Jul 3 15:10:01 ts01 /USR/SBIN/CRON[29630]: (root) CMD ([ -x /usr/sbin/update-motd ] && /usr/sbin/update-motd 2>/dev/null)
Jul 3 15:11:35 ts01 kernel: [308539.310031] usb 1-1: reset high speed USB device using ehci_hcd and address 38
... (log repeated with a different address)
Jul 3 15:12:47 ts01 kernel: [308611.790038] usb 1-1: reset high speed USB device using ehci_hcd and address 38
Jul 3 15:12:49 ts01 kernel: [308613.148837] end_request: I/O error, dev sdb, sector 84779391
Jul 3 15:12:49 ts01 kernel: [308613.148871] Buffer I/O error on device sdb1, logical block 10597416
... (log repeated with a different address, with the logical block incrementing by 1 each time)
Jul 3 15:12:49 ts01 kernel: [308613.149090] Buffer I/O error on device sdb1, logical block 10597425
Jul 3 15:12:49 ts01 ntfs-3g[29176]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Jul 3 15:12:49 ts01 ntfs-3g[29176]: ntfs_attr_pread error reading '/TS01_Backup/ts01-even.tgz' at offset 177012736: 131072 <> -1: Input/output error
Jul 3 15:12:49 ts01 ntfs-3g[29176]: ntfs_attr_pread_i: ntfs_pread failed: Input/output error
Jul 3 15:12:49 ts01 ntfs-3g[29176]: ntfs_attr_pread error reading '/TS01_Backup/ts01-even.tgz' at offset 177012736: 4096 <> -1: Input/output error
我找到了一些似乎相关的东西,但遵循说明并没有证明有成效:FreeAgent Drives