LS-GL / HS-DHGL

LS-GL/HS-DHGL  HackKitでdebianのインストール純正LS-GLに新しいディスクをUSBで接続する。
オートマウントが働いて自動マウントするので、umountしておく。/dev/sdbとして認識

kernel: scsi3 : SCSI emulation for USB Mass Storage devices
kernel:   Vendor: Generic   Model: External          Rev: 1.04
kernel:   Type:   Direct-Access                      ANSI SCSI revision: 04
kernel: SCSI device sdb: 1953525168 512-byte hdwr sectors (1000205 MB)
kernel: sdb: Write Protect is off
kernel: SCSI device sdb: 1953525168 512-byte hdwr sectors (1000205 MB)
kernel: sdb: Write Protect is off
lsbox kernel:  sdb:
lsbox kernel: sd 3:0:0:0: Attached scsi disk sdb
lsbox kernel: sd 3:0:0:0: Attached scsi generic sg1 type 0

fdiskする。

sdb1 200M /boot
sdb2 40G /
sdb3 512M /swap
sdb4 残り全部 /mnt

HackKitインストールの準備をする。

/mnt/disk1/share/debian/LS-GL_hackkit_2.10.sh
/mnt/disk1/share/debian/LS-GL_hackkit_2.10.tar.gz

vi LS-GL_hackkit_2.10.sh

ADDRESS=192.168.0.201
NETWORK=192.168.0.0
NETMASK=255.255.255.0
BROADCAST=192.168.0.255
GATEWAY=192.168.0.254
NAMESERVER=192.168.0.30
HOSTNAME=TVBOX

MOUNTPOINT=/mnt/debinst
WORK=/mnt/disk1/share/debian

# time sh LS-GL_hackkit_2.10.sh
real    4m5.068s
user    1m6.510s
sys    0m28.820s

インストールはこれで完了である。chrootして新しいディスクのシステムに入って環境設定してもいいし、LS-GLに新しいディスクをつなぎ替えて起動し、telnetで接続してもいいけど、今回はtelnetで構築することにする。

guestでログイン後、su

client $ telnet tvbox
tvbox $ su
tvbox # passwd
tvbox # useradd hoge
tvbox # passwd hoge
tvbox # mkdir /home/hoge
tvbox # chown :hoge:hoge
tvbox # exit
tvbox $ exit
$ telnet tvbox
# su
# deluser guest

# date

# apt-get update
# apt-get upgrade

ntpd

# You do need to talk to an NTP server or two (or three).
#server ntp.your-provider.example
server ntp.ring.gr.jp
server ntp.ring.gr.jp
server 192.168.0.53

# pool.ntp.org maps to more than 300 low-stratum NTP servers.
# Your server will pick a different set every time it starts up.
#  *** Please consider joining the pool! ***
#  *** <http://www.pool.ntp.org/join.html> ***
#server 0.debian.pool.ntp.org iburst
#server 1.debian.pool.ntp.org iburst
#server 2.debian.pool.ntp.org iburst
#server 3.debian.pool.ntp.org iburst

# /etc/init.d/ntp restart

sshd

aptでインストール

samba

aptでインストール

smartmontools

# apt-get install smartmontool
# smartctl -d marvell -A /dev/sda
smartctl version 5.36 [armv4l-unknown-linux-gnu] Copyright (C) 2002-6 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

=== START OF READ SMART DATA SECTION ===
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate     0x000f   200   200   051    Pre-fail  Always       –       0
3 Spin_Up_Time            0x0003   183   178   021    Pre-fail  Always       –       7841
4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       –       50
5 Reallocated_Sector_Ct   0x0033   200   200   140    Pre-fail  Always       –       0
7 Seek_Error_Rate         0x000e   200   200   051    Old_age   Always       –       0
9 Power_On_Hours          0x0032   099   099   000    Old_age   Always       –       1049
10 Spin_Retry_Count        0x0012   100   253   051    Old_age   Always       –       0
11 Calibration_Retry_Count 0x0012   100   253   051    Old_age   Always       –       0
12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       –       50
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       –       44
193 Load_Cycle_Count        0x0032   198   198   000    Old_age   Always       –       6993
194 Temperature_Celsius     0x0022   111   104   000    Old_age   Always       –       41
196 Reallocated_Event_Count 0x0032   200   200   000    Old_age   Always       –       0
197 Current_Pending_Sector  0x0012   200   200   000    Old_age   Always       –       0
198 Offline_Uncorrectable   0x0010   100   253   000    Old_age   Offline      –       0
199 UDMA_CRC_Error_Count    0x003e   200   200   000    Old_age   Always       –       0
200 Multi_Zone_Error_Rate   0x0008   100   253   051    Old_age   Offline      –       0