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?
Post Reply
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

Post 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
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

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

Post 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.
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

Post 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
User avatar
Ian
Moderator
Posts: 752
Joined: January 1st, 2011, 7:00 am

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

Post by Ian »

Ah ok. Glad you got it sorted :thumbup:

Ian.
Post Reply