Results 1 to 10 of 10

Thread: Good or bad idea: FSCK done at shutdown, instead of startup

  1. #1
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    Good or bad idea: FSCK done at shutdown, instead of startup

    I hate sitting through file system checks every 30th boot, and hitting escape just postpones it one more boot; you have to do it eventually. What if, instead of postponing it to the next boot, it's just postponed to the current sessions shutdown sequence? It'd take place even sooner than it would if you hit escape, and you can just walk away from your PC to let it do the check and not have anything to wait on. In the interest of making something like this eco-friendly, the PC would proceed to shutdown, even in the event of finding an error, presenting any error messages on screen upon next reboot.

    Good idea?

  2. #2
    Join Date
    Dec 2007
    Beans
    1,042
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    FSCK is usually only needed if the previous shutdown wasn't a clean one, and if there actually are any errors, it's advisable to perform the scan before you write anything to the filesystem. So if you hard-reset or something, the scan would get skipped until you shut down, by which time you might have tried to save something to the filesystem and made the problem worse.
    He that would make his own liberty secure must guard even his enemy from oppression; for if he violates this duty he establishes a precedent that will reach to himself.
    -Thomas Paine

  3. #3
    Join Date
    Jun 2005
    Beans
    6,115

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Maybe, but I can see how it could cause issues.
    Its easier to scan filesystems when the kernel is starting up then shutting down, also I find it easier to get out of a fsck in linux then on windows.
    HOME BUILT SYSTEM! http://brainstorm.ubuntu.com/idea/22804/ Please vote up!
    remember kiddies: sudo rm -rf= BAD!, if someone tells you to do this, please ignore them unless YOU WANT YOUR SYSTEM WIPED

  4. #4
    Join Date
    Mar 2006
    Location
    Williams Lake
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Now that ext4 is available, a fsck of my 250Gb drive takes less than 10 seconds. My normal boot time is 21-22 seconds, fsck ran this morning and the boot time went up to 29 seconds. It was done before I got back with my cup of coffee.

    Jim

  5. #5
    Join Date
    Sep 2007
    Location
    over there
    Beans
    2,521
    Distro
    Ubuntu

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Personally, I like the idea of the test being done on shutdown instead of boot. But I have no idea what the technical realities of such a change might be.
    "All people are scum. No matter what they look like." ~ Spider Jerusalem, Transmetropolitan #4



  6. #6
    Join Date
    Sep 2008
    Location
    Britain
    Beans
    119

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Quote Originally Posted by cariboo907 View Post
    Now that ext4 is available, a fsck of my 250Gb drive takes less than 10 seconds. My normal boot time is 21-22 seconds, fsck ran this morning and the boot time went up to 29 seconds. It was done before I got back with my cup of coffee.

    Jim
    I see you like the boot-speed of 9.04a? It is rather impressive, but how did they do it? Does anyone here know?

  7. #7
    Join Date
    Feb 2007
    Location
    Topeka, Kansas
    Beans
    2,317
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Well I'm not going to just be able to convert over to ext4 from ext3 can I? Won't I have to wipe my install and start fresh?

  8. #8
    Join Date
    Nov 2006
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Well, your options are:
    • Run fsck manually, at your own leisure.
    • Run ext4.
      • Yes, you can convert ext3 to ext4.
      • However, ext4 is still a bit unstable, so I would recommend waiting on that.
    • Cancel the fsck by hitting ESC.
    Want a quality CD ripping program for Ubuntu? Check out my how-to: Installing Rubyripper on Ubuntu!

  9. #9
    Join Date
    Jul 2008
    Location
    4newOtherOSTalk4umCsig
    Beans
    555

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    Quote Originally Posted by ghindo View Post
    [*]However, ext4 is still a bit unstable, so I would recommend waiting on that.
    [/LIST]
    It isn't a problem with Ext4 so much as it is with apps that are not written with delayed allocation in mind.
    PhenomII 720x4@3.65gHz w/Zalman cooler,PNY Nvidia GTX260, 4GB, Arch64

    14 is NOT a random number!!!!!
    Arch Linux | new Other OS Talk forum

  10. #10
    Join Date
    Aug 2006
    Location
    Florianopolis, Brazil
    Beans
    1,354
    Distro
    Ubuntu Development Release

    Re: Good or bad idea: FSCK done at shutdown, instead of startup

    The basic intent is good, the implementation however is wrong. You assume you need the delay, putting it before or after doesn't matter. Look at the problem differently, how can we avoid having a mandatory pre or post mount fsck to ensure data consistency.

    The answer is two-fold.

    1) Implement online fsck, FreeBSD has had this since FBSD 5.0. You can fsck a mounted partition on a running system. The delay becomes background time during runtime.

    2) Implement additional data safety and early warning systems. DeviceKit-disks is going to do this for us, letting SMART and other means of monitoring warn us of problems before they hit and adapt to fault scenerios.

    That is a lot more work, but it is one solution that would solve the problem at hand and many other.
    On strike during the Oneiric cycle due to ungratefulness of Ubuntu.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •