본문 바로가기

개발/Server Side

파일시스템 정보 확인 및 변경 - tune2fs

1. 파일시스템 정보 확인
yklee@tyolee:~$ sudo tune2fs -l /dev/sda2
tune2fs 1.41.9 (22-Aug-2009)
tune2fs: Attempt to read block from filesystem resulted in short read while trying to open /dev/sda2
Couldn't find valid filesystem superblock.
yklee@tyolee:~$ sudo tune2fs -l /dev/sda5
tune2fs 1.41.9 (22-Aug-2009)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          89af3036-d821-4c95-ba78-399961aa6e3c
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      filetype sparse_super
Default mount options:    (none)
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              124496
Block count:              248976
Reserved block count:     12448
Free blocks:              192383
Free inodes:              124320
First block:              1
Block size:               1024
Fragment size:            1024
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         4016
Inode blocks per group:   502
Last mount time:          Wed Feb  3 10:11:56 2010
Last write time:          Wed Feb  3 10:12:00 2010
Mount count:              2
Maximum mount count:      30
Last checked:             Fri Jan 22 09:22:31 2010
Check interval:           0 (<none>)
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128



2. 파일시스템 정보 변경 (퍼옴)
# tune2fs -l /dev/sda1 | grep volume
Filesystem volume name: /home/database
# tune2fs -L database-home /dev/emcpowera1
tune2fs 1.35 (28-Feb-2004)
# tune2fs -l /dev/sda1 | grep volume 
Filesystem volume name: database-home