インストール

Debian LS-WSXL/R1

/mnt/disk1/share/hackkit が見えるようになったので、 次は インストール の手順。

時計を合わせる

sh-3.2# date
Thu Dec 12 03:59:28 JST 2013
sh-3.2#
あってる。。。。って今何時?

カスタマイズ

hackkit_config を使う
sh-3.2# vi hackkit_config
	:
	:
sh-3.2# cat !$
cat hackkit_config
ADDRESS=192.168.2.58
HOSTNAME=lswsxl
GATEWAY=192.168.2.96
NAMESERVER=192.168.1.5
sh-3.2#

インストーラの修正

インストーラの実行の前に、インストーラを LS-WSXL に対応させる
sh-3.2# cp hackkit_wheezy_131104.sh hackkit_wheezy_131212.sh
sh-3.2# vi !$
	:
	:
sh-3.2# diff -u hackkit_wheezy_131104.sh hackkit_wheezy_131212.sh
Binary files hackkit_wheezy_131104.sh and hackkit_wheezy_131212.sh differ
sh-3.2# 
がー
sh-3.2# diff -au hackkit_wheezy_131104.sh hackkit_wheezy_131212.sh
--- hackkit_wheezy_131104.sh    Mon Nov  4 15:40:12 2013
+++ hackkit_wheezy_131212.sh    Thu Dec 12 04:10:56 2013
@@ -902,6 +902,17 @@

        RAID=yes
        ;;
+0x00003007)
+       MACHINE=LSWSXL
+
+       BOOTPARTITION=/dev/md0
+       BOOTPARTITIONTYPE=ext3
+       ROOTPARTITION=/dev/md1
+       SWAPPARTITION=/dev/md10
+       DATAPARTITION=""
+
+       RAID=yes
+       ;;
 0x00004000)
        MACHINE=LSQL

sh-3.2#

インストーラの実行

sh-3.2# sh hackkit_wheezy_131212.sh
PRODUCTID = 0x00003007
MACHINE LSWSXL
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
-- 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 ...
mount: mounting /dev/md1 on /mnt/disk1/debinst failed: Invalid argument
sh-3.2#
また。。。。
sh-3.2# mount /dev/md1 /mnt/disk1/debinst/
sh-3.2# mount | grep debinst
/dev/md1 on /mnt/disk1/debinst type ext3 (rw,relatime,errors=continue,barrier=1,data=writeback)
sh-3.2# umount /mnt/disk1/debinst/
sh-3.2#
ext3 か。。。
ROOTPARTITIONTYPE を足す
sh-3.2# vi hackkit_wheezy_131212.sh
	:
	:
sh-3.2# !diff
diff -au hackkit_wheezy_131104.sh hackkit_wheezy_131212.sh
--- hackkit_wheezy_131104.sh    Mon Nov  4 15:40:12 2013
+++ hackkit_wheezy_131212.sh    Thu Dec 12 04:17:26 2013
@@ -902,6 +902,18 @@

        RAID=yes
        ;;
+0x00003007)
+       MACHINE=LSWSXL
+
+       BOOTPARTITION=/dev/md0
+       BOOTPARTITIONTYPE=ext3
+       ROOTPARTITION=/dev/md1
+       ROOTPARTITIONTYPE=ext3
+       SWAPPARTITION=/dev/md10
+       DATAPARTITION=""
+
+       RAID=yes
+       ;;
 0x00004000)
        MACHINE=LSQL

sh-3.2#
こんどこそ!
sh-3.2# sh hackkit_wheezy_131212.sh
PRODUCTID = 0x00003007
MACHINE LSWSXL
building md...
-- rebuild mdadm.conf for BOOT, ROOTFS --
-- 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 ...
extracting hackkit archive ...
./
./var/
./var/lib/
./var/lib/apt/
./var/lib/apt/lists/
./var/lib/apt/lists/partial/
	:
	:
./selinux/
./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)
Superblock last mount time is in the future.  Fix? yes

Superblock last write time is in the future.  Fix? yes

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/dev/md0: ***** FILE SYSTEM WAS MODIFIED *****
/dev/md0: 20/62720 files (15.0% non-contiguous), 16766/250096 blocks
mounting /boot ...
editing initrd ...
155058+1 records in
155058+1 records out
gunziping /mnt/disk1/debinst/boot/initrd.gz ...
gziping /mnt/disk1/debinst/boot/initrd ... wait 5 minutes
Image Name:   initrd
Created:      Thu Dec 12 04:23:54 2013
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    9922957 Bytes = 9690.39 kB = 9.46 MB
Load Address: 0x00000000
Entry Point:  0x00000000
unmount /boot ...
sh-3.2#

電源 OFF



LS-WSXL
楽天市場

Amazon



sda6 のマウント
ハックの記録
LinkStation/玄箱 をハックしよう

ハックキットで起動

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

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