Category: Experiences, How to..., Installation — UbuntuLinuxHelp @ 8:27 am —

Ever want to boot up your Ubuntu Linux system really quick to look something up? Sure, I think we all do that from time to time. Hate it when you get the forced file system check because you’ve booted up 30 times? I do. ;)

Imagine how I felt in front of a room full of young students, who were attending a small business seminar when this “lengthy” check kept us waiting, while listening to them snigger and giggle. (”Windows doesn’t do this”, “…that’s a cheap OS…”, “Get a real OS”, “…hurry up man…”, “…slooooowwwww…”, “…Linux sucks…”, and so on).

Despite the bad manners of some attendees… ;) The topic I was presenting showed many of the ways that opensource software (including Ubuntu Linux) could help cash strapped business startups save money. Everything was ready to go, but the switch on the power bar had switched off. No big deal, it would be nice to show Ubuntu boot up anyway, that it’s really not some difficult system to use and they can quickly migrate to Linux. I didn’t expect it to do the forced check! I remember thinking the luck that it would have to be at this time, I didn’t really think is was 30 times, oh well… After explaining the benefit of such a check and how it helps to safeguard our PC’s, I finished the successful seminar presentation. But it left me with the reminder that I might want to turn that feature off or better, find an improved solution.

For users who never check their systems manually,spacer_gif Forced File System Check After 30 Boot Ups - How to Improve it. I’d suggest not turning the feature off by configuring longer time periods between a check, rather leave your systems running the way they are. But for those of us who are a bit more Linux savvy or who like playing and tweaking with our systems, sure, let’s do the following…

Improving forced file system check:spacer_gif Forced File System Check After 30 Boot Ups - How to Improve it.

To accomplish this, I decided to use AutoFsck. Why? Because it does not prevent the forced check from running if the file system is flagged as unclean during boot. Otherwise, the forced check will not continue. I also found it interesting to have a solution that would ask first, instead of going ahead and performing the check. I found a post on Ubuntu’s wiki that explained a little bit more:

“It’s really quite simple, every time you shut down, AutoFsck finds information on your disks. Every linux partition has two important number associated with it, one is the number of times it has been mounted, the other is the number of times it is allowed to before being checked. AutoFsck looks at these, and if your drives are due for checking it asks if you want to check them. If you say yes, your drives are checked before your computer shuts down. If you say no,spacer_gif Forced File System Check After 30 Boot Ups - How to Improve it. AutoFsck will ensure that the check will not run next time your computer boots. You will then be prompted again the next time you shut down.” You can read the wiki entry here: AutoFsck ensures that the automatic disk check will no longer inconvenience you by making your boot times very long.

Installation was very simple, I downloaded AutoFsck v3.2 and double clicked the package to begin the installation.spacer_gif Forced File System Check After 30 Boot Ups - How to Improve it.

AutoFsck Download

AutoFsck Deb Installer

The installation of the.deb file is automatic.spacer_gif Forced File System Check After 30 Boot Ups - How to Improve it.

AutoFsck Installed

If you need to configure AutoFsck, it’s very simple. Just select System > Administration > Periodic Disk Checkingspacer_gif Forced File System Check After 30 Boot Ups - How to Improve it.

AutoFsck Configuration

You can learn more about the configuration here: AutoFsck/Doc

A simple tweak that allows much greater control! :) As usual, I hope this post helps some of you.

And finally, to the individual who suggested, “Get a real OS”? I did, it’s called Linux… Smarty pants! :)

There are 9 comment(s) added so far...

#1

Cool, this is just want I need.

Ben McDonald wrote on April 5, 2008 - 4:57 pm
#2

Or just use xfs, reiserfs or jfs. All of them a faster then ext3 and don’t need this checks.

tallman wrote on April 6, 2008 - 1:28 am
#3

@tallman - Yes! Very true! Thanks for the input.
Also… I took a look at your blog, it’s well laid out and very informative. Nice! I especially liked the post about eyeOS. :) http://tallman.ath.cx/eyeos - For those who don’t understand Russian, just use Google translate to read the post - http://www.google.com/language_tools

UbuntuLinuxHelp wrote on April 6, 2008 - 8:03 am
#4

@Ben McDonald - Thank you! Cool :) I’m glad it helps others as well. ;) Have a good weekend.

UbuntuLinuxHelp wrote on April 6, 2008 - 8:14 am
#5

@tallman:

Don’t tell us which filesystem is better. Your statement is quite crap! It depends on the purpose man!

User wrote on April 7, 2008 - 3:07 pm
#6

@User:
tallman didn’t say ‘better’, he said ‘faster’. So, what would you recommend? It’s easy to say something is crap (and makes you look bad). It takes more brains to offer better advice and something of value.Any monkey can say something is crap. Smart people offer better advice not unsupported opinions!

@the blog owner:
Why would you approve that comment from ‘User’, it’s not helpful?

Tara wrote on April 7, 2008 - 3:22 pm
#7

@Tara - Because everyone can have an opinion. Just because I don’t agree with something, does not mean I shouldn’t approve it. And as a side note, I happen to agree with tallman’s idea of trying other file systems. There’s nothing wrong with that. I currently use ext3 - But his comment made me look at other solutions as well. Hopefully “User” can offer more? That would be great!
Be nice peoples. ;) Thanks everyone! :)

UbuntuLinuxHelp wrote on April 7, 2008 - 3:29 pm
#8

Just so you know, the forced fsck during boot situation has changed a bit with hardy.
It now displays an option beneath the ubuntu logo that nicely shows what is happening, as well as providing you with the option of canceling it.

yochai wrote on April 7, 2008 - 4:00 pm
#9

oh come on, did you never read about all those flame wars about filesystems? It depends on the environment what fits best. So I can’t tell you what is faster or better… and I mean its just idiotic to say reiserfs is better than ext3 or whatever. That is my statement :)

User wrote on April 7, 2008 - 5:37 pm
You can leave a response, or trackback from your own site.

Write Your Comment

Comment Guidelines: Basic XHTML is allowed (a href, strong, em, code). All line breaks and paragraphs will be generated automatically.

You should have a name, right? 
Your email address, I promised I won't tell it to anyone. 
If you have a web site or blog, you can type the URL right here. 
This is where you type your comments. 
Remember my information for the next time I visit.