
On 2017-02-26 16:37, Anton Aylward wrote:
On 26/02/17 09:52 AM, Carlos E. R. wrote:
The first thing I do with any filesystem that I suspect is broken, is fsck it. Always.
I was taught that too, so far back in antiquity I suspect that the machines I was using then have long been recycled for scrap.
Yes, it is ancient usage. Even on msdos.
On some, like XFS, that program does nothing and tells me what other program to use,
BTDT. It told me to get an updated version of FSCK :-)
Now *THAT* is the kind of smarts that I like!
It is a simple script. Get an updated version is not there: cer@minas-tirith:~> cat /usr/sbin/fsck.xfs #!/bin/sh -f # # Copyright (c) 2006 Silicon Graphics, Inc. All Rights Reserved. # AUTO=false while getopts ":aApy" c do case $c in a|A|p|y) AUTO=true;; esac done eval DEV=\${$#} if [ ! -e $DEV ]; then echo "$0: $DEV does not exist" exit 8 fi if $AUTO; then echo "$0: XFS file system." else echo "If you wish to check the consistency of an XFS filesystem or" echo "repair a damaged filesystem, see xfs_repair(8)." fi exit 0 cer@minas-tirith:~> -- Cheers / Saludos, Carlos E. R. (from 42.2 x86_64 "Malachite" (Minas Tirith))