LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 11:15 AM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
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, 12:39 PM   #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, 03:47 PM   #3
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
That doesn't do a graceful shutdown does it
 
Old 11-27-2013, 04: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, 04:04 PM   #5
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Original Poster
Rep: Reputation: 46
but how does that tell it to skip any scheduled fsck's on reboot? i'm not understanding that part.
 
Old 11-27-2013, 04:18 PM   #6
mddnix
Member
 
Registered: Mar 2013
Location: Bengaluru, India
Distribution: Redhat, Arch, Ubuntu
Posts: 498

Rep: Reputation: 137Reputation: 137
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, 04:20 PM   #7
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 01:09 AM
fsck after improper shutdown jmkelm08 Linux - Software 1 07-05-2006 03:40 AM
Howto force fsck after dirty shutdown? anti_trend Linux - General 1 10-15-2004 07:34 PM
System shutdown uncleanly; fsck? mac_phil Linux - General 2 11-02-2003 02:18 AM
autofsck or force fsck after uncontrolled shutdown r00tnuke Red Hat 5 09-05-2003 10:20 AM


All times are GMT -5. The time now is 10:12 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration