V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
Livid
267.72D
571.5D
V2EX  ›  Linux

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

  •  
  •   Livid ·
    PRO
    · Jun 1, 2012 · 3824 views
    This topic created in 5082 days ago, the information mentioned may be changed or developed.
    /dev/mapper/VolGroup-lv_root / ext4 defaults 1 1
    2 replies    1970-01-01 08:00:00 +08:00
    jjgod
        1
    jjgod  
       Jun 1, 2012
    vixvix
        2
    vixvix  
       Jun 1, 2012
    简单的说,第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. "
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   857 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 22:03 · PVG 06:03 · LAX 15:03 · JFK 18:03
    ♥ Do have faith in what you're doing.