How to check HDD's for filesystem error's

Need some help choosing hardware? Having trouble getting some hardware working? Just want to talk about hardware?
User avatar
Andy Horn
Knows their stuff
Posts: 188
Joined: July 24th, 2011, 6:14 pm
Location: Stockton on Tees

How to check HDD's for filesystem error's

Postby Andy Horn » September 24th, 2012, 9:09 pm

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

User avatar
Ian
Moderator
Posts: 751
Joined: January 1st, 2011, 8:00 am

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

Postby Ian » September 24th, 2012, 9:26 pm

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.

User avatar
Andy Horn
Knows their stuff
Posts: 188
Joined: July 24th, 2011, 6:14 pm
Location: Stockton on Tees

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

Postby Andy Horn » September 25th, 2012, 11:04 am

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

User avatar
Ian
Moderator
Posts: 751
Joined: January 1st, 2011, 8:00 am

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

Postby Ian » September 25th, 2012, 12:14 pm

Ah ok. Glad you got it sorted :thumbup:

Ian.


Return to “Everything Hardware Related”

cron