Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. run fsck manually...AGAIN....

run fsck manually...AGAIN....

Scheduled Pinned Locked Moved The Lounge
helpquestionlinuxagentic-aisales
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    If the action , or no action as in this case, speaks louder then marketing superlatives / words... My fantastic, best-est in its class Linux OS periodically and automatically runs "fsck" and "fixes" faulty file(s) on boot... Then with same consistency - it asks for "fsck" to be run AGAIN , manually... It then asks if I really want the faults to get fixed...each and EVERY problem detected ! I am just curios why this has been going on for last four or five "releases"... why "fsck" does not do the job in FIRST , automatic , run... what is the "coder" reasoning for asking me to run the manual "fsck" AND NOT wanting to get the problem fixed?? AHA answering (NO) to questions posted...?? perhaps asking ONCE (yes, fix it all) and get it all fixed is naive..on my part... however, if "automatic fsck " does not fix the problem - how does "manual fsck" fixes it , later ...? PS plebe do not bother to reply if the answer / comment is "... rant ,,, who cares ..."

    K 1 Reply Last reply
    0
    • L Lost User

      If the action , or no action as in this case, speaks louder then marketing superlatives / words... My fantastic, best-est in its class Linux OS periodically and automatically runs "fsck" and "fixes" faulty file(s) on boot... Then with same consistency - it asks for "fsck" to be run AGAIN , manually... It then asks if I really want the faults to get fixed...each and EVERY problem detected ! I am just curios why this has been going on for last four or five "releases"... why "fsck" does not do the job in FIRST , automatic , run... what is the "coder" reasoning for asking me to run the manual "fsck" AND NOT wanting to get the problem fixed?? AHA answering (NO) to questions posted...?? perhaps asking ONCE (yes, fix it all) and get it all fixed is naive..on my part... however, if "automatic fsck " does not fix the problem - how does "manual fsck" fixes it , later ...? PS plebe do not bother to reply if the answer / comment is "... rant ,,, who cares ..."

      K Offline
      K Offline
      k5054
      wrote on last edited by
      #2

      Having to fsck continually is a symptom of either failing hardware (disk or disk controller on MoBO), or poor admin practices. Older file systems (eg. ext[2-4]) do have filesystem attributes that tell the OS to run fsck on reboot every n mounts or if fsck has not been run for n days. If you are using and ext based file system, then you can check and modify those values with dumpe2fs and tune2fs. You're going to hate me for saying so, but check the man pages for those commands to see how they work. I'm don't know if xfs or btrfs have similar attributes. You can check what filesystems are in use by examining /etc/fstab e.g:

      # cat /etc/fstab
      LABEL=/ / ext3 defaults 1 1
      none /dev/pts devpts gid=5,mode=620 0 0
      none /proc proc defaults 0 0
      none /dev/shm tmpfs defaults 0 0
      LABEL=/u /u ext3 defaults 1 2
      /dev/sda2 swap swap defaults 0 0

      If you have xfs or btrfs or other file system, then google for the filesystem type and maintenance. That should hopefully lead you to the correct incantations to manage the fs. I have many Linux systems under my care. My main day-to-day system is currently running Fedora-37, but I help manage various boxes all over the place running various CentOS flavors, and Raspberry PIs running Rasbian. There are only 2 cases that an fsck needs to be run manually. 1) there's disk corruption, likely due to hardware malfunction. 2) an improper shutdown - normally due to a power outage. If you're continually having to run fsck, then its almost certainly due to one of those 2 issues. If you do a normal shutdown (eg either poweroff or shutdown -h as root) and wait for the system to power itself off, then you're almost certainly looking at failing hardware. See what smartctl (again RTFM!) can tell you, and try running some of the disk self tests. Good luck!

      Keep Calm and Carry On

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups