原因を探るのに、まずは設定ミスではないこと/ 再現することを確認するために、 手順をスクリプト化して再現できるようにする。
[root@LS410D06E ~]# cd /mnt/disk1/share/hackkit/ [root@LS410D06E hackkit]# ls hackkit_config* hackkit_wheezy_130628.tar.gz* mkimage* hackkit_wheezy_130628.sh* hackkit_wheezy_130817.sh* [root@LS410D06E hackkit]# cp hackkit_wheezy_1308{17,25}.sh [root@LS410D06E hackkit]# vi hackkit_wheezy_130825.sh : : [root@LS410D06E hackkit]# diff -u hackkit_wheezy_1308{17,25}.sh --- hackkit_wheezy_130817.sh +++ hackkit_wheezy_130825.sh @@ -763,7 +763,7 @@ fi cd /tmp/root - cat /$MOUNTPOINT/boot/initrd | cpio -idv + cat /$MOUNTPOINT/boot/initrd | $MOUNTPOINT/bin/cpio -idv cat > /tmp/root/init <<EOF #!/bin/sh @@ -775,7 +775,7 @@ exit 0 EOF chmod 755 /tmp/root/init - find . -depth -print | cpio -ov > /$MOUNTPOINT/boot/initrd + find . -depth -print | $MOUNTPOINT/bin/cpio -ov > /$MOUNTPOINT/boot/initrd echo gziping $MOUNTPOINT/boot/initrd ... wait 5 minutes gzip $MOUNTPOINT/boot/initrd || exit @@ -955,9 +955,6 @@ hosts hostname -# / のアンマウント -umount_root - # /boot のマウント mount_boot # /boot のコピー @@ -966,3 +963,6 @@ edit_initrd # /boot のアンマウント umount_boot + +# / のアンマウント +umount_root [root@LS410D06E hackkit]#
[root@LS410D06E hackkit]# date Sun Aug 25 13:56:29 JST 2013 [root@LS410D06E hackkit]#合ってる
[root@LS410D06E hackkit]# cat hackkit_config ADDRESS=192.168.2.57 HOSTNAME=ls410d GATEWAY=192.168.2.96 NAMESERVER=192.168.1.5 [root@LS410D06E hackkit]#済
[root@LS410D06E hackkit]# sh hackkit_wheezy_130825.sh [root@LS410D06E hackkit]# sh hackkit_wheezy_130825.sh PRODUCTID = 0x0000001A MACHINE LS410D formating hard drive ... mke2fs 1.42.4 (12-June-2012) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 62720 inodes, 249995 blocks 12499 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 7840 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Allocating group tables: done Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done meta-data=/dev/sdb2 isize=256 agcount=4, agsize=312448 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=1249792, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Setting up swapspace version 1, size = 1000444 KiB no label, UUID=ae446028-13ad-4a99-9acb-86dce1b5c4b0 meta-data=/dev/sdb4 isize=256 agcount=4, agsize=14824896 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=59299584, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=28954, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 mounting root file system ... extracting hackkit archive ... ./ ./srv/ ./media/ ./bin/ ./bin/mountpoint : : ./usr/lib/libstdc++.so.6.0.16-gdb.py ./usr/lib/libreadline.so.6.2 ./usr/lib ./usr . 52586 blocks gziping /mnt/disk1/debinst/boot/initrd ... wait 5 minutes Image Name: initramfs Created: Sun Aug 25 14:01:04 2013 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 11803624 Bytes = 11526.98 kB = 11.26 MB Load Address: 0x00000000 Entry Point: 0x00000000 unmount /boot ... [root@LS410D06E hackkit]#
まさかとは思ったが、、、
POWER LED が点滅、しばらくして消灯、を繰り返すだけ
さて、こうなるとシリアルコンソールがないとどうしようもない(藁
|
← Debian をインストールする(2) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 実験用 HDD の作成 |
Copyright (C) 2003-2013 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市