Fsck (presumably e2fsck) returns exit code 127 on an ext3 file sy stem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fsck (Red Hat Enterprise Linux AS 2.1) returns an exit code 127 on an ext3
file system when run from a shellscript started by cron. Here is the
pertinent part of the script:
...
fsck -p /dev/${BK_SLICE} 1>/dev/null 2>&1
STATUS=$?
if [ ${STATUS} -ne "0" ]
   then
      echo "${MIR_PID}: file system check of /dev/${BK_SLICE} failed, status
= ${STATUS}" >>${LOG}
...

This is the message that is logged:
25227: file system check of /dev/sdb3 failed, status = 127

According to the man page for fsck, the exit code should be "the sum of the
following conditions":
            0    - No errors
            1    - File system errors corrected
            2    - System should be rebooted
            4    - File system errors left uncorrected
            8    - Operational error
            16   - Usage or syntax error
            128  - Shared library error

The 127 seems illogical to me because there is nothing in the list for the
32 and 64 bits and it is unlikely that *all* of these errors should occur on
a single fsck.

When this happens, I re-run the shellscript manually and the fsck succeeds
with no problems.

Any ideas would be appreciated.

greg.steele@xxxxxxx



_______________________________________________

Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux