New answers tagged external-hdd
add to /etc/auto.master /var/autofs/removable /etc/auto.removable --timeout=2 add to /etc/auto.removable theDiskLabel -fstype=ext4,rw,gid=1000,umask=002 :/dev/disk/by-uuid/thediskid restart autofs service sudo service autofs restart Access your directory, thats it! cd /var/autofs/removable/theDiskLabel
Note that a drive might pass badblocks -w despite "soft errors". After running badblocks, you should check dmesg for retry warnings, and smartctl -a -d /dev/... to see if the drive discovered bad sectors and managed to hide them. You don't want to see any smart failures, and the raw value of Reallocated_Sector_Ct should be zero. (Same for ...
The usual tool for this is badblocks, which is part of E2fsprogs. If your drive has never been used before, you could run a destructive test with something like badblocks -w -s /dev/sdb (assuming your drive shows up as /dev/sdb). -w enables destructive write tests, and -s displays progress information.
Top 50 recent answers are included