Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 27

Thread: HowTo: Change disk checking/fsck at boot frequency

  1. #11
    Join Date
    Aug 2007
    Location
    Poland
    Beans
    21
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HowTo: Change disk checking/fsck at boot frequency

    OK, thanks for that. It`s helpfull. But is there a way to skip this check on startup? I man for example that I`m in a hurry and when I boot up ubuntu fsck starts. How to skip this and postpone to another boot? Is it possible or will it be in gutsy?

  2. #12
    Join Date
    Oct 2007
    Location
    Ohio
    Beans
    12
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HowTo: Change disk checking/fsck at boot frequency

    To skip on startup and move to shutdown you can use AutoFsck

    https://wiki.ubuntu.com/AutoFsck

    I haven't used it myself so I can't vouch but from the thread it sounds like it is working for people.

    http://ubuntuforums.org/showthread.p...startup&page=2

  3. #13
    Join Date
    Dec 2004
    Location
    Manchester
    Beans
    2,086
    Distro
    Ubuntu Mate 15.10 Wily Werewolf

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by TearDownAllSigns View Post
    To skip on startup and move to shutdown you can use AutoFsck

    https://wiki.ubuntu.com/AutoFsck
    i am using this. its only run once so far (only had it installed a few weeks).

    seem to work exactly as it says.

  4. #14
    Join Date
    Jul 2007
    Beans
    2

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by Old Pink View Post
    Hi,

    Nearly all Ubuntu users know, that every 30 boots their system performs what is know as an "fsck" to make sure your hard drive has no errors.

    If you go through periods of frequent rebooting, these checks can become annoying.

    To change how often these boot up checks occur, run this command in a terminal:

    Code:
    sudo tune2fs -c 50 /dev/hda1
    The two things in bold can be modified.

    First, the number "50", which chooses how often you want the check performed. 1 makes it scan at every boot, 0 stops scanning altogether, and all other numbers mean the scan will be performed every ** boots, 20 for 20, 30 for 30, 40 for 40 and so on.

    Next, the "hda1" which you simply change to match the location of your hard drive, be it hda1,2,3 or even sda1,2,3.

    Setting the scan to never happen isn't recommended, I'd say between 50-100 is safe.

    - Matt
    Thanks Old Pink, I know this is an old post, but I just found it and it's well explained!

  5. #15
    Join Date
    Nov 2006
    Location
    Hyderabad, India
    Beans
    15
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HowTo: Change disk checking/fsck at boot frequency

    I tried this command and it said that the frequency has been changed. But the fsck is still taking place every time I boot. If I do not press skip, the check stops and 50% and the system prompts me to do a manual fsck.

    Any help?

  6. #16
    Join Date
    May 2006
    Location
    Switzerland
    Beans
    2,541
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by akhil.t View Post
    the check stops and 50% and the system prompts me to do a manual fsck.
    Then I suggest you do as the system tells you because it's obvious you have a corrupted disk and are about to lose your data soon.

  7. #17
    Join Date
    Nov 2006
    Location
    Hyderabad, India
    Beans
    15
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by scorp123 View Post
    Then I suggest you do as the system tells you because it's obvious you have a corrupted disk and are about to lose your data soon.
    Thank you scorp123.
    I did that once. Ended up with a blank screen after almost 2 hrs of check. Had to reinstall the OS.

    I am unable to understand why the command is not having the desired effect.

  8. #18
    Join Date
    Apr 2006
    Location
    Montana
    Beans
    Hidden!
    Distro
    Kubuntu Development Release

    Re: HowTo: Change disk checking/fsck at boot frequency

    You need to run that command from a live CD with the partition Unmounted.

    Code:
    fsck -rfv /dev/sdxy
    where /dev/sdxy = the partition needing to be checked. Sometimes the problem can not be solved automatically in which case you may need to attempt manual recovery.

    If automatic recovery fails, however, you usually have a serious hardware problem and you may need data recovery tools ...

    How to fsck: http://www.linux.com/feature/32026
    There are two mistakes one can make along the road to truth...not going all the way, and not starting.
    --Prince Gautama Siddharta

    #ubuntuforums web interface

  9. #19
    Join Date
    Nov 2006
    Location
    Hyderabad, India
    Beans
    15
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by bodhi.zazen View Post
    You need to run that command from a live CD with the partition Unmounted.

    Code:
    fsck -rfv /dev/sdxy
    where /dev/sdxy = the partition needing to be checked. Sometimes the problem can not be solved automatically in which case you may need to attempt manual recovery.

    If automatic recovery fails, however, you usually have a serious hardware problem and you may need data recovery tools ...

    How to fsck: http://www.linux.com/feature/32026
    Thank you bodhi. I'll try it out.

  10. #20
    Join Date
    Dec 2006
    Location
    webtown, webland
    Beans
    135
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HowTo: Change disk checking/fsck at boot frequency

    Quote Originally Posted by Old Pink View Post
    Hi,

    Nearly all Ubuntu users know, that every 30 boots their system performs what is know as an "fsck" to make sure your hard drive has no errors.

    If you go through periods of frequent rebooting, these checks can become annoying.

    To change how often these boot up checks occur, run this command in a terminal:

    Code:
    sudo tune2fs -c 50 /dev/hda1
    The two things in bold can be modified.

    First, the number "50", which chooses how often you want the check performed. 1 makes it scan at every boot, 0 stops scanning altogether, and all other numbers mean the scan will be performed every ** boots, 20 for 20, 30 for 30, 40 for 40 and so on.

    Next, the "hda1" which you simply change to match the location of your hard drive, be it hda1,2,3 or even sda1,2,3.

    Setting the scan to never happen isn't recommended, I'd say between 50-100 is safe.

    - Matt
    http://manpages.ubuntu.com/ the options are shown with terminal > man fsck OR man tune2fs

    and thread http://ubuntuforums.org/showthread.php?t=937345
    Last edited by directcharitycontribution; October 9th, 2008 at 04:12 PM.

Page 2 of 3 FirstFirst 123 LastLast

Tags for this Thread

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
  •