I am running Ubuntu Server 12.04 and I would like to reboot my system. I ssh into it fine, but when I run sudo reboot I get the following error -bash: /usr/bin/sudo: Input/output error. It is at this point that I noticed other commands are disabled and I am no longer able to write or save any files to the disk. Short of manually rebooting the system, is there a way to fix this? I am not sure I understand exactly what is going on.
|
|
||||
|
Your hard drive most likely dropped off the SATA bus. If it had simply encountered an error and your filesystem had remounted read-only, you'd have gotten a different error - When you rebooted, your drive decided to play nicely again. This might be an isolated once-in-a-lifetime issue caused by a power burp or something, or it might be an early indicator of impending drive failure. Check SMART data on the drive, and consider replacing the drive. Uptime has nothing to do with this. Linux systems are easily capable of years of uninterrupted uptime (though in practice this would mean a years-old version of the kernel, and therefore shouldn't really be strived for). |
|||
|

Input/output error. Whatever the reason, I finally got it shutdown and rebooted it. When it came back up, everything seemed to be fine. I was able tosudoand to write to the file system. I am not sure what happened but am thankful that a reboot did the trick. I wonder if it had something to do with the systems up time. Its been on for about 45 days or so. – user489041 Oct 24 '12 at 14:31