We've had a bit of a problem here, and I'm trying to figure out what might have gone wrong.
The company I work for maintains a set of remote servers for one of our major clients. Yesterday, one of the remote sites (running SuSE 11.0) had their UPS backup system fail, and the server went down. After they tried to bring it back up, we could ping it, but not shell in via putty. From discussion on the phone, we determined that it came up into a shell prompt rather than the normal GUI prompt, and was apparently asking for the root password. We were able to talk someone there through login, and it came up to a (repair file system) prompt. This morning, we talked them through an fsck run (fsck -A -y), as found on a website reached by googling for the message they reported on the screen. ('type control d')
After that finished, we had them power the machine down and back up. It came back up to the original shell prompt, however, rather than the expected GUI prompt. It's now possible to ping the machine and shell in, and it looks like everything's in place (we've managed to snag backups for the work they did after the last daily backup they took), but the shell prompt in putty, which used to read 'DistrictX:~ #', now reads '-bash-3.2#'. And, again, the monitor physically attached to the machine in question is now showing a shell prompt login after startup, instead of going to the GUI login prompt. It does this every time the system is powered on and off.
My boss is worried that this might be a sign that something else in the system was corrupted, and that the fsck run may not have fixed it. I'm concerned as well; I've had systems boot to a shell prompt before, but I've always managed to get it back to the GUI prompt by rebooting. This one's a new one on me.
I'd thought that perhaps a runlevel setting somehow got shifted during the problem, but, well, below is output of a couple of commands:
-bash-3.2# who -r
run-level 5 Nov 30 08:16 last=S
If I understand correctly, runlevel 5 ought to mean the GUI should appear. As noted above, it doesn't.
Does anyone have any suggestions as to what might be the problem, or perhaps the names of other files I may need to check on in the system to determine what else, if anything, might be damaged?