verhoum (verhoum) wrote,
verhoum
verhoum

Linux Force fsck on the Next Reboot or Boot Sequence

su -c "touch /forcefsck"
reboot

или

su -c "shutdown -rF now"

Для автоматической проверки файловой системы при загрузке
Debian based
su -c "nano /etc/default/rcS"
...
FSCKFIX=yes
...
RedHat based
su -c "nano /etc/sysconfig/autofsck"
...
AUTOFSCK_OPT="$AUTOFSCK_OPT -y"
...

Для FreeBSD
ee /etc/rc.conf
...
fsck_y_enable="YES"
...
Tags: centos, debian, freebsd, fsck, linux
Subscribe

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments