Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I was receiving the following notification at the end of my message of the day

*** /dev/xvda1 will be checked for errors at next reboot ***

I did the following

$ touch /forcefsck
$ shutdown -r now

But when I rebooted /forcefsck still existed and I was receiving the same warning at the end of the message of the day. I then ran

$ reboot

And now I longer receive the error at the end of the message of the day (I assume running fsck correctly this problem)

share|improve this question
    
I don't think so. Both Command do same function. –  K.K Patel Nov 15 '12 at 7:41

1 Answer 1

up vote 2 down vote accepted

The manpage for reboot says:

When called with --force or when in runlevel 0 or 6, this tool invokes the reboot(2) system call itself and directly reboots the system. Otherwise this simply invokes the shutdown(8) tool with the appropriate arguments.

So in most cases reboot just calls shutdown -r.

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.