본문 바로가기
리눅스

mkfs -t ext3 -b 1024 /dev/sdc1

by 혜룐 2015. 11. 10.
리눅스 블럭사이즈 조정
해당 영역을 마운트 해제후 진행
root@N01:/># df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext3 124G 2.7G 115G 3% /
/dev/sdb1 ext3 133G 188M 126G 1% /da1
/dev/sdc1 ext3 133G 188M 126G 1% /da2
/dev/sda1 ext3 289M 16M 259M 6% /boot
tmpfs tmpfs 4.0G 0 4.0G 0% /dev/shm
root@N01:/># mkfs -t ext3 -b 1024 /dev/sdc1
mke2fs 1.39 (29-May-2006)
/dev/sdc1 is mounted; will not make a filesystem here!
root@N1:/># umount /dev/sdb1
root@N1:/># mkfs -t ext3 -b 1024 /dev/sdb1
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
17922048 inodes, 143372060 blocks
7168603 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=210501632
17502 block groups
8192 blocks per group, 8192 fragments per group
1024 inodes per group
Superblock backups stored on blocks: 
8193, 24577, 40961, 57345, 73729, 204801, 221185, 401409, 663553, 
1024001, 1990657, 2809857, 5120001, 5971969, 17915905, 19668993, 
25600001, 53747713, 128000001, 137682945
Writing inode tables: done 
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 26 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
* 블럭사이즈 조정 후
root@N01:/># tune2fs -l /dev/sdb1
tune2fs 1.39 (29-May-2006)
Filesystem volume name:<none>
Last mounted on:<not available>
Filesystem UUID: 224dd9e5-c3aa-4943-a95a-53aa8aa47d19
Filesystem magic number: 0xEF53
Filesystem revision #: 1 (dynamic)
Filesystem features: has_journal resize_inode dir_index filetype sparse_super
Default mount options: (none)
Filesystem state: clean
Errors behavior: Continue
Filesystem OS type: Linux
Inode count: 17922048
Block count: 143372060
Reserved block count: 7168603
Free blocks: 141047003
Free inodes: 17922037
First block: 1
Block size: 1024
Fragment size: 1024
Reserved GDT blocks: 256
Blocks per group: 8192
Fragments per group: 8192
Inodes per group: 1024
Inode blocks per group: 128
Filesystem created: Mon Mar 22 15:23:23 2010
Last mount time: n/a
Last write time: Mon Mar 22 15:24:11 2010
Mount count: 0
Maximum mount count: 26
Last checked: Mon Mar 22 15:23:23 2010
Check interval: 15552000 (6 months)
Next check after: Sat Sep 18 15:23:23 2010
Reserved blocks uid: 0 (user root)
Reserved blocks gid: 0 (group root)
First inode: 11
Inode size: 128
Journal inode: 8
Default directory hash: tea
Directory Hash Seed: 5b346a32-735a-40cd-833a-635dc9316950
Journal backup: inode blocks
* 변경 확인 후 마운트
root@N01:/># mount /dev/sdb1 /data1
root@N01:/># df -Th
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext3 124G 2.7G 115G 3% /
/dev/sdc1 ext3 133G 188M 126G 1% /data2
/dev/sda1 ext3 289M 16M 259M 6% /boot
tmpfs tmpfs 4.0G 0 4.0G 0% /dev/shm
/dev/sdb1 ext3 135G 38M 128G 1% /data1
* 언마운트가 안될때는 해당 영역을 어떤 사용자나 프로그램이 사용해서 ..
fuser 로 -cu /영역 으로 사용하고 있는 유저나 데몬의 프로세스가 열거된다. 그 ㅇㄹ거된 pid를 보고 어떤 데몬이나 유저가 사용하는지 확인 할 수 있고,
fuser -ck /영역으로 kill 한다.


'리눅스' 카테고리의 다른 글

yum clean all  (0) 2015.11.10
yum list | grep lrzsz  (0) 2015.11.10
1024KB 4096KB  (0) 2015.11.10
awk -F "[:]" '{print $1}' | sort -u , more /d/d/n/p/e.log | awk '$3 &gt;200 ' , more  (0) 2015.11.10
tar -cjvf test.tar.bz2 *.txt  (0) 2015.11.10