Results 1 to 2 of 2

Thread: fsck: how long to check 1tb drive?

  1. #1
    Join Date
    Oct 2007
    Beans
    411

    fsck: how long to check 1tb drive?

    Hi,
    I have a new server build with 4HD's, and during boot fsck was run on one of them saying it hadn't been checked in 235 days.

    The screen says:
    Code:
    keys:Press C to cancel all checks in progress
    It has been going for over an hour and there is no progress indicator...

    just want to confirm it's running normally and not waiting on and input from me.
    bp

  2. #2
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: fsck: how long to check 1tb drive?

    It's probably fine. What filesystem is it? If you're using the default, ext4, or its immediate predecessor ext3, they use "journaling" to speed up checking. If it is an NTFS file system, I'd look at it from Windows just to be on the safe side.

    If you'd prefer to watch it yourself, you can cancel the process and reboot. Pick the "recovery mode" entry from the GRUB menu at boot. (If you don't see a menu, hold down the Shift key while booting.) Pick "root shell" from the menu and, at the "#" prompt, run the command "fsck /dev/XXXX" replacing XXXX with the appropriate partition like /dev/sda1 or /dev/sdb3. To see more details, run "fsck -v /dev/XXXX" to get "(v)erbose" results.

    If this is not the boot drive, you can check it from a terminal without being in recovery mode. Just make sure to unmount the drive first:

    Code:
    cd /
    sudo umount /dev/sdc1
    sudo fsck -v /dev/sdc1
    If you cannot umount the drive because you get an "in use" error, you can use the lsof command to find which program(s) are accessing the drive. If the drive is mounted as, say, /media/videos, then run

    Code:
    sudo lsof | grep /media/videos
    to see what applications are using it, then shut them down and try checking again.
    Last edited by SeijiSensei; January 23rd, 2013 at 07:33 PM.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

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
  •