Results 1 to 6 of 6

Thread: How to run a manual file system check?

  1. #1
    Join Date
    Oct 2006
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    How to run a manual file system check?

    Hi;

    Something happened while I was booting my Ubuntu 8.04 box. Now, every time I boot it tells me that a fcsk of my hard drive failed and that I need to run a manual file system check to make that message go away.

    FWIW, I think it would helpful to include direction how to do that with that message.

    Anyway, what do I need to do to make that message go away?

    Thanks in advance

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

  3. #3
    Join Date
    Jan 2007
    Beans
    Hidden!

    Re: How to run a manual file system check?

    From a live CD, run
    Code:
    sudo /sbin/fdisk -l
    You will get a table, with first column "Device" and last column "System". For all devices that have System "Linux" (not "Linux swap" or something else), run the following after replacing <device>
    Code:
    sudo /sbin/e2fsck -c -f <device>
    This will take quite long as I have included the -c option which will check the hard disk for bad blocks. I did this because some thing more than usual is wrong with your system, this is worthwhile for you.

  4. #4
    Join Date
    Jul 2005
    Location
    England
    Beans
    Hidden!

    Re: How to run a manual file system check?

    Or just before you shutdown or restart use
    Code:
    sudo touch /forcefsck
    At the next boot the system will do a check of all system partitions, including home if it is on a separate partition.

  5. #5
    Join Date
    May 2008
    Beans
    18

    Re: How to run a manual file system check?

    Nice tip there ajgreeny, I'll remember that one.

  6. #6
    Join Date
    Oct 2006
    Beans
    191
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: How to run a manual file system check?

    Quote Originally Posted by bingoUV View Post
    From a live CD, run
    Code:
    sudo /sbin/fdisk -l
    You will get a table, with first column "Device" and last column "System". For all devices that have System "Linux" (not "Linux swap" or something else), run the following after replacing <device>
    Code:
    sudo /sbin/e2fsck -c -f <device>
    This will take quite long as I have included the -c option which will check the hard disk for bad blocks. I did this because some thing more than usual is wrong with your system, this is worthwhile for you.
    Thanks much!

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
  •