Blog

For fsck's sake

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

(No votes yet)



Login to leave your comments

Please login

Username
Password
  Remember me
Reset password | Send activation code

Related items

Auto-NDISwrapper eases Linux wifi
Auto-NDISwrapper eases Linux wifi
The easylinuxwifi.org project has launched... no votes (No votes)
How to install software on Ubuntu Linux
How to install software on Ubuntu Linux
Ubuntu is one of the easiest Linux distrib... 5 (1 vote)
How to keep your Ubuntu Linux system up to date
How to keep your Ubuntu Linux system up to date
Ubuntu makes it really easy to keep your s... no votes (No votes)
Watch digital TV from your computer with Zattoo
Watch digital TV from your computer with Zattoo
Zattoo makes it possible to watch terrestr... no votes (No votes)
13 things we'd love to see in Ubuntu Jaunty Jackalope
13 things we'd love to see in Ubuntu Jaunty Jackalope
Ubuntu is arguably one of the best Linux d... 5 (1 vote) *1 comment

Recently added

How to create a Linux iPlayer download GUI using Zenity
How to create a Linux iPlayer download GUI using Zenity
Here's how I created a simple graphical ut... no votes (No votes)
A taste of iPhone support coming in Ubuntu Lucid Lynx
A taste of iPhone support coming in Ubuntu Lucid Lynx
Ubuntu's Lucid Lynx release, which comes o... no votes (No votes)
Frequently asked questions on NexentaCore
Frequently asked questions on NexentaCore
Frequently asked questions about NexentaCo... no votes (No votes)
Create a video transcoder GUI with Zenity and ffmpeg
Create a video transcoder GUI with Zenity and ffmpeg
Create a GUI application for your Linux co... 4 (1 vote)

Most viewed


Recent comments


Analytics sites

VKI Studios blog
VKI Studios blog
Web analytics blog by the C...
SiteScan by EpikOne
SiteScan by EpikOne
SiteScan is a diagnostic to...
Excellent Analytics free Excel plugin
Excellent Analytics free Excel plugin
Excellent Analytics is a si...