I implemented daily auto-restart of my Ubuntu 16.04 LTS Server. Most of the time it restarts properly, but sometimes, it shows the following message.

inodes that were part of a corrupted orphan linked list found.
(without -a or -p option)
fsck extend with status code 4 done. 
failure: File System check of the root filesystem found.
The root filesystem on /dev/sda1 requires a manual fsck .

It gets stuck with this error message. Yes, it goes further after I run the command

fsck -yf /dev/sda1

But this is server, I want to execute this command automatically if any such problem comes and boot into the Ubuntu system, so that I do not need to check the server-status every-time.

  • If this happens regularly, you should investigate the cause of the problem though instead of just automating a workaround, especially on a production server. Why are you rebooting daily anyway? – Byte Commander Jun 9 '17 at 8:32
  • 1
    If you often ends up with this error, you either have a bad disk or the server isn't cleanly shut down. How does your daily auto-restart script look .. and why are you doing it at all ? – Soren A Jun 9 '17 at 8:39
  • Some services consuming a lot memory (may be memory leak), also creating huge log files if they go on running for long time. I also carry out system clean and reboot everyday (as cronjob). – krishna Jun 9 '17 at 8:39
  • @SorenA I implemented simple restart /sbin/reboot command which runs every midnight which I have defined as cron-job. – krishna Jun 9 '17 at 8:42
  • @krishna Why don’t you just restart these services? Daily restart of a Linux server is IMHO an overkill. – Melebius Jun 9 '17 at 8:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.