続きです。
/dev/sda9 を mkfs します。
root@p6090j:~# time mkfs -t ext3 -L sda9pl71 /dev/sda9
mke2fs 1.42.7 (21-Jan-2013)
Filesystem label=sda9pl71
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
8388608 inodes, 33548428 blocks
1677421 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1024 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: 194/1024
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
real 0m48.345s
user 0m0.333s
sys 0m2.240s
へて 展開します。
root@p6090j:~# mount /dev/sda9 mp-sda9/ root@p6090j:~# rmdir mp-sda9/lost+found/ root@p6090j:~# time cp p52-sdb5-3.15.10-cb5xn-01-20141215.tgz mp-sda9/ real 2m6.712s user 0m0.040s sys 0m12.690s root@p6090j:~# cd mp-sda9/ root@p6090j:~/mp-sda9# ls p52-sdb5-3.15.10-cb5xn-01-20141215.tgz root@p6090j:~/mp-sda9# time tar zxvf p52-sdb5-3.15.10-cb5xn-01-20141215.tgz real 8m7.404s user 2m9.867s sys 1m5.870s root@p6090j:~/mp-sda9# df | sed 3,5d Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda7 184849444 27287172 148165792 16% / /dev/sda9 131956756 17310952 107936120 14% /root/mp-sda9 root@p6090j:~/mp-sda9# rm p52-sdb5-3.15.10-cb5xn-01-20141215.tgz root@p6090j:~/mp-sda9# df | sed 3,5d Filesystem 1K-blocks Used Available Use% Mounted on /dev/sda7 184849444 27287172 148165792 16% / /dev/sda9 131956756 12687524 112559548 11% /root/mp-sda9 root@p6090j:~/mp-sda9# cd etc/ root@p6090j:~/mp-sda9/etc# head -2 fstab /dev/sdb2 swap swap defaults 0 0 /dev/sdb5 / ext3 defaults 1 1
ご覧の様に 製作元 の 状態なので
root@p6090j:~/mp-sda9/etc# mv fstab 20141209_sdb5-fstab
root@p6090j:~/mp-sda9/etc# cp /root/backupfiles/fstab .
root@p6090j:~/mp-sda9/etc# cp /root/backupfiles/HOSTNAME .
root@p6090j:~/mp-sda9/etc# cp /root/backupfiles/hosts .
root@p6090j:~/mp-sda9/etc# sed -e '/^#/d' hosts
::1 localhost
127.0.0.1 localhost
192.168.0.71 p71sda9.bcnet.ne.jp p71sda9
root@p6090j:~/mp-sda9/etc# cp /root/backupfiles/mtab .
root@p6090j:~/mp-sda9/etc# cd rc.d
root@p6090j:~/mp-sda9/etc/rc.d# cp /root/backupfiles/rc.inet1.tradnet .
root@p6090j:~/mp-sda9/etc/rc.d# tail -54 rc.inet1.tradnet | head -13
# IF YOU HAVE AN ETHERNET CONNECTION, use these lines below to configure the
# eth0 interface. If you're only using loopback or SLIP, don't include the
# rest of the lines in this file.
# Edit for your setup.
IPADDR="192.168.0.71" # REPLACE with YOUR IP address!
NETMASK="255.255.255.0" # REPLACE with YOUR netmask!
NETWORK="192.168.0.0" # REPLACE with YOUR network address!
BROADCAST="192.168.0.255" # REPLACE with YOUR broadcast address, if you
# have one. If not, leave blank and edit below.
GATEWAY="192.168.0.1" # REPLACE with YOUR gateway address!
へたら 起動させて見ましょう。 /dev/sdf9 として立ち上がる予定です。
root@p6090j:~/mp-sda9/etc/rc.d# cd root@p6090j:~# umount mp-sda9/ root@p6090j:~# shutdown -r now
にゃんたろう 拝!
2014年 12月 17日 水曜日 21:03:55 JST 作成