Filesystem features の変更


Filesystem features を変更する

バックアップ

いきなり変更して起動しなくなっても困るので、 まずは Link Station の HDD の hda1 ( / ) のバックアップを取る
Link Station の HDD を実験機に接続し、
intel# cd /home/ls
intel# mount /dev/hdc1 root
intel# tar zcvf LinkStation_Vine-2.6_040115.tar.gz root
intel# umount root

Filesystem features の変更

とりあえず、/dev/hdc1 ( / ) だけを変更する。
hdc3 をバックアップできるだけの容量はないし、 hdc3 なら、Link Station に接続した状態でも変更できるので。
intel# tune2fs -O ^dir_index /dev/hdc1
intel# tune2fs -O ^needs_recovery /dev/hdc1
intel# fsck -fD /dev/hdc1
fsck 1.29 (24-Sep-2002)
e2fsck 1.29 (24-Sep-2002)
Pass 1: Checking inodes, blocks, and sizes
Inode 62045 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 94330 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 94667 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 94668 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 124012 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 155141 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 155524 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 201880 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 232572 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Inode 234293 has INDEX_FL flag set on filesystem without htree support.
Clear HTree index? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 3A: Optimizing directories
Optimizing directories:  2 11 14 27 41 42 43 44 45 519 530 532 537
15489 15490 15491 15492 15493 15494 15495 15496 15498 15508 (略)
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/hdc1: ***** FILE SYSTEM WAS MODIFIED *****
/dev/hdc1: 28351/263296 files (0.7% non-contiguous), 125272/526120
blocks
intel# tune2fs -l /dev/hdc1
tune2fs 1.29 (24-Sep-2002)
Filesystem volume name:   
Last mounted on:          
Filesystem UUID:          a7a1fd3c-535a-43e1-82ea-e713d8bb72e2
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal filetype sparse_super
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              263296
Block count:              526120
Reserved block count:     26306
Free blocks:              400857
Free inodes:              234953
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         15488
Inode blocks per group:   484
Last mount time:          Thu Jan 15 23:53:48 2004
Last write time:          Fri Jan 16 00:02:09 2004
Mount count:              0
Maximum mount count:      23
Last checked:             Thu Jan 15 23:43:46 2004
Check interval:           15552000 (6 months)
Next check after:         Tue Jul 13 23:43:46 2004
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Journal UUID:             
Journal inode:            8
Journal device:           0x0000
First orphan inode:       0
HDD を Link Station に戻して Link Station を起動する。
無事起動する。ホッ
tune2fs を実行
linkstationVine# tune2fs -l /dev/hda1
tune2fs 1.29 (24-Sep-2002)
Filesystem volume name:   
Last mounted on:          
Filesystem UUID:          a7a1fd3c-535a-43e1-82ea-e713d8bb72e2
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal filetype needs_recovery sparse_super
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              263296
Block count:              526120
Reserved block count:     26306
Free blocks:              400846
Free inodes:              234924
First block:              0
Block size:               4096
Fragment size:            4096
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         15488
Inode blocks per group:   484
Last mount time:          Thu Jan 15 23:53:48 2004
Last write time:          Thu Jan 15 23:53:48 2004
Mount count:              1
Maximum mount count:      23
Last checked:             Thu Jan 15 23:43:46 2004
Check interval:           15552000 (6 months)
Next check after:         Tue Jul 13 23:43:46 2004
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Journal UUID:             
Journal inode:            8
Journal device:           0x0000
First orphan inode:       0
あれ?needs_recovery が付いている。
実験機上では付いていないことを確認したのに。謎。
とりあえず、様子を見ることにする
 BUFFALO Link Station をハックしよう  → 1.30 と 1.31 との違い
Copyright (C) 2004 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp
山下康成京都府向日市