遺品

LS-CHL

1.20 へアップデートする途中に死んだ LS-CHL の HDD の中身を見る。

USB で LS-XHL に接続

Jul 10 05:52:03 brick kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2
Jul 10 05:52:03 brick kernel: usb 1-1: configuration #1 chosen from 1 choice
Jul 10 05:52:03 brick kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Jul 10 05:52:08 brick kernel: scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: [sdb] 398297088 512-byte hardware sectors (203928 MB)
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: [sdb] Write Protect is off
Jul 10 05:52:08 brick kernel: sdb: sdb1 sdb2 sdb3 sdb4 sdb5 sdb6
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Jul 10 05:52:08 brick kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
時計狂ってる。。。。

/ のマウント

brick:~# mkdir /tmp/root
brick:~# mount /dev/sdb2 /tmp/root
brick:~#

バージョンの確認

/etc/linkstation_release を見る。
brick:~# cat /tmp/root/etc/linkstation_release
VERSION=1.20
SUBVERSION=HDD 0.87
PRODUCTID=0x00000000
BUILDDATE=2009/07/14 16:28:27
brick:~#
1.20 になっているようだ。

せっかくもう起動するだけになっていたのに、、、かわいそう。

uImage.buffalo, initrd.buffalo の吸い上げ

もう使う本体がないのだが、、、遺品を吸い上げておく

まずは、/boot のマウント

brick:~# mount /dev/sdb1 /tmp/root/boot/
brick:~#
ftp で tftp サーバである LS-GL に転送しておく
brick:~# cd !$
cd /tmp/root/boot/
brick:/tmp/root/boot# ftp ude.yamasita.jp
Connected to ude.yamasita.jp.
220 ude FTP server (GNU inetutils 1.5) ready.
Name (ude.yamasita.jp:yasunari):
331 Password required for yasunari.
Password:
230- Linux ude 2.6.16.16-arm1 #37 Tue May 20 10:01:57 JST 2008 armv5tejl
230-
230- The programs included with the Debian GNU/Linux system are free software;
230- the exact distribution terms for each program are described in the
230- individual files in /usr/share/doc/*/copyright.
230-
230- Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
230- permitted by applicable law.
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd /srv
250 CWD command successful.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 4
drwxr-xr-x  3 root   23 Oct  3 07:52 nfs
drwxrwsr-x 19 root 4096 Oct 18 23:21 tftp
226 Transfer complete.
ftp> cd tftp
250 CWD command successful.
ftp> ls
200 PORT command sucessful.
150 Opening ASCII mode data connection for '/bin/ls'.
total 10776
drwxr-s--- 2 root      48 Mar 22  2009 HS-DHGL_1.20
drwxr-s--- 2 root      48 May 27 21:32 LS-CHL_1.10
drwxr-s--- 2 root      48 Oct  4 22:36 LS-CHL_1.21
drwxrwxr-x 2 root      48 Jan 24  2009 LS-CL+HackKit
drwxr-sr-x 2 root      48 Mar 23  2009 LS-CL_1.07
drwxrwsr-x 2 root      48 Mar 20  2009 LS-GL_1.15
drwxr-sr-x 2 root      48 Mar 23  2009 LS-HGL_1.07b
drwxr-sr-x 2 root      48 Mar 23  2009 LS-LGL_2.01
drwxrwxr-x 2 root      48 Feb 20  2009 LS-QL_1.05+telnet
drwxr-s--- 2 root      48 Mar 27  2009 LS-QL_1.07b
drwxr-s--- 2 root      48 Jun  6 09:58 LS-QL_1.10b
drwxr-sr-x 2 root      48 Mar 25  2009 LS-WSGL_1.06
drwxrwxr-x 2 root      48 Jan 24  2009 LS-XHL_1.02
drwxrwxr-x 2 root      64 Jan 24  2009 LS-XHL_1.02+telnet
drwxr-s--- 2 root      48 Mar 27  2009 LS-XHL_1.04b
drwxr-s--- 2 root      48 May 22 22:22 LS-XHL_1.10
drwxr-sr-x 2 root      54 Oct  4 22:47 SheevaPlug_1.2
-rw-r--r-- 2 root 8944729 May 27 21:32 initrd.buffalo
-rw-r--r-- 2 root 2088760 May 27 21:32 uImage.buffalo
226 Transfer complete.
ftp> mkdir LS-CHL_1.20
257 (unknown absolute name) new directory created.
ftp> cd LS-CHL_1.20
250 CWD command successful.
ftp> !ls
conf_save.tgz                   log.tgz             uImage.buffalo
hddrootfs.buffalo.updated.done  u-boot.buffalo
initrd.buffalo                  u-boot.buffalo.org
ftp> bin
200 Type set to I.
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> put uImage.buffalo
local: uImage.buffalo remote: uImage.buffalo
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'uImage.buffalo'.
#############################################################(略)
226 Transfer complete.
2085680 bytes sent in 0.15 secs (13882.1 kB/s)
ftp> put initrd.buffalo
local: initrd.buffalo remote: initrd.buffalo
200 PORT command sucessful.
150 Opening BINARY mode data connection for 'initrd.buffalo'.
#############################################################(略)
226 Transfer complete.
8950223 bytes sent in 0.57 secs (15295.5 kB/s)
ftp> bye
221 Goodbye.
brick:/tmp/root/boot#

さようなら。短い間だったがありがとう。涙



LS-CHL
バッファローダイレクト
楽天市場
Amazon


「関西オープンソース2009」「関西コミュニティ大決戦」参画
ハックの記録
LinkStation/玄箱 をハックしよう

LSUpdater.ini の NoFormatting

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