Page 1 of 1

How to check HDD's for filesystem error's

Posted: September 24th, 2012, 9:09 pm
by Andy Horn
When I SSH into my server I get this message:

*** /dev/sdc1 will be checked for errors at next reboot ***
*** /dev/sdb1 will be checked for errors at next reboot ***

Yet when I have rebooted I still get the same message, is there a way to check for error's while the server is running, Synaptic package manager doesn't work as it is a 12.04LTS install.

Thanks

Andy

Re: How to check HDD's for filesystem error's

Posted: September 24th, 2012, 9:26 pm
by Ian
Hi Andy,

This seems to be a feature in 12.04. Try the following:

Code: Select all

sudo touch /forcefsck


Code: Select all

sudo shutdown -r now


Does that help?

Ian.

Re: How to check HDD's for filesystem error's

Posted: September 25th, 2012, 11:04 am
by Andy Horn
Hi Ian.

Erm in a word no.

But I fixed by following this link. post 9.

http://ubuntuforums.org/showthread.php?t=1769477

Ignore this line

Code: Select all

sudo vi /etc/fastab


as it should read:

Code: Select all

sudo vi /etc/fstab


or what I did:

Code: Select all

sudo vim /etc/fstab


Worked like a charm.

Andy

Re: How to check HDD's for filesystem error's

Posted: September 25th, 2012, 12:14 pm
by Ian
Ah ok. Glad you got it sorted :thumbup:

Ian.