Results 1 to 10 of 10

Thread: fsck option

  1. #1
    Join Date
    Feb 2010
    Beans
    271

    fsck option

    Hi
    often, I suspect one app, 12.04 64bit doesn't boot anymore. Running fsck from 10.04 helps but I wonder how to set it automatically "if disc dirty run fsck" Any option somewhere?
    Thanks

  2. #2
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    3,092
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: fsck option

    Code:
    sudo touch /forcefsck
    Ubuntu Member Always something different. Promoting Ubuntu and System 76 at TUXPC

  3. #3
    Join Date
    Jan 2010
    Location
    Sydney, Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: fsck option

    You can always run fsck manually .
    Code:
    fsck -F file_system_type partition
    Code:
     fsck -F ufs -y /dev/sdb1
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

  4. #4
    Join Date
    Feb 2005
    Location
    Melbourne, Australia
    Beans
    13,510
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: fsck option

    Quote Originally Posted by ahso4271 View Post
    Hi
    often, I suspect one app, 12.04 64bit doesn't boot anymore. Running fsck from 10.04 helps but I wonder how to set it automatically "if disc dirty run fsck" Any option somewhere?
    Thanks
    1. There are threads about a 12.04 bug that does not unmount filesystems cleanly when shutting down - you may be affected by this.
    2. fsck always runs on boot, that is set in the /etc/fstab file for each mount line.
    3. To have fsck automatically fix things during the boot scan, edit the /etc/default/rcS file.
    Regards, David.
    Please use the Forum search and Wiki search for immediate help
    Please mark your thread as Solved when appropriate
    New to technical forums?: How To Ask Questions The Smart Way

  5. #5
    Join Date
    Feb 2010
    Beans
    271

    Re: fsck option

    Quote Originally Posted by dcstar View Post
    To have fsck automatically fix things during the boot scan, edit the /etc/default/rcS file.

    Doesn't work, still hangs. fsck from 10.04 fixed it, so it's not hardware related?
    Maybe in background waiting for input? setting verbose in that file has no effect as well.
    How to show boot messages alike in suse with escape key?

    Sigh...I'll try this now:
    sudo touch /forcefsck
    Last edited by ahso4271; May 15th, 2012 at 11:37 AM.

  6. #6
    Join Date
    Feb 2010
    Beans
    271

    Re: fsck option

    sudo touch /forcefsck

    Thanks, that seems to work. But it takes long and I wonder what's going on. Can I see boot messages, alike in Suse with Esc key?

    Thanks

  7. #7
    Join Date
    Jan 2010
    Location
    Sydney, Australia
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: fsck option

    Quote Originally Posted by ahso4271 View Post
    sudo touch /forcefsck

    Thanks, that seems to work. But it takes long and I wonder what's going on. Can I see boot messages, alike in Suse with Esc key?

    Thanks
    You can see BOOT messages by pressing the esc key , only if grub is not quiet, i.e.: GRUB_CMDLINE_LINUX_DEFAULT="splash" .

    Edit the file /etc/default/grub and set
    Code:
    GRUB_CMDLINE_LINUX_DEFAULT="splash"
    After editing the file, you need to run update-grub.
    Code:
    sudo update-grub
    “Progress is made by lazy men looking for easier ways to do things”
    — Robert A. Heinlein

  8. #8
    Join Date
    Feb 2010
    Beans
    271

    Re: fsck option

    Thanks but ~ every 5 reboot it hangs. fsck from 10.04 helps but I wonder what's going on? Is my system 12.04 broken (not again )? Or how to find out if my disc is going nuts?

    PS: now it mounts 12.04 read only! Is 12.04 that ugly? I've reinstalled all several times but still end up with new bugs....sigh

    What would I do without 10.04....I'd be fuc*
    Last edited by ahso4271; May 18th, 2012 at 12:28 PM.

  9. #9
    Join Date
    Feb 2010
    Beans
    271

    Re: fsck option

    makes it unusable...try mint tomorrow sigh and see if it's my disc.

  10. #10
    Join Date
    Apr 2009
    Location
    UK Lake District
    Beans
    3,092
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: fsck option

    Quote Originally Posted by ahso4271 View Post
    makes it unusable...try mint tomorrow sigh and see if it's my disc.
    Give the RC a go it's great
    http://mint.mirror.root.lu/isos/testing/
    Ubuntu Member Always something different. Promoting Ubuntu and System 76 at TUXPC

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
  •