Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a server with Debian on it that I regularly reboot after upgrades. Sometimes (on schedule) fsck will check a disk when the computer is booting. With the exception of sitting in front of the console to observe the fsck, how can I determine the difference between a problematic halt and an fsck (besides waiting out the fsck, hoping it is an fsck)?

When I send the computer down to reboot, I will usually have a terminal window open pinging the computer so I know when it has come back up. My first thoughts drifted to fantasizing about hacking fsck to respond to pings with some special magic byte so you could tell via ping that a computer was fsck-ing, but I'm thinking there have got to be easier ways..

share|improve this question
    
This question is similar to askubuntu.com/questions/26141/… , however because the system in question is Debian and not Ubuntu I don't think it is a duplicate of said question. –  Jeff Welling Jul 31 '11 at 11:36

2 Answers 2

up vote 1 down vote accepted

When Linux boots, it sends messages to the console, including the one about fsck checking the disks. Assuming you're purchasing your hosting from somewhere, ask your provider how you access the console during boot, that way you can monitor what the server is doing. If they don't offer an option for remote console access, consider another provider because you'll need it eventually.

Outside of console access, you'll just have to wait ...

(If this isn't a purchased hosting option, dedicated server, vps, whatever, and is instead your own physical server somewhere, then you need to work out how to give yourself remote console access which varies depending on the hardware, distance and network involved).

The other answers posted in the comment show you how to tell before you reboot the machine, but that's only useful if you a) remember and b) have time. If the machine reboots on it's own, remote console access is essential.

share|improve this answer
    
Hmm. Unfortunately, this is a server in a closet instead of a hosted instance. Thoughts wander to plugging in a webcam to a second server nearby pointed at the monitor.. lol. Thanks. –  Jeff Welling Jul 31 '11 at 11:41
    
Maybe ask another question - giving specific details of the hardware and network and ask what remote console options are available. –  EightBitTony Jul 31 '11 at 12:00

If your server has a serial port, and you have another computer within a reasonable distance, you could use a serial console.

share|improve this answer

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.