Fedora Linux Support Community & Resources Center
  #1  
Old 24th March 2010, 08:00 PM
imploder Offline
Registered User
 
Join Date: Nov 2009
Posts: 11
linuxfedorafirefox
How to cancel filesystem check on boot?

Hi, my Fedora 12 does fsck on boot time to time and sometimes it's really annoying having to wait for the check to complete. In Linux Mint pressing <Esc> cancelled the check; however in Fedora this does not work (nor does Ctrl+C nor anything other I've tried). What is the key to cancel the check in Fedora?
Reply With Quote
  #2  
Old 24th March 2010, 09:56 PM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

See: man e2fsck.conf

Basically, create /etc/e2fsck.conf file, put in

[options]
allow_cancellation = true


This will allow ctrl-C to abort it.
Reply With Quote
  #3  
Old 24th March 2010, 10:17 PM
imploder Offline
Registered User
 
Join Date: Nov 2009
Posts: 11
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

JEO, thanks but this does not work. When I press Ctrl+C then, nothing happens - the check just continues to run. No key seems to stop it except for Ctrl+Alt+Delete, which restarts the computer.
Reply With Quote
  #4  
Old 24th March 2010, 10:34 PM
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,851
windows_7firefox
Re: How to cancel filesystem check on boot?

You shouldn't be forced into doing file system checks on every reboot. Filesystems are usually flagged to be checked every n days (180?) or every n mounts (whichever comes first).

If you're being prompted for an fsck on every boot, the system's being routinely shut down before the file system is properly dismounted and the journal closed.
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #5  
Old 24th March 2010, 10:42 PM
imploder Offline
Registered User
 
Join Date: Nov 2009
Posts: 11
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

Quote:
Originally Posted by tjvanwyk View Post
You shouldn't be forced into doing file system checks on every reboot. Filesystems are usually flagged to be checked every n days (180?) or every n mounts (whichever comes first).

If you're being prompted for an fsck on every boot, the system's being routinely shut down before the file system is properly dismounted and the journal closed.
The file system check does not happen every reboot, it's about 20 mounts or so I guess. Now, I just used
Code:
touch /forcefsck
and rebooted to see if the solution works. It doesn't.
Reply With Quote
  #6  
Old 24th March 2010, 10:58 PM
forkbomb Offline
Registered User
 
Join Date: May 2007
Location: U.S.
Posts: 4,851
windows_7firefox
Re: How to cancel filesystem check on boot?

Sheesh... so every time you change something to fix the "problem" (and I think somewhere around 30 is the default number of mounts that starts a fsck at boot time) you reboot a bunch of times to see if you fixed the issue? I don't get it.

In any event, see man tune2fs if you're using ext3. Setting the max-mount-counts to 0 or -1 will prevent mandatory e2fsck (I personally wouldn't advise it). I don't know if tune2fs can be used to change the attributes of ext4.

(As with any operation that involves modification of the filesystem, have a backup.)
__________________
- Tom
"What is freedom? To have the will to be responsible for one's self." - Stirner
Reply With Quote
  #7  
Old 24th March 2010, 11:06 PM
scott32746 Offline
Registered User
 
Join Date: Jun 2007
Location: Lake Mary, Florida
Age: 50
Posts: 1,088
windows_xp_2003firefox
Re: How to cancel filesystem check on boot?

Hello,
you can

edit /etc/fstab change the last number to 0
or add fastboot to kernel line in grub.conf
The one I would use
# tune2fs -c 50 /dev/sdXX this is going to change the checks to very 50 boots


The forcefsck does just that cause a fsck at reboot
Reply With Quote
  #8  
Old 24th March 2010, 11:31 PM
imploder Offline
Registered User
 
Join Date: Nov 2009
Posts: 11
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

Quote:
Originally Posted by tjvanwyk View Post
Sheesh... so every time you change something to fix the "problem" (and I think somewhere around 30 is the default number of mounts that starts a fsck at boot time) you reboot a bunch of times to see if you fixed the issue? I don't get it.
You probably don't know the trick "touch /forcefsck". This can be done as root and it causes fsck to start on next boot no matter how many mounts remain. I used it so I could do just one reboot and see if I can now stop the check with Ctrl+C. So no bunch of times, just one time. It's quite useful.

I disabled the automatic checks altogether by changing all the numbers in the last column of /etc/fstab to 0. I thought could be set cancellable in Fedora as it was in Mint, but it looks it's somehow broken in Fedora. If nobody knows how to fix this, I'll report it as a bug.
Reply With Quote
  #9  
Old 25th March 2010, 01:20 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

Could be plymouth is taking over the keyboard. Try it booting without the keyword rhgb on the kernel command line and see if it works.
Reply With Quote
  #10  
Old 25th March 2010, 01:52 AM
sidebrnz Online
Registered User
 
Join Date: Oct 2007
Location: Freedonia
Age: 64
Posts: 2,564
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

Why do you shut down every night? Linux is designed to run 24/7 indefinitely. I only reboot for kernel updates and, since there's not been one for F 11 lately, my uptime is currently of Biblical proportions...
__________________
Registered Linux user #470359 and permanently recovered BOFH.

Any advice in this post is worth exactly what you paid for it.
Reply With Quote
  #11  
Old 25th March 2010, 02:34 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,788
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

And if you think the fsck takes too long on a good filesystem....

Just wait until it is really corrupted...

The worst case I ever saw of fsck was on a Cray (90 GB fs with 5 million files)...

over ten hours, with only a few problems corrected.

With no problems (normal shutdown) the boot fsck only took 10-20 minutes.

Just accept that it gets done occasionally. It will save you a LOT of headache
over unknown problems.
Reply With Quote
  #12  
Old 25th March 2010, 06:10 AM
JEO Offline
Registered User
 
Join Date: Jan 2006
Posts: 2,787
linuxfedorafirefox
Re: How to cancel filesystem check on boot?

I was wrong about removing the keyword rhgb. That does not disable plymouth. It just toggles the screen into text mode (as does the ESC key). Pressing ESC during the filesystem check brings back the graphical boot screen again.

yum remove plymouth wants to remove mkinitrd (I was using F11) and gdm. I would say it's so intertwined in the system it's not worth trying to get rid of it.

Last edited by JEO; 25th March 2010 at 06:12 AM.
Reply With Quote
Reply

Tags
boot, fsck

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fedora wont boot "***an error occurred during the filesystem check?" noobusinglinux Using Fedora 1 28th January 2010 01:12 AM
Transaction Check Error: Package kernel-PAEdebug needs 9MB on the /boot filesystem a.fabbro Installation, Upgrades and Live Media 6 25th January 2010 04:52 PM
is it possible to cancel something that tries to load during boot? DennyCrane Using Fedora 3 21st January 2008 01:03 AM


Current GMT-time: 11:30 (Thursday, 31-07-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat