Squeeze のインストール(21)LS-QL で再々々確認

Debian LS-QL

次は、LS-QL 1.11。
危ないところ、出そうなところから攻めるのは鉄則(汗

準備(LS-QL の場合)

準備(LS-QL の場合) にしたがって準備を進める

標準ファームに root でログインできるようにする

済み

標準ファームの HDD のコピー

(1) ドライブ1に標準ファームの HDD をセット、 ドライブ2にパーティションを削除した HDD をセットして起動します。

(2) 標準ファームの Web 管理画面を用い DISK2 を XFS でフォーマットします。

(3) 電源 OFF。コンセントも抜きます。

標準ファームで起動

ドライブ1の HDD を抜き、 ドライブ2の HDD をドライブ1にセットし、 起動。

ハックキットのファイルを置く

標準ファームの管理画面で share を削除/再作成し、 エクスプローラで \\LinkStation 名\share に hackkit フォルダを作成し、 そこに、 エクスプローラで share/hackkit に mkimage, ramroot_091128.sh, hackkit_squeeze_110103.tar.gz hackkit_squeeze_110110.shを置く。
root@LS-QL233:/mnt/disk1/share/hackkit# ls -al
drwxrwxrwx    2 nobody   nogroup       133 Jan 11 23:28 .
drwxrwxrwx    3 root     root           20 Jan 11 23:26 ..
-rwxrw-rw-    1 nobody   nogroup        35 Dec 29 09:25 hackkit_config
-rwxrw-rw-    1 nobody   nogroup  91122062 Jan  3 15:04 hackkit_squeeze_110103.tar.gz
-rwxrw-rw-    1 nobody   nogroup     17737 Jan 10 23:22 hackkit_squeeze_110110.sh
-rwxrw-rw-    1 nobody   nogroup     15920 Oct 26  2008 mkimage
-rwxrw-rw-    1 nobody   nogroup      1144 Nov 28  2009 ramroot_091128.sh
root@LS-QL233:/mnt/disk1/share/hackkit#

RamBoot モードへの変更

(1) 標準ファームに root でログインします。

済み

(2) initrd.buffalo の変更

root@LS-QL233:/mnt/disk1/share/hackkit# sh ramroot_091128.sh
Extracting initrd...
kjournald starting.  Commit interval 5 seconds
EXT3-fs warning: checktime reached, running e2fsck is recommended
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
110523+1 records in
110523+1 records out
mounting initrd...
EXT2-fs warning: checktime reached, running e2fsck is recommended
editing linuxrc...
clearing root's password...
rebuilding initrd.buffalo...
gziping initrd ... wait 5 minutes
Image Name:   initrd
Created:      Tue Jan 11 23:32:35 2011
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7040443 Bytes = 6875.43 kB = 6.71 MB
Load Address: 0x00000000
Entry Point:  0x00000000
root@LS-QL233:/mnt/disk1/share/hackkit#
OK

(3) 電源 OFF。コンセントも抜きます。

(4) コンセントを刺し、電源 ON。RamRoot モードで起動してきます。

BUFFALO INC. LinkStation series
LS-QL-EM233 login:

ログイン

BUFFALO INC. LinkStation series
LS-QL-EM233 login: root
No mail.
root@LS-QL-EM233:~#

時計を合わせる

root@LS-QL-EM233:~# date
Tue Jan 11 23:48:08 JST 2011
root@LS-QL-EM233:~#
あってる

ディスクのマウント

root@LS-QL-EM233:~# mkdir /mnt/disk1
mkdir: cannot create directory '/mnt/disk1': File exists
root@LS-QL-EM233:~# mount /dev/sda6 /mnt/disk1
XFS mounting filesystem sda6
XFS resetting qflags for filesystem sda6
root@LS-QL-EM233:~#

インストール

続いて インストール の手順で。

カスタマイズ

hackkit_config が置いてある
XFS resetting qflags for filesystem sda6
root@LS-QL-EM233:~# cd /mnt/disk1/share/hackkit/
root@LS-QL-EM233:/mnt/disk1/share/hackkit# cat hackkit_config
ADDRESS=192.168.2.50
HOSTNAME=qube
root@LS-QL-EM233:/mnt/disk1/share/hackkit#

インストーラの実行

root@LS-QL-EM233:/mnt/disk1/share/hackkit# sh hackkit_squeeze_110110.sh
PRODUCTID = 0x00004000
MACHINE LSQL
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
md: md10 stopped.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
md: bind
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- 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 root file system ...
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
	:
	:
./dev/xdb7
./dev/xdb8
./selinux/
./sys/
./srv/
./opt/
./media/
./initrd/
creating /etc/fstab ...
creating miconapl ...
update-rc.d: using dependency based boot sequencing
creating fancontrol ...
creating kernelmon ...
update-rc.d: using dependency based boot sequencing
creating usb ...
update-rc.d: using dependency based boot sequencing
checking /dev/md0
fsck 1.40.5 (27-Jan-2008)
e2fsck 1.40.5 (27-Jan-2008)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
/lost+found not found.  Create? yes

Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md0: 19/62976 files (15.8% non-contiguous), 48592/250976 blocks
mounting /boot ...
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
editing initrd ...
110006+1 records in
110006+1 records out
gunziping /mnt/debinst/boot/initrd.gz ...
EXT2-fs warning: checktime reached, running e2fsck is recommended
gziping /mnt/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Tue Jan 11 23:54:19 2011
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    7041368 Bytes = 6876.34 kB = 6.72 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
root@LS-QL-EM233:/mnt/disk1/share/hackkit#

電源 OFF

ハックキットで起動

HDD の交換(LS-WSGL, LS-QL 以外)

LS-QL なので、そのまま

起動

	:
	:
---- in hackkit linuxrc ---
grep: /var/tmp/devlink: No such file or directory
-- rebuild mdadm.conf for BOOT, ROOTFS --
mdadm: cannot open /dev/disk2_1: No such device or address
mdadm: cannot open /dev/disk2_2: No such device or address
mdadm: cannot open /dev/disk2_5: No such device or address
md: md10 stopped.
mdadm: cannot open device /dev/disk2_1: No such device or address
mdadm: /dev/disk2_1 has wrong uuid.
mdadm: /dev/disk1_1 has wrong uuid.
mdadm: cannot open device /dev/disk2_2: No such device or address
mdadm: /dev/disk2_2 has wrong uuid.
mdadm: /dev/disk1_2 has wrong uuid.
mdadm: cannot open device /dev/disk2_5: No such device or address
mdadm: /dev/dmd: bind
isk2_5 has wrong uuid.
raid1: raid set md10 active with 1 out of 4 mirrors
mdadm: /dev/md10md: md1 stopped.
 has been started with 1 drive (out of 4).
mdadm: /dev/disk1_1 has wrong uuid.
md: bind
raid1: raid set md1 active with 1 out of 4 mirrors
mdadm: /dev/md1 md: md0 stopped.
has been started with 1 drive (out of 4).
md: bind
raid1: raid set md0 active with 1 out of 4 mirrors
mdadm: /dev/md0 has been started with 1 drive (out of 4).
-- 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
umount: cannot open /proc/mounts
Filesystem "md1": Disabling barriers, not supported by the underlying device
XFS mounting filesystem md1
VFS: Mounted root (xfs filesystem).
Trying to move old root to /initrd ... okay
Freeing init memory: 120K
INIT: version 2.88 booting
Using makefile-style concurrent boot in runlevel S.
udev requires a kernel >= 2.6.26, not started. ... failed!
 failed!
Activating swap...Adding 1003896k swap on /dev/md10.  Priority:-1 extents:1 across:1003896k
done.
Filesystem "md1": Disabling barriers, not supported by the underlying device
Cleaning up ifupdown....
Setting up networking....
Loading kernel modules...done.
Activating lvm and md swap...done.
Checking file systems...fsck from util-linux-ng 2.17.2
done.
Mounting local filesystems...kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
XFS mounting filesystem sda6
done.
Activating swapfile swap...done.
Cleaning up temporary files....
Configuring network interfaces...eth reg(9) val=0x0300
eth0: link down
done.
Cleaning up temporary files....
Setting kernel variables ...done.
startpar: service(s) returned failure: udev ... failed!
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ehci_marvell ehci_marvell.4523: Marvell Orion EHCI
ehci_marvell ehci_marvell.4523: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.4523: irq 17, io base 0xf1050100
ehci_marvell ehci_marvell.4523: USB 2.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_marvell ehci_marvell.167817: Marvell Orion EHCI
ehci_marvell ehci_marvell.167817: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.167817: irq 12, io base 0xf10a0100
ehci_marvell ehci_marvell.167817: USB 2.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
Starting enhanced syslogd: rsyslogd.
USB Universal Host Controller Interface driver v3.0
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Starting internet superserver: inetd.
Starting periodic command scheduler: cron.
eth0: link up, full duplex, speed 1 Gbps

Debian GNU/Linux squeeze/sid qube ttyS0

qube login:

動作確認

LED の確認

POWER LED が青点灯、HDD1 LED が点灯

ログイン

シリアルコンソールからログインする。
Debian GNU/Linux squeeze/sid qube ttyS0

qube login: guest
Password:
Linux qube 2.6.22.7 #1 Thu Jun 18 21:48:29 JST 2009 armv5tejl

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
No directory, logging in with HOME=/
guest@qube:/$

root になる

guest@qube:/$ su - root
Password:
root@qube:~#

時刻を合わせる

手順にはないが
root@qube:~# date
Thu Jan  1 09:01:55 JST 1970
root@qube:~# date 011123582011
Tue Jan 11 23:58:00 JST 2011
root@qube:~#

USB メモリの認識

root@qube:~# tail -f /var/log/messages
	:
	:
usb 1-1: new full speed USB device using ehci_marvell and address 2
Jan 11 23:58:29 qube kernel: usb 1-1: new full speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
Jan 11 23:58:29 qube kernel: usbscsi2 : SCSI emulation for USB Mass Storage devices
 1-1: configuration #1 chosen from 1 choice
Jan 11 23:58:29 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices
scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
Jan 11 23:58:35 qube kernel: scsi 2:0:0:0: Direct-Access     eUSB     Memory Stick     5.06 PQ: 0 ANSI: 2
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: [sdb] 1sd 2:0:0:0: [sdb] Write Protect is off
26912 512-byte hsd 2:0:0:0: [sdb] Assuming drive cache: write through
ardware sectors (65 MB)
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] 126912 512-byte hardware sectors (65 MB)
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: [sdb] 1sd 2:0:0:0: [sdb] Write Protect is off
26912 512-byte hsd 2:0:0:0: [sdb] Assuming drive cache: write through
ardware sectors  sdb:(65 MB)
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: [sdb] Write Protect is off
 sdb1
