I'm currently having trouble backing up to an external USB drive, receiving input/output errors when creating on various directories. From the shell, I can't ls or rm them either, so I suspect bad blocks.
The useful posts above are somewhat aged, so I thought I'd post what I'm finding with a DS410 running DSM 3.0-1337 (released mid 2010).
Looking at /etc/fstab is not telling me where the USB drive is. umount's usage hints refer instead to /etc/mtab:
- Code: Select all
DiskStation> cat /etc/mtab
/dev/root / ext3 rw,relatime,errors=continue,data=ordered 0 0
/tmp /tmp tmpfs 0 0 0
none /dev/pts devpts gid=4,mode=620 0 0
/sys /sys sysfs 0 0 0
/proc/bus/usb /proc/bus/usb usbfs 0 0 0
/dev/vg1/lv /volume1 ext3 usrquota,grpquota 0 0
/dev/sdk1 /volumeUSB1/usbshare ext4 nodelalloc 0 0
I'd also found the device listing a little more concisely via df:
- Code: Select all
DiskStation> df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md0 2451064 456664 1892000 19% /
/tmp 257824 1952 255872 1% /tmp
/dev/vg1/lv 5754600904 2446335464 3308163040 43% /volume1
/dev/sdk1 1922858256 711279596 1211476260 37% /volumeUSB1/usbshare
In my case, there are all sorts of errors along the lines of
- Code: Select all
DiskStation> e2fsck -c -f -v /dev/sdk1
e2fsck 1.41.12 (17-May-2010)
Error reading block 14155776 (Attempt to read block from filesystem resulted in short read) while reading inode and block bitmaps. Ignore error<y>?
So, I'm running with the -y switch to just rewrite everything. The drive is probably toast, but maybe I can mark enough bad blocks and reformat to get a usable backup while waiting for a replacement to arrive.
I am concerned about the following message:
- Code: Select all
sh: badblocks: not found
1.41.12-1337: Updating bad block inode.
Pass 1: Checking inodes, blocks, and sizes
It appears that some command `badblocks` was supposed to be run but isn't in the path?