LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-27-2013, 10:15 AM   #1
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Rep: Reputation: 49
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?
 
Old 11-27-2013, 11:39 AM   #2
youniqueg33k
LQ Newbie
 
Registered: Nov 2013
Location: Moorhead, Minnesota
Distribution: Fedora KDE, and Android 4.3 Cyanogenmod 10.2
Posts: 8

Rep: Reputation: 2
Try just

Code:
init 0
And it should halt very fast.
 
Old 11-27-2013, 02:47 PM   #3
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
That doesn't do a graceful shutdown does it
 
Old 11-27-2013, 03:01 PM   #4
youniqueg33k
LQ Newbie
 
Registered: Nov 2013
Location: Moorhead, Minnesota
Distribution: Fedora KDE, and Android 4.3 Cyanogenmod 10.2
Posts: 8

Rep: Reputation: 2
Actually, I think its the most graceful shutdown. Nothing gets hung or held up waiting for daemons to close etc. Give it a try.
 
Old 11-27-2013, 03:04 PM   #5
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

Original Poster
Rep: Reputation: 49
but how does that tell it to skip any scheduled fsck's on reboot? i'm not understanding that part.
 
Old 11-27-2013, 03:18 PM   #6
Madhu Desai
Member
 
Registered: Mar 2013
Distribution: Rocky, Fedora, Ubuntu
Posts: 541

Rep: Reputation: 153Reputation: 153
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.
 
1 members found this post helpful.
Old 11-27-2013, 03:20 PM   #7
anon091
Senior Member
 
Registered: Jun 2009
Posts: 1,795

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
large partition fsck on shutdown instead of boot lazardo Slackware 4 10-03-2010 12:09 AM
fsck after improper shutdown jmkelm08 Linux - Software 1 07-05-2006 02:40 AM
Howto force fsck after dirty shutdown? anti_trend Linux - General 1 10-15-2004 06:34 PM
System shutdown uncleanly; fsck? mac_phil Linux - General 2 11-02-2003 01:18 AM
autofsck or force fsck after uncontrolled shutdown r00tnuke Red Hat 5 09-05-2003 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration