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/)

rjo98 11-27-2013 11: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 12:39 PM

Try just

Code:

init 0
And it should halt very fast.

rjo98 11-27-2013 03:47 PM

That doesn't do a graceful shutdown does it

youniqueg33k 11-27-2013 04: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.

rjo98 11-27-2013 04:04 PM

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

mddnix 11-27-2013 04: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.

rjo98 11-27-2013 04: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 01:32 PM.