Blog
For fsck's sake

Copyright © TechPad.co.uk
Debian is great on headless servers but there's one really annoying issue...
A while ago I hacked my HP MediaVault 5020 to run Debian and it's been working really well. Debian provides me with the ability to tweak the OS to my liking and install absolutely any software I want.
However, when running in headless mode, there's one annoying problem with Debian on a NAS - fsck!
Like most Linux based machines, disks sometimes develop errors from being shutdown forcefully or whatever, and cleverly the MediaVault informs the user of such issues by displaying a purple light on the front panel.
The snag is, in the background the machine is likely to be waiting for user input, as the e2fsck program it uses for file system checking requires the user to agree to the disk check.
With a headless machine this is something of an annoyance because there's no command prompt or display to see. You can't SSH or telnet into the machine, as it hasn't booted, and you can't view the feedback on a serial console because the MediaVault doesn't have one.
In order to fix it you need to remove the affected drive and mount it in another Linux box and run e2fsck from there and then reinstall the drive in the Media Vault.
According to former Debian-leader Martin Michlmayr, who does lots of work on Debian on alternative devices such as the Media Vault, Debian will eventually configure e2fsck to automatically provide a 'Yes' response on headless boxes, such as NAS devices.
Martin says the setting in question is /etc/default/rcS and it needs a value of FSCKFIX=Y.
Maybe whipping out the drive, running e2fsck and then changing this setting will solve my headless disk checking problems forever...
Update: Apparently not. Upon checking /etc/default/rcS FSCKFIX is already set to yes, so it appears that this may not be the answer to my problems.
Published: TechPad.co.uk Thursday 22 October 2009, 8:00 pm
Views: 17,219 times
Filed under: Linux Debian Media Vault
Login to leave your comments
Please login









Recent comments
iplayer-dl is a Ruby application, which will run most easily on Linux or Mac (hence the Mac scree...
TechPad: 18:18 PM Aug 22nd, 2010
I don't understand how to use this. I have vista and firefox. Do I need to copy the iplayer int...
mufc1977: 15:15 PM Aug 21st, 2010
No worries, glad you got the buttons back in their rightful place!
TechPad: 13:13 PM Aug 12th, 2010
Disregard my previous comment: The FIRST time I tried it, it definitely didn't work. After addi...
freshrich: 1:01 AM Aug 10th, 2010
Great tutorial, but it doesn't work with Ubuntu Lucid. The only way I could get it to work was b...
freshrich: 1:01 AM Aug 10th, 2010