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