ハックキットの再確認

LS-WSGL/R1

一部、確認項目は残っているが、 ハックキットのインストール手順が確立できたので、 RamRoot で実行する Step2 をスクリプトにして 再度確認する。

標準ファームに戻す

Maxtor 6L200M0 を2台とも標準ファームに戻す。
15分ほど。略

標準ファームで起動

上記 Maxtor 6L200M0 を2台接続し、標準ファームで起動。

Step1 の実行

標準ファームに root でログインし、 RamRoot モードで起動するよう Step1 のスクリプトを実行する。
root@LS-WSGL678:~# sh /mnt/disk1/hackkit/LS-WSGL_hackkit_step1_0.01.sh
Extracting initrd...
87438+1 records in
87438+1 records out
mounting initrd...
/sbin/hotplug [block]
editing linuxrc...
clearing root's password...
rebuilding initrd.buffalo...
/sbin/hotplug [block]
Image Name:   initrd
Created:      Wed Oct 29 22:00:49 2008
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    5598473 Bytes = 5467.26 kB = 5.34 MB
Load Address: 0x00000000
Entry Point:  0x00000000
root@LS-WSGL678:~#
gzip の時間がかかるので、メッセージをもう少し工夫した方がいいな。

再起動

スクリプトで再起動してもいいが、、、
あまりにも自動化しすぎてもおもしろくない。

telnet してログイン

RamRoot に telnet してログインする。

BUFFALO INC. LinkStation series
LS-WSGL-EM678 login: root


BusyBox v1.1.1 (2008.07.15-06:14+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

#

disk1 のマウント

# mkdir -p /mnt/disk1
# mount /dev/sda6 /mnt/disk1
#

Step2 の実行

先日の手順をスクリプトにして実行
# sh /mnt/disk1/hackkit/LS-WSGL_hackkit_step2_0.01.sh
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/disk2_2 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
mdadm: /dev/md10 has been started with 2 drives.
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/md1 has been started with 2 drives.
mdadm: /dev/md0 has been started with 2 drives.
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
mounting hard drive ...
extracting hackkit archive ...
./
./bin/
./bin/bash
./bin/rbash
	:
	:
./var/mail/
creating jail ...
creating fstab ...
creating miconapl ...
creating usb ...
creating kernelmon ...
creating network_interfaces ...
creating resolv.conf ...
creating hosts ...
creating hostname ...
creating initrd ...
checking /dev/md0 ...
fsck 1.27 (8-Mar-2002)
e2fsck 1.27 (8-Mar-2002)
/dev/md0 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Deleted inode 17 has zero dtime.  Fix? yes

Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
Block bitmap differences:  -(496--4596)
Fix? yes

Free blocks count wrong for group #0 (22678, counted=26779).
Fix? yes

Free blocks count wrong (212720, counted=216821).
Fix? yes

Inode bitmap differences:  -17
Fix? yes

Free inodes count wrong for group #0 (15692, counted=15693).
Fix? yes

Free inodes count wrong (125676, counted=125677).
Fix? yes


/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md0: 19/125696 files (10.5% non-contiguous), 34155/250976 blocks
extracting initrd ...
mounting initrd...
editing linuxrc ...
rebuilding initrd.buffalo ...
gziping initrd ... wait 5 minutes
Image Name:   initrd
Created:      Thu Oct 30 00:12:25 2008
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    5598457 Bytes = 5467.24 kB = 5.34 MB
Load Address: 0x00000000
Entry Point:  0x00000000
#
なんか fsck に引っ掛かったけど。。。

ハックキットの起動

電源 SW を OFF → ON にする。
	:
	:
---- in hackkit linuxrc ---
-- rebuild mdadm.conf for BOOT, ROOTFS --
md: md10 stopped.
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/disk2_2 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
md: bind
md: bind
modprobe: FATAL: Could not load raid1: raid set md10 active with 2 out of 2 mirrors
/lib/modules/2.6md: md1 stopped.
.16.16-arm1/modules.dep: No such file or directory

mdadm: /dev/md10 has been started with 2 drives.
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
md: bind
modprobe: FATAL:raid1: raid set md1 active with 2 out of 2 mirrors
 Could not load md: md0 stopped.
/lib/modules/2.6.16.16-arm1/modules.dep: No such file or directory

mdadm: /dev/md1 has been md: bind
started with 2 dmd: bind
rives.
modprobe: FATAL: Could not load raid1: raid set md0 active with 2 out of 2 mirrors
/lib/modules/2.6.16.16-arm1/modules.dep: No such file or directory

mdadm: /dev/md0 has been started with 2 drives.
-- setup max error counts --
/sys/block/md0/md/maxerr_cnt is setted to -1
/sys/block/md1/md/maxerr_cnt is setted to -1
/sys/block/md10/md/maxerr_cnt is setted to -1
XFS mounting filesystem md1
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 112K
INIT: version 2.86 booting
Activating swap:swapon on /dev/md10
Adding 1003896k swap on /dev/md10.  Priority:-1 extents:1 across:1003896k
.
Setting the system clock..
System Clock set. Local time: Thu Oct 30 00:15:13 JST 2008.
Cleaning up ifupdown....
Loading device-mapper support.
Will now check all file systems.
fsck 1.40-WIP (14-Nov-2006)
Checking all file systems.
Done checking file systems.
A log is being saved in /var/log/fsck/checkfs if that location is writable.
Setting kernel variables...done.
Will now mount local filesystems:EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
XFS mounting filesystem sda6
XFS mounting filesystem sdb6
.
Will now activate swapfile swap:done.
Cleaning /tmp...done.
Cleaning /var/run...done.
Cleaning /var/lock...done.
Setting up networking....
Configuring network interfaces...eth0: link down
done.
Setting console screen modes and fonts.
Initializing random number generator...done.
INIT: Entering runlevel: 2
Starting system log daemon: syslogd.
Starting kernel log daemon: klogd.
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
Starting MTA: exim4.
Starting internet superserver: inetd.
Starting deferred execution scheduler: atdStarting periodic command scheduler: crond.
usbcore: registered new driver usbfs
usbcore: registered new driver hub
ehci_platform ehci_platform.4523: EHCI Platform Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Platform Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 4.0 hackkit ttyS0

hackkit login: BuffaloSwPollingCheck> SW_POWER_ON
立ち上がってきた。
faild はない(ふー)。

エラーらしきエラーといえば、

modprobe: FATAL: Could not load raid1: 
/lib/modules/2.6.16.16-arm1/modules.dep: No such file or directory
ぐらい。
ldconfig と depmod が要るか。
initrd の /linuxrc に追加。すなわち step1 スクリプトの修正要。
すなわち、もう一回インストール。

K-OF に間に合うかなぁ。。。



LinkStation Mini
LS-WSGL
楽天市場
Amazon
Yahoo!ショッピング
Livedoor デパート
Sofmap
TSUKUMO ネットショップ
ムラウチドットコム
ヤマダ電機WEB
パソQ


ハックキットの起動
ハックの記録
LinkStation/玄箱 をハックしよう

インストーラの修正

Copyright (C) 2003-2008 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市