V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Livid
V2EX  ›  Linux

/etc/fstab 中第 5 和第 6 列的那两个数字是什么意思呢?

  •  
  •   Livid · 2012-06-01 05:44:29 +08:00 · 3210 次点击
    这是一个创建于 4559 天前的主题,其中的信息可能已经有所发展或是发生改变。
    /dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
    2 条回复    1970-01-01 08:00:00 +08:00
    jjgod
        1
    jjgod  
       2012-06-01 05:52:19 +08:00
    vixvix
        2
    vixvix  
       2012-06-01 05:55:24 +08:00
    简单的说,第5个参数说该盘需要用dump备份,第6个参数说fsck检查磁盘的时候是最优先的级别(数字越小级别越高,但0为忽略)。

    http://www.tuxfiles.org/linuxhelp/fstab.html

    < 5th and 6th columns: Dump and fsck options >

    Dump and, uh, what options? Well, dump is a backup utility and fsck is a filesystem check utility. I won't discuss them in great length here (they would both need their own tuXfile), but I'll mention them, because otherwise you'd spend the rest of the day wondering what on God's green Earth do these things mean.

    The 5th column in /etc/fstab is the dump option. Dump checks it and uses the number to decide if a filesystem should be backed up. If it's zero, dump will ignore that filesystem. If you take a look at the example fstab, you'll notice that the 5th column is zero in most cases.
    The 6th column is a fsck option. fsck looks at the number in the 6th column to determine in which order the filesystems should be checked. If it's zero, fsck won't check the filesystem. "
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2408 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 02:01 · PVG 10:01 · LAX 18:01 · JFK 21:01
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.