2

Is there a way to disable auto fsck while booting up on Centos 7 when it is XFS file system running on it.

I know in legacy versions, we use touch /forcefsck, tune2fs -c0 -i0 /dev/FILESXX etc to disable fsck on boot/reboot. Any idea about how it to be done in systemd/xfs system?.

dawud
  • 14,918
  • 3
  • 41
  • 61
vjwilson
  • 129
  • 1
  • 6
  • In a harsh way you could symlink `/sbin/xfs_check`, `/sbin/fsck.xfs` or whatever is used to `/bin/true`. – rudimeier Oct 07 '16 at 20:33

1 Answers1

1

You could set the fsck field in /etc/fstab to 0 for the mount(s) you don't want to fsck at boot. You set that in the sixth field of an /etc/fstab entry.

/dev/mapper/centos-root / xfs defaults 0 0

Reference man fstab.

MikeA
  • 362
  • 2
  • 5
wilbo
  • 84
  • 2
  • @MikeA: heroically editing this answer is nice, but it would be fine to make your own answer too. – chicks Oct 07 '16 at 20:54