Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a server in a remote location, which I think is suffering disk issues and has remounted / as read-only.

My Debian (Squeeze) installation does not have a root user. I have been using sudo to get things done, but in hindsight root would be handy right about now...

After some research, I decided I'd like to run fsck on reboot, but I cannot reboot because sudo shutdown -rF now is returning: sudo: Can't open /var/lib/sudo/<user>/3: Read-only file system.

If I try and remount as writeable, using: sudo mount -t ext3 -o remount,rw /dev/hda3 /, I get: mount: cannot remount block device /dev/hda3 read-write, is write-protected.

I am desperate for a way out of this circle - ultimately, I just want get on and debug my disk issue(s).

Many thanks in advance.

Update: I managed to run fsck -y on the mounted read-only file system as WoLpH suggested in the comments below; unfortunately, it exited with a signal 7 after reams of Error reading block... errors.

share|improve this question
Everything is readonly and non-editable? Not even /boot? Also, is there any way to get remote IPMI or serial terminal up and running? – Wolph Apr 13 '13 at 22:35
@WoLpH /proc/mounts shows /dev/disk/by-uuid/00f1be57-bb4d-4487-90f8-141fe98a7cc2 / ext3 ro,relatime,errors=remount-ro,data=ordered 0 0 as the only read-only mount point. Does that help me? Unfortunately SSH is my only option without travelling. – Check12 Apr 13 '13 at 23:06
Actually... if it's already read-only, who says you cannot do an fsck already? – Wolph Apr 13 '13 at 23:30
@WoLpH That's a good point. I shall try this after some sleep and update my question accordingly tomorrow. Thanks for your time so far. – Check12 Apr 13 '13 at 23:59
I think fsck will fight you on running against a mounted filesystem. – JasonAzze Apr 14 '13 at 0:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.