Announcement

Collapse
No announcement yet.

Disk check at every startup ....

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Disk check at every startup ....

    HI All,

    Now a days whenever i start my machine...I'm getting the below message..

    Your disk dirive is being checked for errors...press c to cancel all the checks...

    Need a help on this...

    Thanks

    #2
    Re: Disk check at every startup ....

    Boot your computer with your Live CD. Open a terminal and issue

    Code:
    sudo e2fsck -pv /dev/sda1
    (assuming /dev/sda1 is your Linux root filesystem -- adjust if needed).

    Then repeat for each Linux partition on your computer (but not the swap partition).

    For future use, you might find a Parted Magic live CD or USB key helpful for such things. With that, you use the partitioning tool and merely right-click and choose "check" on the graphic.

    Comment


      #3
      Re: Disk check at every startup ....

      Can you open a terminal and issue the command
      Code:
      cat /etc/fstab
      and cut and paste the results in your reply.

      Comment


        #4
        Re: Disk check at every startup ....

        Each partition has a default number of times it is mounted before it is 'checked for errors', and this behavior is normal and should not be interrupted when it runs. I'm guessing that the OP is pressing "c to cancel all the checks..." and so, sees the message "whenever i start my machine".

        On ext2/ext3/ext4 file systems, tune2fs can be used to adjust the number of mounts after which the filesystem will be checked by e2fsck.
        Windows no longer obstructs my view.
        Using Kubuntu Linux since March 23, 2007.
        "It is a capital mistake to theorize before one has data." - Sherlock Holmes

        Comment


          #5
          Re: Disk check at every startup ....

          Yes, Snowhog is correct, if you click "c" to cancel the check it will not reset the count and it will check again at the next boot. If you are doing this, then merely allow the check to complete the next time you boot and it won't check again until you reach the number of boots without a recheck. To see what the number of mounts is set to run
          Code:
          sudo dumpe2fs -h /dev/(your boot partition here, usually sda1)
          and look for the lines Mount count: and Maximum mount count:.

          Comment


            #6
            Re: Disk check at every startup ....

            Thank you all for your help on this .... I have allowed the check to complete by itself and the next time it didn't performed the check...

            Moreover can someone please help me in understanding the below output...

            home@myworld:~$ sudo dumpe2fs -h /dev/sda1
            [sudo] password for home:
            dumpe2fs 1.41.14 (22-Dec-2010)

            Filesystem state: clean
            Errors behavior: Continue
            Filesystem created: Mon Sep 5 15:57:37 2011
            Last mount time: Mon Sep 12 15:11:25 2011
            Last write time: Sun Sep 11 03:02:43 2011
            Mount count: 8
            Maximum mount count: 28
            Last checked: Sun Sep 11 03:02:43 2011
            Check interval: 15552000 (6 months)
            Next check after: Fri Mar 9 03:02:43 2012

            Is that like "My system will do a check after 6 months (Mar 9 2012) or it will do a next check after maximum count (28) ..."

            Thanks

            Comment


              #7
              Re: Disk check at every startup ....

              Originally posted by itbala
              Is that like "My system will do a check after 6 months (Mar 9 2012) or it will do a next check after maximum count (28) ..."
              Either (whichever comes first).

              Comment

              Working...
              X