RandomSequence

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, April 1, 2008

Killing `fsck` on boot

Posted on 12:57 PM by Unknown
Being a laptop Linux user, I turn my box off more than the average user (or, more accurately, it hangs coming out of suspend so I have to reboot)... the result is that my laptop decides to `fsck` the drives after so many reboots. This really really sucks because invariably it happens at the least opportune time. I've been raging about this, privately, for quite some time and today finally decided to do something about it. Enter `tune2fs`.

`tune2fs` is a utility that allows you to tune the file system parameters of ext2 and ext3 file-systems. There are two switches of particular import: -c and -i. -c controls how many mounts the volume can go through before having to go through a `fsck`, while -i controls how long between `fsck` intervals (in days, weeks, months, etc.)

From my experience, I know its a bad idea to disable `fsck` altogether on account of the slight yet horrible possibility that you could end-up with file-system corruption. That said, I also don't want it to happen except with the rarest of frequencies. SO, I disabled the mount counter and set the `fsck` interval to 3 months. I figure I can handle a reality in which I have to sit through a full-fledged `fsck` of my disks four times a year. Here's the actual command and its output.

cjsteele@vengence:~$ sudo tune2fs -c -1 -i 3m /dev/sda1
tune2fs 1.40.2 (12-Jul-2007)
Setting maximal mount count to -1
Setting interval between checks to 7776000 second
cjsteele@vengence:~$
Email ThisBlogThis!Share to XShare to Facebook
Posted in geekery | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Ubuntu: WebDAV + DAVfs2 + FUSE == Thunar Goodness
    One of the corner-stones of any *nix utility is that it should do a simple job and do it well. Every piece of software that I can think of ...
  • 110GB+ worth of photos/videos on a microSD memory card #2
    In my previous post, I talked about wanting to write a script to see how far I can squeeze 110GB worth of media (photos and videos). I wrote...
  • Thinkpad Edge E530 won't wake up from sleep
    I recently purchased a Thinkpad Edge E530 laptop from Lenovo. I think it is great value. I ordered it with the default 2GB RAM and bumped it...
  • Youth Chess
    Calling all chess geeks in the Sioux Falls area.  Here's the deal: I have, for the past several years, had siouxfallschess.org registere...
  • Taste of New York
    Today, a couple co-workers and I went to Taste of New York (TNY) for lunch. Its a new pizza joint in down-town Sioux Falls. Ordinarily, su...
  • Volume normalization of audio track in MP4 video files
    I am currently looking at how to "normalize" the volume of various video files without recompression, and documenting my findings ...
  • 110GB+ worth of photos/videos on a microSD memory card #1
    We have a family NAS where we keep all kinds of stuff. Well, actually it's an old laptop that functions as a server, with 3 x 3TB extern...
  • Children - The ultimate test in anger management
    Having just spent two full holiday weeks with my kids, it occurred to me this morning that raising young children is the ultimate test in an...
  • LastPass
    If you haven't switched over to LastPass, you need to, and NOW.  This is the coolest password manager I've ever seen.
  • Ubuntu 8.10 64-bit on an HP nx9420
    I had been delaying loading a 64-bit disto on my nx9420 since I wasn't entirely sure it would be kosher, but yesterday I had some time o...

Categories

  • a2dp
  • administrata
  • android
  • antivirus
  • avi
  • bluetooth
  • chrome
  • coding
  • culture
  • dos
  • eee
  • faith
  • family
  • fastdiet
  • firefox
  • gadgets
  • geeekry
  • geekery
  • hardware
  • homeschooling
  • howto
  • java
  • laptop
  • life and the universe
  • linguistics
  • link2sd
  • linux
  • migration
  • mp4
  • pdf
  • politics
  • printer
  • roomba
  • security
  • soapbox
  • software
  • transcode
  • travel
  • ubuntu
  • video
  • virtualization
  • webapps
  • windows

Blog Archive

  • ►  2013 (11)
    • ►  August (3)
    • ►  July (6)
    • ►  June (2)
  • ►  2012 (25)
    • ►  December (2)
    • ►  November (4)
    • ►  October (4)
    • ►  September (1)
    • ►  June (11)
    • ►  May (3)
  • ►  2011 (11)
    • ►  December (1)
    • ►  September (2)
    • ►  August (1)
    • ►  July (3)
    • ►  April (1)
    • ►  March (1)
    • ►  February (1)
    • ►  January (1)
  • ►  2010 (10)
    • ►  December (2)
    • ►  October (1)
    • ►  September (1)
    • ►  August (2)
    • ►  July (1)
    • ►  May (1)
    • ►  March (1)
    • ►  February (1)
  • ►  2009 (29)
    • ►  December (2)
    • ►  November (2)
    • ►  September (1)
    • ►  August (3)
    • ►  July (2)
    • ►  June (5)
    • ►  May (2)
    • ►  April (2)
    • ►  March (6)
    • ►  February (3)
    • ►  January (1)
  • ▼  2008 (57)
    • ►  November (2)
    • ►  October (4)
    • ►  September (1)
    • ►  July (8)
    • ►  June (3)
    • ►  May (8)
    • ▼  April (12)
      • Ubuntu 8.04 upgrade == not so painless
      • Gmail advanced search features
      • "Yahoo! + Microsoft" or "Developing v. Delivering"
      • Ubuntu: WebDAV + DAVfs2 + FUSE == Thunar Goodness
      • EEE PC: minimizing disk writes by relocating brows...
      • MLB.tv -- no more condensed games!?!?
      • Asus EEE 4G
      • HP Tech Forum 2008, here I come!
      • that blasted Alero blew another motor...and this t...
      • TRENDnet TK-207K 2-Port USB KVM Switch
      • FIERCE is re-born.
      • Killing `fsck` on boot
    • ►  March (6)
    • ►  February (8)
    • ►  January (5)
Powered by Blogger.

About Me

Unknown
View my complete profile