ハックキットは動いている??

LS410D

initrd.buffalo 内の /init を修正することにより、 ハックキットが動き始めたように思う。

なぜ telnet できないのか、原因を探るために、HDD の中を見る

ハックキットの HDD を LS-QL に接続

root@qube:~# tail /var/log/messages
Sep 20 00:17:23 qube kernel: usb 2-1: configuration #1 chosen from 1 choice
Sep 20 00:17:23 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Sep 20 00:17:28 qube kernel: scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: [sdd] 488397168 512-byte hardware sectors (250059 MB)
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: [sdd] 488397168 512-byte hardware sectors (250059 MB)
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off
Sep 20 00:17:28 qube kernel: sdd: sdd1 sdd2 sdd3 sdd4
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: [sdd] Attached SCSI disk
Sep 20 00:17:28 qube kernel: sd 2:0:0:0: Attached scsi generic sg3 type 0
root@qube:~#
マウントする
root@qube:~# mkdir /tmp/root
mkdir: cannot create directory `/tmp/root': File exists
root@qube:~# mount /dev/sdd2 /tmp/root
mount: wrong fs type, bad option, bad superblock on /dev/sdd2,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@qube:~#
ん?
root@qube:~# mount /dev/sdd2 /t^C/root
root@qube:~# mkdir /tmp/boot
root@qube:~# mount /dev/sdd1 /tmp/boot
root@qube:~#
/boot はマウントできる
root@qube:~# mkdir /tmp/mnt
root@qube:~# mount /dev/sdd4 /tmp/root
mount: wrong fs type, bad option, bad superblock on /dev/sdd4,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@qube:~#
mnt もマウントできない。
root@qube:~# tail /var/log/messages
	:
	:
Sep 20 00:25:14 qube kernel: XFS: bad version
Sep 20 00:25:14 qube kernel: XFS: SB validate failed
Sep 20 00:25:43 qube kernel: kjournald starting.  Commit interval 5 seconds
Sep 20 00:25:43 qube kernel: EXT3 FS on sdd1, internal journal
Sep 20 00:25:43 qube kernel: EXT3-fs: mounted filesystem with ordered data mode.
Sep 20 00:26:37 qube kernel: XFS: bad version
Sep 20 00:26:37 qube kernel: XFS: SB validate failed
root@qube:~# uname -a
Linux qube 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl GNU/Linux
root@qube:~#
LS-QL ではダメですか、、、

LS410D を tftp Boot

愛用している LS-QL でダメならと、 LS410D を起動する。

もう、tftp Boot もすることはないだろうと、 元に戻す

[root@LS410D06E ~]# cd /boot
[root@LS410D06E boot]# ls
conf_save.tgz                   initrd.buffalo.orig*            uImage.buffalo.orig*
hddrootfs.buffalo.updated.done* u-boot.buffalo*
[root@LS410D06E boot]# cp initrd.buffalo.orig initrd.buffalo
[root@LS410D06E boot]# cp uImage.buffalo.orig uImage.buffalo
[root@LS410D06E boot]#

HackKit の HDD を USB で接続

Sep 21 00:16:56 LS410D06E user.info kernel: usb 1-1: new high-speed USB device number 2 using ehci_marvell
Sep 21 00:16:56 LS410D06E user.info kernel: scsi2 : usb-storage 1-1:1.0
Sep 21 00:16:57 LS410D06E user.notice kernel: scsi 2:0:0:0: Direct-Access     ViPowER  VP-89118(SD1)    2.10 PQ: 0 ANSI: 4
Sep 21 00:16:57 LS410D06E user.notice kernel: sd 2:0:0:0: [sdb] 488397168 512-byte logical blocks: (250 GB/232 GiB)
Sep 21 00:16:57 LS410D06E user.notice kernel: sd 2:0:0:0: [sdb] Write Protect is off
Sep 21 00:16:57 LS410D06E user.debug kernel: sd 2:0:0:0: [sdb] Mode Sense: 21 00 00 00
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] No Caching mode page present
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] No Caching mode page present
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Sep 21 00:16:57 LS410D06E user.info kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] No Caching mode page present
Sep 21 00:16:57 LS410D06E user.err kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through
Sep 21 00:16:57 LS410D06E user.notice kernel: sd 2:0:0:0: [sdb] Attached SCSI disk
Sep 21 00:16:57 LS410D06E daemon.err udevd[2509]: symlink '../../sdb' '/dev/disk/by-id/ata-ST3250310AS_6RY0Y1VK.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[2509]: symlink '../../sdb' '/dev/disk/by-id/scsi-SViPowER_VP-89118_SD1__6RY0Y1VK.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[2509]: symlink '../../sdb' '/dev/disk/by-path/platform-ehci_marvell.0-usb-0:1:1.0-scsi-0:0:0:0.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-id/ata-ST3250310AS_6RY0Y1VK-part3.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-id/scsi-SViPowER_VP-89118_SD1__6RY0Y1VK-part3.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-partlabel/primary.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-partuuid/d4861451-bab3-4415-9959-f2e7788c80be.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-path/platform-ehci_marvell.0-usb-0:1:1.0-scsi-0:0:0:0-part3.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3385]: symlink '../../sdb3' '/dev/disk/by-uuid/ae446028-13ad-4a99-9acb-86dce1b5c4b0.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-id/ata-ST3250310AS_6RY0Y1VK-part4.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-id/scsi-SViPowER_VP-89118_SD1__6RY0Y1VK-part4.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-partlabel/primary.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-partuuid/3bb43898-1321-4154-aac5-c7ff734f6335.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-path/platform-ehci_marvell.0-usb-0:1:1.0-scsi-0:0:0:0-part4.udev-tmp' failed: Not a directory
Sep 21 00:16:57 LS410D06E daemon.err udevd[3386]: symlink '../../sdb4' '/dev/disk/by-uuid/bf023385-a04c-4c84-aaf5-32ca4b1b03d7.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-id/ata-ST3250310AS_6RY0Y1VK-part2.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-id/scsi-SViPowER_VP-89118_SD1__6RY0Y1VK-part2.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-partlabel/primary.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-partuuid/65d5e470-26fe-4f89-acdc-d006defbf4bf.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-path/platform-ehci_marvell.0-usb-0:1:1.0-scsi-0:0:0:0-part2.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2535]: symlink '../../sdb2' '/dev/disk/by-uuid/94e695f9-b1df-44a3-a204-574ea057c4b0.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-id/ata-ST3250310AS_6RY0Y1VK-part1.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-id/scsi-SViPowER_VP-89118_SD1__6RY0Y1VK-part1.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-partlabel/primary.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-partuuid/3e1a59e6-078a-4774-a2e9-f5997c7c5de5.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-path/platform-ehci_marvell.0-usb-0:1:1.0-scsi-0:0:0:0-part1.udev-tmp' failed: Not a directory
Sep 21 00:16:58 LS410D06E daemon.err udevd[2509]: symlink '../../sdb1' '/dev/disk/by-uuid/d95e5d40-55cc-4ec5-b532-24ef2e77f3fc.udev-tmp' failed: Not a directory

よくわからない。

マウント

[root@LS410D06E boot]# mkdir /tmp/root
[root@LS410D06E boot]# mount /dev/sdb2 /tmp/root
[root@LS410D06E boot]#

ログを見る

[root@LS410D06E boot]# cd /tmp/root/var/log/
[root@LS410D06E log]# ls
alternatives.log  bootstrap.log     dmesg             faillog           lastlog
apt/              btmp              dpkg.log          fsck/             wtmp
[root@LS410D06E log]# ls -l
total 488
-rw-r--r--    1 root     root         12716 Jun 28 14:41 alternatives.log
drwxr-xr-x    2 root     root            39 Jun 20 22:36 apt/
-rw-r--r--    1 root     root         43860 Jun 20 22:30 bootstrap.log
-rw-rw----    1 root     utmp             0 Jun 20 22:28 btmp
-rw-r-----    1 root     adm             31 Jun 20 22:29 dmesg
-rw-r--r--    1 root     root        112331 Jun 28 14:41 dpkg.log
-rw-r--r--    1 root     root         24024 Jun 20 23:15 faillog
drwxr-xr-x    2 root     root            36 Jun 20 22:29 fsck/
-rw-rw-r--    1 root     utmp        292292 Jun 20 23:15 lastlog
-rw-rw-r--    1 root     utmp             0 Jun 20 22:28 wtmp
[root@LS410D06E log]#
Jun 20 か、、、やっぱり Debian は動いていない?

LS410D

楽天市場
Amazon


HackKit の /init を修正する
ハックの記録
LinkStation/玄箱 をハックしよう

どこまで動いている??

ツイート Tweet to @yasunari_y @yasunari_yをフォロー

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