R&D/OS

/etc/fstab 필드의 의미

sunshout 2012. 11. 9. 09:22

¡ fstab 의 용도 : file systemstatic 정보를 표시

 

[root@head1 AA]# cat /etc/fstab

LABEL=/                 /                       ext3    defaults        1 1

LABEL=/boot             /boot                   ext3    defaults        1 2

tmpfs                   /dev/shm                tmpfs   defaults        0 0

devpts                  /dev/pts                devpts  gid=5,mode=620  0 0

sysfs                   /sys                    sysfs   defaults        0 0

proc                    /proc                   proc    defaults        0 0

LABEL=SWAP-xvda2        swap                    swap    defaults        0 0

 

Field

설명

1

 Block specific device 또는 remote file system

2

Mounting point 또는 swap

3

File System type (ext3, ext4, ufs, nfs …)

4

Associated mount options (ro, rw, sw …)

5

Used by the dump command for backup

현재 사용되지 않고 있음 (기본:0)

6

Used by fsck to determine check order at boot time

Root file system : 1

기타 : 2

Fsck를 원하지 않으면 : 0