新型 LS-GL にハックキット(2)インストール

LS-GL

LS-GL/HS-DHGL ハックキット インストールに従って、ハックキットをインストールする。

インストールする実験用 HDD には SATA の HDD、WD3200SD を使う。

LS-GL ハックキットのファイルの転送

LS-GL に telnet でログイン


BUFFALO INC. LinkStation series LS-GL(IESADA)
LS-GL530 login: root
root@LS-GL530:~#

ディレクトリの作成

root@LS-GL530:~# mkdir -p /mnt/disk1/share/debian
root@LS-GL530:~# cd !$
cd /mnt/disk1/share/debian
root@LS-GL530:/mnt/disk1/share/debian#

LS-GL ハックキットのファイルの転送

内向けファイルサーバから、ftp で転送する。
root@LS-GL530:/mnt/disk1/share/debian# ftp giga
Connected to giga.yamasita.jp.
220 ProFTPD 1.2.10 Server (ProFTPD Default Installation) [192.168.2.32]
500 AUTH not understood
500 AUTH not understood
KERBEROS_V4 rejected as an authentication type
Name (giga:root): yasunari
331 Password required for yasunari.
Password:
230 User yasunari logged in.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> bin
200 Type set to I
ftp> hash
Hash mark printing on (1024 bytes/hash mark).
ftp> mget LS-GL_hackkit_2.00*
mget LS-GL_hackkit_2.00.sh? y
200 PORT command successful
150 Opening BINARY mode data connection for LS-GL_hackkit_2.00.sh (6327 bytes)
######
226 Transfer complete.
6327 bytes received in 0.018 seconds (3.5e+02 Kbytes/s)
mget LS-GL_hackkit_2.00.tar.gz? y
200 PORT command successful
150 Opening BINARY mode data connection for LS-GL_hackkit_2.00.tar.gz (63114360 bytes)
#################################################################################################################################################################################
	:
	:
226 Transfer complete.
63114360 bytes received in 12 seconds (5.1e+03 Kbytes/s)
ftp> bye
221 Goodbye.
root@LS-GL530:/mnt/disk1/share/debian#

ログイン

もうログインしている。

カスタマイズ

root@LS-GL530:/mnt/disk1/share/debian# vi LS-GL_hackkit_2.00.sh
	:
	:
root@LS-GL530:/mnt/disk1/share/debian# head LS-GL_hackkit_2.00.sh
#! /bin/sh -x

ADDRESS=192.168.2.42
NETWORK=192.168.2.0
NETMASK=255.255.255.0
BROADCAST=192.168.2.255
GATEWAY=192.168.2.1
NAMESERVER=192.168.1.2
HOSTNAME=nino

root@LS-GL530:/mnt/disk1/share/debian#

HDD の接続

USB で接続する
Dec 13 04:42:11 LS-GL530 kernel: usb 2-1: new high speed USB device using ehci_platform and address 2
Dec 13 04:42:11 LS-GL530 kernel: usb 2-1: configuration #1 chosen from 1 choice
Dec 13 04:42:11 LS-GL530 kernel: scsi2 : SCSI emulation for USB Mass Storage devices
Dec 13 04:42:16 LS-GL530 kernel:   Vendor: WDC WD32  Model:  WD-WCAMR1683855  Rev: 5J08
Dec 13 04:42:16 LS-GL530 kernel:   Type:   Direct-Access                      ANSI SCSI revision: 02
Dec 13 04:42:16 LS-GL530 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB)
Dec 13 04:42:16 LS-GL530 kernel: sdb: Write Protect is off
Dec 13 04:42:16 LS-GL530 kernel: sdb: assuming drive cache: write through
Dec 13 04:42:16 LS-GL530 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB)
Dec 13 04:42:16 LS-GL530 kernel: sdb: Write Protect is off
Dec 13 04:42:16 LS-GL530 kernel: sdb: assuming drive cache: write through
Dec 13 04:42:16 LS-GL530 kernel:  sdb: sdb1 sdb2 sdb3 sdb4
Dec 13 04:42:16 LS-GL530 kernel: sd 2:0:0:0: Attached scsi disk sdb
Dec 13 04:42:16 LS-GL530 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0
Dec 13 04:42:17 LS-GL530 kernel: kjournald starting.  Commit interval 5 seconds
Dec 13 04:42:17 LS-GL530 kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended
Dec 13 04:42:17 LS-GL530 kernel: EXT3 FS on sdb1, internal journal
Dec 13 04:42:17 LS-GL530 kernel: EXT3-fs: mounted filesystem with ordered data mode.
root@LS-GL530:/mnt/disk1/share/debian# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda2               493212    157972    335240  32% /
/dev/ram1                15360        84     15276   1% /mnt/ram
/dev/ls_disk1_1         194443     10656    173748   6% /boot
/dev/ls_disk1_6      311602188     62860 311539328   0% /mnt/disk1
/dev/ls_usbdisk1_1       54416      5819     45788  11% /mnt/usbdisk1
root@LS-GL530:/mnt/disk1/share/debian#
/mnt/usbdisk1 に自動的にマウントされたので、アンマウントする。
root@LS-GL530:/mnt/disk1/share/debian# umount /mnt/usbdisk1
root@LS-GL530:/mnt/disk1/share/debian#

パーティションの設定

root@LS-GL530:/mnt/disk1/share/debian# fdisk /dev/sdb

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/sdb: 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/sdb1               1           7       56196   83  Linux
/dev/sdb2               8         373     2939895   83  Linux
/dev/sdb3             374         390      136552+  82  Linux swap
/dev/sdb4             391       38913   309435997+  83  Linux

Command (m for help): d
Partition number (1-4): 1

Command (m for help): d
Partition number (1-4): 2

Command (m for help): d
Partition number (1-4): 3

Command (m for help): d
Selected partition 4

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-38913, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-38913, default 38913): +200M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 2
First cylinder (26-38913, default 26):
Using default value 26
Last cylinder or +size or +sizeM or +sizeK (26-38913, default 38913): +2096M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (282-38913, default 282):
Using default value 282
Last cylinder or +size or +sizeM or +sizeK (282-38913, default 38913): +256M

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Selected partition 4
First cylinder (314-38913, default 314):
Using default value 314
Last cylinder or +size or +sizeM or +sizeK (314-38913, default 38913):
Using default value 38913

Command (m for help): t
Partition number (1-4): 3
Hex code (type L to list codes): 82
Changed system type of partition 3 to 82 (Linux swap)

Command (m for help): p

Disk /dev/sdb: 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/sdb1               1          25      200781   83  Linux
/dev/sdb2              26         281     2056320   83  Linux
/dev/sdb3             282         313      257040   82  Linux swap
/dev/sdb4             314       38913   310054500   83  Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
root@LS-GL530:/mnt/disk1/share/debian#

インストール

root@LS-GL530:/mnt/disk1/share/debian# sh LS-GL_hackkit_2.00.sh

	:
	:
creating network_interfaces ...
creating resolv.conf ...
creating hosts ...
creating hostname ...
root@LS-GL530:/mnt/disk1/share/debian#

インストール終了

なんも問題なし。

LS-160GL
楽天市場
Amazon
Yahoo!ショッピング
ソフマップ
ツクモネットショプ
livedoor デパート
ドスパラ


新型 LS-GL にハックキット(1)root で telnet 可能に
ハックの記録
LinkStation/玄箱 をハックしよう

新型 LS-GL にハックキット(3)最初の設定

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