tdiguy 99 Posted March 25, 2018 Posted March 25, 2018 Does anyone know if "sudo touch /forcefsck" will check every drive connected to the system even if the drive is not in fstab? My 3tb drive seems to be going south on me. I am seeing incrementing smart errors and the drive is under a year old. So i am going to run a drive check on it and migrate data off it once its replacement comes in the mail. Just trying to figure out a good way to check and repair bad sectors short term so i can move everything.
Jdiesel 1431 Posted March 25, 2018 Posted March 25, 2018 (edited) If you have the smartmontools package installed you can use sudo smartctl -t long /dev/sda On an unmounted drive. Disclaimer a long test will take a while to complete. Edit: Sorry I misread your post. What filesystem is on the drive? Edited March 25, 2018 by Jdiesel
tdiguy 99 Posted March 25, 2018 Author Posted March 25, 2018 If you have the smartmontools package installed you can use sudo smartctl -t long /dev/sda On an unmounted drive. Disclaimer a long test will take a while to complete. Edit: Sorry I misread your post. What filesystem is on the drive? I am using ext4 filesystems. Looking through webmin at the smart monitoring i think the errors are coming from: Spin Up Time 511 (Normalized: 129) and Power On Hours 655 (Normalized: 100) The power on hours one is a bit confusing not sure why that matters.
mastrmind11 722 Posted March 25, 2018 Posted March 25, 2018 To answer your original question, I'd think so, since a drive a recognized long before it has been mounted (or not), just check syslog on startup and you'll see what I mean.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now