Hullo there List,
I powered down a debian etch server yesterday, for the first time in several months. When powered back up, it is mounting the hard drive read only for some reason, with no hostname.
The kernel is 2.6.18-5-amd64, if I boot into older kernels I get the same problem. I've run fsck several times and found no errors.
I remounted the drive rw and started trying to manually start services. I tried setting the hostname thusly:
jenny@(none):~$ sudo /etc/init.d/hostname.sh start /etc/init.d/hostname.sh: line 19: /lib/init/vars.sh: No such file or directory jenny@(none):~$
Looking in /lib/init, there are no files, only an empty rw directory, but on my other system there are a bunch of startup files. I see the package initscripts is supposed to provide these files, -dpkg says v. 2.86.ds1-38 installed. I went to remove and reinstall it but got such a scary warning i haven't dared yet.
Has anyone any idea what on earth is going on?
Thanks, any pointers appreciated.
Jenny
On Sat, 19 Apr 2008 16:02:17 +0100 "Jenny Hopkins" hopkins.jenny@gmail.com allegedly wrote:
Hullo there List,
I powered down a debian etch server yesterday, for the first time in several months. When powered back up, it is mounting the hard drive read only for some reason, with no hostname.
The kernel is 2.6.18-5-amd64, if I boot into older kernels I get the same problem. I've run fsck several times and found no errors.
I remounted the drive rw and started trying to manually start services. I tried setting the hostname thusly:
Jenny
More details would help.
What does dmesg give? Are there any error reports in /var/log/messages relating to the disk? What have you got in your /etc/fstab? (if a mount point has options "errors=remount-ro" then it would explain the mount problem). Do you have separate mount points for /lib or other parts of the filesystem?
Mick
---------------------------------------------------------------------
This is a Microsoft free zone. Please do not send me Microsoft Word Documents. For some reasons, see:
www.gnu.org/philosophy/no-word-attachments.html www.goldmark.org/netrants/no-word/attach.html ---------------------------------------------------------------------
On 19/04/2008, mbm mbm@rlogin.net wrote:
What does dmesg give? Are there any error reports in /var/log/messages relating to the disk? What have you got in your /etc/fstab? (if a mount point has options "errors=remount-ro" then it would explain the mount problem). Do you have separate mount points for /lib or other parts of the filesystem?
Okay: /var/log/messages - no errors relating to disk, very little apart from MARK and the odd line about printer ink and syslog restarting. Unfortunately as it boots ro it can't write the errors that are occuring to file.
I've pasted dmesg here http://pastebin.ca/989690
/etc/fstab says: # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/sda1 / ext3 defaults,errors=remount-ro 0 1 /dev/sda5 none swap sw 0 0 /dev/hda /media/cdrom0 udf,iso9660 user,noauto 0 0 /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0 /dev/sdb1 /mnt/drive2 ext3 defaults,errors=remount-ro 0
I previously tried altering /dev/sda1 / ext3 defaults,errors=remount-ro 0
to read /dev/sda1 / ext3 defaults 0
which made no difference, and then to /dev/sda1 / ext3 defaults,errors=remount-rw 0
which made no difference and cause a small grumble which you will see in dmesg.
The entire root fs is mounted on one partition.
I'm currently running a command to reinstall all installed packages, as there do seem to be some missing files. (lost+found is empty).
Thanks!
Jenny
On 19/04/2008, Jenny Hopkins hopkins.jenny@gmail.com wrote:
I'm currently running a command to reinstall all installed packages, as there do seem to be some missing files. (lost+found is empty).
This seems to have done the trick!
The command was sudo dpkg --get-selections | grep -E '\Winstall$' | awk '{print $1}' | xargs sudo apt-get --reinstall -y install
(Thanks, Brett, on irc)
What a relief - many thanks, all.
Jenny
On Sat, 19 Apr 2008 18:18:37 +0100 "Jenny Hopkins" hopkins.jenny@gmail.com allegedly wrote:
This seems to have done the trick!
The command was sudo dpkg --get-selections | grep -E '\Winstall$' | awk '{print $1}' | xargs sudo apt-get --reinstall -y install
Jenny
Do you know what caused the original problem?
Mick ---------------------------------------------------------------------
This is a Microsoft free zone. Please do not send me Microsoft Word Documents. For some reasons, see:
www.gnu.org/philosophy/no-word-attachments.html www.goldmark.org/netrants/no-word/attach.html ---------------------------------------------------------------------
On 22/04/2008, mbm mbm@rlogin.net wrote:
Do you know what caused the original problem?
Mick - the only thing I can think of is that I started using aptitude rather than apt-get to manage the packages on this system. I'm pretty careful and don't tend to cack-handedly rm system files as a matter of course.
Or perhaps a bug in a particular package version that wouldn't let it unpack files properly but had already removed the files from the previous version?
Jenny