On Wed, 29 May 2002, Maxim Kryachko wrote: > --- Tzafrir Cohen <[EMAIL PROTECTED]> wrote: > > On Wed, 29 May 2002, Maxim Kryachko wrote: > > > > > Hi all. > > > After sudden powerdown the system goes up, but: > > > > > > 1. X would not start complaining "cannot lock .Xauthority file" and "cannot > > > read /tmp/.X0-lock". /tmp/X0-lock does not exist. 2. gpm service would not > > > start complaining /var/run/gpm.pid is notpresent. 3. on boot there is a > > > message "cannot remove /var/lock/subsys/network": input-output error. > > > > > > Fsck does not find any problems. > > > Any suggestions? > > > > Start with gpm, as it s generally simpler than X. > > > > First some necessary reality checks: > > > > Are you sure that /tmp and /var (or maybe the whole of /) are nt mounted > > 'ro'? or maybe some file systems are njot mounted at all? Or maybe some > > directories do not exists? > > > > I assume that you have already checked those (or you would have noticed > > them), but just in case. > > > > Anyway, all those messages hint of a file-system level problem. Can > > 'touch' and'rm' be used to create and/or delete the relevant files? > > / is fully accessible, mounted rw, it's OK. > > there are only 2 filesystems: /boot and /, both mounted rw. > > cd; mkdir 1; mv .Xauth* 1 - does not help. > cd /tmp; touch .X0-lock - does not help. > cd /var/run; touch gpm.pid - does not help.
Well, then why is gpm compalining? try: echo "test1" > /var/run/gpm.pid cat /var/run/gpm.pid rm -fv /var/run/gpm.pid ls -l /var/run/gpm.pid (the latter should, of course, return an error that there is no such file) Now that you see tha this file is indeed fully writable and deletable, try restarting gpm: /etc/init.d/gpm restart Are there any error messages? If so: try stopping gpm, and see if there are any copies of it still runnig. Kiil them, try restarting (gpm!) and see if the problem is solved (try restarting a couple of times to see that no extra copies are indeed creatred) IIRC the pid file is created by the init.d scri[t itself, and not by the program gpm. -- Tzafrir Cohen mailto:[EMAIL PROTECTED] http://www.technion.ac.il/~tzafrir ================================================================= To unsubscribe, send mail to [EMAIL PROTECTED] with the word "unsubscribe" in the message body, e.g., run the command echo unsubscribe | mail [EMAIL PROTECTED]