sd 2:0:0:0: [sdb] Attached SCSI removable disk
sd 2:0:0:0: Attached scsi generic sg1 type 0
Jan 11 23:58:35 qube kernel: sdb: sdb1
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: [sdb] Attached SCSI removable disk
Jan 11 23:58:35 qube kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0

usb 1-1: USB disconnect, address 2
Jan 11 23:58:40 qube kernel: usb 1-1: USB disconnect, address 2

プリンタの認識(LS-GL 以外)

usb 1-1: new high speed USB device using ehci_marvell and address 3
Jan 11 23:59:32 qube kernel: usb 1-1: new high speed USB device using ehci_marvell and address 3
usb 1-1: configuration #1 chosen from 1 choice
Jan 11 23:59:33 qube kernel: usb 1-1: configuratdrivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007
ion #1 chosen from 1 choice
Jan 11 23:59:33 qube kernel: drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0007

usb 1-1: USB disconnect, address 3
drivers/usb/class/usblp.c: usblp0: removed
Jan 11 23:59:39 qube kernel: usb 1-1: USB disconnect, address 3
Jan 11 23:59:39 qube kernel: drivers/usb/class/usblp.c: usblp0: removed
LS-QL でも
Jan 12 00:00:02 qube kernel: program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
が出ている。。。

ファンコントロールの確認

root@qube:~# crontab -l
*/5 * * * * nice /bin/sh /usr/local/sbin/fancontrol 2>/dev/null 1>/dev/null
root@qube:~# /bin/sh /usr/local/sbin/fancontrol
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
program smartctl is using a deprecated SCSI ioctl, please convert it to SG_IO
31
fan_set_speed fast
root@qube:~# cat /etc/fancontrol.conf
#
# 3G LinkStation Fancontrol script configuration file
# (C) Copyright Yasunari YAMASHITA 2007-2011. All Rights Reserved.

# stop -> LOW |- slow -> MID |- fast -> HIGH |- full

HIGH=40
MID=30
LOW=20
root@qube:~#
ちょっと設定が低すぎるけど、、、

リブートの確認

root@qube:~# shutdown -r now
	:
	:
OK

シャットダウンの確認

OK

LS-QL
バッファローダイレクト
楽天市場
amazon
livedoorデパート
Sofmap
バリューモア
Yahoo!ショッピングトップ
ムラウチドットコム


Squeeze のインストール(20)LS-VL で再々々確認
ハックの記録
LinkStation/玄箱 をハックしよう

Squeeze のインストール(22)LS-CL で再々々確認

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