mini:~# mount /dev/md0 /boot mini:~# mount /dev/md1 on / type xfs (rw,noatime) tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) proc on /proc type proc (rw,noexec,nosuid,nodev) sysfs on /sys type sysfs (rw,noexec,nosuid,nodev) tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev) devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620) /dev/root.old on /initrd type ext2 (rw,nogrpid) /dev/md0 on /boot type ext2 (rw) mini:~#なんで、ext2 ?
/boot の中身を待避してから、ext3 でフォーマットする。
SWAP も再フォーマットが必要だったし、なんか変。
mini:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 213452 4780468 5% / tmpfs 63116 0 63116 0% /lib/init/rw tmpfs 63116 0 63116 0% /dev/shm /dev/root.old 15351 13874 1477 91% /initrd /dev/md0 988064 120780 867284 13% /boot mini:~#容量的には / に待避しても問題なさそう。
mini:~# mkdir /boot.bak mini:~# (cd /boot ; tar cf - . )|(cd /boot.bak; tar xvf -) ./ ./initrd.buffalo tar: ./initrd.buffalo: time stamp 2007-11-01 01:27:15 is 2113.827139 s in the future ./uImage.buffalo tar: ./uImage.buffalo: time stamp 2007-11-01 02:02:10 is 4208.711816 s in the future ./initrd.gz tar: ./initrd.gz: time stamp 2007-11-01 01:25:05 is 1983.399742 s in the future ./conf_save.tgz ./log.tgz ./lost+found/ ./hddrootfs.buffalo.updated.done tar: ./lost+found: time stamp 2007-11-01 02:07:33 is 4531.366302 s in the future tar: ./hddrootfs.buffalo.updated.done: time stamp 2008-07-22 16:24:48 is 22865552.903516 s in the future ./conf_save.tgz.orig ./initrd.buffalo.orig tar: ./initrd.buffalo.orig: time stamp 2008-07-22 16:23:07 is 22865451.142538 s in the future tar: .: time stamp 2007-11-01 01:42:29 is 3013.142038 s in the future mini:~#
mini:~# mkfs.ext3 -j /dev/md0 mke2fs 1.40-WIP (14-Nov-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 125696 inodes, 250976 blocks 12548 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=260046848 8 block groups 32768 blocks per group, 32768 fragments per group 15712 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 21 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. mini:~# mount /mnt/md0 mount: can't find /mnt/md0 in /etc/fstab or /etc/mtab mini:~# mount /boot kjournald starting. Commit interval 5 seconds EXT3 FS on md0, internal journal EXT3-fs: mounted filesystem with ordered data mode. mini:~#
mini:~# (cd /boot.bak/; tar cf - .)|(cd /boot; tar xvf -) ./ ./initrd.buffalo tar: ./initrd.buffalo: time stamp 2007-11-01 01:27:15 is 1861.317609 s in the future ./uImage.buffalo tar: ./uImage.buffalo: time stamp 2007-11-01 02:02:10 is 3956.189982 s in the future ./initrd.gz tar: ./initrd.gz: time stamp 2007-11-01 01:25:05 is 1730.786041 s in the future ./conf_save.tgz ./log.tgz ./lost+found/ ./hddrootfs.buffalo.updated.done tar: ./lost+found: time stamp 2007-11-01 02:07:33 is 4278.762236 s in the future tar: ./hddrootfs.buffalo.updated.done: time stamp 2008-07-22 16:24:48 is 22865300.780167 s in the future ./conf_save.tgz.orig ./initrd.buffalo.orig tar: ./initrd.buffalo.orig: time stamp 2008-07-22 16:23:07 is 22865199.014177 s in the future tar: .: time stamp 2007-11-01 01:42:29 is 2761.013704 s in the future mini:~# ls /boot conf_save.tgz initrd.buffalo log.tgz conf_save.tgz.orig initrd.buffalo.orig lost+found hddrootfs.buffalo.updated.done initrd.gz uImage.buffalo mini:~# rm -fr /boot.bak mini:~#がー。lost+found まで戻してしまった。
mini:~# shutdown -r now起動時に /boot をマウントしてくれぇ!
Debian GNU/Linux 4.0 mini ttyS0 mini login: root Password: Last login: Thu Nov 1 00:49:10 2007 on ttyS0 Linux mini 2.6.16.16-arm1 #316 Tue Jul 22 16:22:33 JST 2008 armv5tejl The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. mini:~# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/md1 4993920 213912 4780008 5% / tmpfs 63116 0 63116 0% /lib/init/rw tmpfs 63116 0 63116 0% /dev/shm /dev/root.old 15351 13874 1477 91% /initrd /dev/md0 988088 138424 799472 15% /boot mini:~# swapon -s Filename Type Size Used Priority /dev/md10 partition 1003896 0 -1 mini:~#Good!
|
← debian 化(15)swap の有効化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ファームウェアアップデータいっぱい |