Results 1 to 5 of 5

Thread: How to execute the fsck command?

  1. #1
    Join Date
    Aug 2012
    Location
    Ontario, Canada
    Beans
    51
    Distro
    Ubuntu 13.04 Raring Ringtail

    Question How to execute the fsck command?

    Alrighty, I want to do a check up on Ubuntu. It's ext4 and the file system is mounted at /dev/sda4. I was goind to do the whole touch /forcefsck but it's a dual boot windows and ubuntu. What command do I use?

  2. #2
    Join Date
    Jan 2007
    Beans
    3,202

    Re: How to execute the fsck command?

    You don't fsck the running system -- the partition has to be unmounted. Easiest method, IMHO, is to make a Parted Magic or GParted Live USB stick or CD, boot that, use the Partition Manager GUI to browse to the hdd and partition that you want, right-click the graphic and choose "check".

    As far as the command line utility, take a look at
    Code:
    man e2fsck
    Intel Core i7-950 / Asus P6X58D-E / Nvidia GTX480 / siduction 64-bit on OCZ Revodrive SSD / KDE4.10.2/ Kubuntu 13.04

  3. #3
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: How to execute the fsck command?

    As dabl says it has to be unmounted.

    #From liveCD so everything is unmounted,swap off if necessary, change example shown with partition sdb1 to your partition(s)
    #e2fsck is used to check the ext2/ext3/ext4 family of file systems. -p trys fixes where response not required
    sudo e2fsck -C0 -p -f -v /dev/sdb1
    #if errors: -y auto answers yes for fixes needing response see man e2fsck
    sudo e2fsck -f -y -v /dev/sdb1
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  4. #4
    Join Date
    Jul 2007
    Location
    Magic City of the Plains
    Beans
    Hidden!
    Distro
    Xubuntu 16.10 Yakkety Yak

    Re: How to execute the fsck command?

    Quote Originally Posted by Sly14Cat View Post
    Alrighty, I want to do a check up on Ubuntu. It's ext4 and the file system is mounted at /dev/sda4. I was goind to do the whole touch /forcefsck but it's a dual boot windows and ubuntu. What command do I use?
    You can use
    Code:
    sudo touch /forcefsck
    which will cause fsck to be run at next boot up. It won't touch Windows.

  5. #5
    Join Date
    Aug 2012
    Location
    Ontario, Canada
    Beans
    51
    Distro
    Ubuntu 13.04 Raring Ringtail

    Re: How to execute the fsck command?

    Forgot to mention I used a live cd. Thanks guys

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
  •