HS-DHGL:HDD の中身


HS-DHGL の HDD を取り外し、 Vine Linux が動作している Intel 実験機に接続した。

HDD の認識

Dec 15 14:15:12 junk kernel: hub.c: new USB device 00:07.2-1, assigned address 2
Dec 15 14:15:12 junk kernel: usb.c: USB device 2 (vend/prod 0x152d/0x2338) is not claimed by any active driver.
Dec 15 14:15:12 junk murasaki.usb[1028]: usb device is added
Dec 15 14:15:12 junk murasaki.usb[1028]: vendor:0x152d product:0x2338 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50
Dec 15 14:15:12 junk murasaki.usb[1028]: MATCH(alias-sd) -> match_flags:0x180 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x0
Dec 15 14:15:12 junk murasaki.usb[1028]: MATCH(usb-storage) -> match_flags:0x380 vendor:0x0 product:0x0 Dclass:0x0 Dsubclass:0x0 Dprotocol:0x0 Iclass:0x8 Isubclass:0x6 Iprotocol:0x50
Dec 15 14:15:12 junk murasaki.usb[1028]: Dependence(usb-storage) was found
Dec 15 14:15:12 junk murasaki.usb[1028]: Dependence(sd_mod) was found
Dec 15 14:15:12 junk murasaki.usb[1028]: Dependence(scsi_mod) was found
Dec 15 14:15:12 junk murasaki.usb[1028]: Loading usb-storage
Dec 15 14:15:12 junk murasaki.usb[1028]: Loading sd_mod
Dec 15 14:15:12 junk murasaki.usb[1028]: Loading scsi_mod
Dec 15 14:15:12 junk kernel: SCSI subsystem driver Revision: 1.00
Dec 15 14:15:12 junk kernel: Initializing USB Mass Storage driver...
Dec 15 14:15:12 junk kernel: usb.c: registered new driver usb-storage
Dec 15 14:15:12 junk kernel: scsi0 : SCSI emulation for USB Mass Storage devices
Dec 15 14:15:12 junk kernel:   Vendor: ST332062  Model:         9QF0NVQ5  Rev: D
Dec 15 14:15:12 junk kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Dec 15 14:15:12 junk kernel: USB Mass Storage support registered.
Dec 15 14:15:12 junk kernel: Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Dec 15 14:15:12 junk kernel: SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
Dec 15 14:15:12 junk kernel:  sda: sda1 sda2 sda4 < sda5 sda6 >
sda として問題なく認識された。

パーティション

[root@junk root]# fdisk /dev/sda

The number of cylinders for this disk is set to 38913.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sda1             1        25    200781   83  Linux
/dev/sda2            26        87    498015   83  Linux
/dev/sda4            88     38913 311869845    5  Extended
/dev/sda5            88       104    136521   82  Linux swap
/dev/sda6           105     38913 311733261   83  Linux

Command (m for help): q

[root@junk root]#
容量が違うので sda4/sda6 のサイズは違うが、 LS-GL と同じ構成。

マウント

マウントしてみる
[root@junk root]# mkdir /tmp/root
[root@junk root]# mount /dev/sda2 /tmp/root
[root@junk root]# ls /tmp/root
bin/  boot/  dev/  etc/  home/  lib/  mnt/  proc/  root/  sbin/  share/  tmp@  usr/  var/  www/
[root@junk root]# mount /dev/sda1 /tmp/root/boot
[root@junk root]# ls /tmp/root/boot
conf_save.tgz  initrd.buffalo  log.tgz  lost+found/  uImage.buffalo
[root@junk root]# mount /dev/sda6 /tmp/root/mnt
[root@junk root]# ls /tmp/root/mnt
mediaserver/  mt-daapd/  share/
[root@junk root]#
LS-GL と同じ。

ということは、、、

[root@junk root]# less /tmp/root/etc/init.d/rcS
	:
	:

# telnetd for debug
# /usr/sbin/telnetd

	:
ここも同じ\^_^/。
早速コメントをはずす。

telnetable!

HDD を HS-DHGL に戻して、、、
BUFFALO INC. LinkStation series HS-DHGL(JINMU)
SIL login: admin
Password:
sh: /etc/profile: Permission denied
sh-2.05b$
Good Job!
でも、、root のパスワードつぶすの忘れた(滅)。


HS-DHGL:電源 ON
ハックの記録
LinkStation/玄箱 をハックしよう

HS-DHGL と LS-GL との違い

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