LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to shutdown with bypassing any fsck's (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-shutdown-with-bypassing-any-fscks-4175486056/)

anon091 11-27-2013 10:15 AM

how to shutdown with bypassing any fsck's
 
I just loaded a new CentOS box, and doing a man shutdown noticed there's no longer a -f option to skip fsck's on shutdown, which I do need to do from time to time.

Is there a workaround to do this via a command anymore? Anyone know why they removed it?

youniqueg33k 11-27-2013 11:39 AM

Try just

Code:

init 0
And it should halt very fast.

anon091 11-27-2013 02:47 PM

That doesn't do a graceful shutdown does it

youniqueg33k 11-27-2013 03:01 PM

Actually, I think its the most graceful shutdown. Nothing gets hung or held up waiting for daemons to close etc. Give it a try.

anon091 11-27-2013 03:04 PM

but how does that tell it to skip any scheduled fsck's on reboot? i'm not understanding that part.

Madhu Desai 11-27-2013 03:18 PM

I have CentOS 6.4, and as you mentioned there is no -f option. So i believe, -f options will skip fsck check at next boot. In that case you can try following:

Code:

# touch /fastboot
# shutdown -r now

Its equivalent to

Code:

# shutdown -rf now
I just tried on my Virtual Machine, and it didn't do fsck check.

anon091 11-27-2013 03:20 PM

ah, a /fastboot like the opposite of /forcefsck. never thought there might be something like that, i'll give it a shot!


All times are GMT -5. The time now is 11:24 AM.