Linux开机自动fsck root

本文介绍了Linux系统中fsck命令用于检查和修复文件系统。fsck可以在启动时自动修复文件系统不一致的问题,其配置可在/etc/default/rcS文件中设置。系统在不同运行级别时,会根据rcN.d目录下的链接文件启动或停止服务。了解如何查看运行级别、切换运行级别,以及使用fsck、df和du等实用工具进行文件系统管理和维护。
摘要由CSDN通过智能技术生成

fsck:file system check

/etc/default/rcS

# Default settings for the scripts in /etc/rcS.d/
#
# For information about these variables see the rcS(5) manual page.
#
# This file belongs to the "initscripts" package.

# automatically repair filesystems with inconsistencies during boot
FSCKFIX=no
~       


/etc/rcS.d/README

The scripts in this directory whose names begin with an 'S' are
executed once when booting the system, even when booting directly into
single user mode.


The scripts are all symbolic links whose targets are located in
/etc/init.d/ .

For more information see /etc/init.d/README.


/etc/init.d/README

/usr/share/doc/debian-policy

/usr/share/doc/sysv-rc directory

 describes how the scripts in this directory work, and how the links in the /etc/rc?.d/ directories
influence system startup/shutdown.


RUNLEVEL

linux系统有多个运行级别,0~6、s,

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值