続いて、ハックキットをインストールする
Last login: Sat Oct 25 22:31:46 2014 from sil.yamasita.jp root@LS-XHL8DF:~#
root@LS-XHL8DF:~# date Sat Oct 25 22:39:25 JST 2014 root@LS-XHL8DF:~#合ってる
root@LS-XHL8DF:/mnt/disk1/share/hackkit# ls busybox-telnetd_static hackkit_wheezy_armhf_131104.tar.gz hackkit_config.sample mkimage hackkit_wheezy_131222.sh ramroot_131208.sh hackkit_wheezy_armel_131104.tar.gz root@LS-XHL8DF:/mnt/disk1/share/hackkit#
root@LS-XHL8DF:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4925556 894968 3780376 19% / udev 10240 104 10136 1% /dev /dev/ram1 15360 172 15188 1% /mnt/ram /dev/sda1 996052 33352 962700 3% /boot /dev/disk1_6 187419036 794060 186624976 0% /mnt/disk1 /dev/usbdisk1_1 992036 33416 908624 4% /mnt/usbdisk1 tmpfs 8192 1800 6392 22% /mnt/ram/com.kernel.org root@LS-XHL8DF:~#/mnt/usbdisk1 にマウントされたので、アンマウントする
root@LS-XHL8DF:~# umount /mnt/usbdisk1 root@LS-XHL8DF:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4925556 894976 3780368 19% / udev 10240 104 10136 1% /dev /dev/ram1 15360 172 15188 1% /mnt/ram /dev/sda1 996052 33352 962700 3% /boot /dev/disk1_6 187419036 794020 186625016 0% /mnt/disk1 tmpfs 8192 1800 6392 22% /mnt/ram/com.kernel.org root@LS-XHL8DF:~#パーティションを見ると、、
root@LS-XHL8DF:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 160GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 1024MB 1024MB ext3 primary 2 1024MB 6144MB 5120MB xfs primary 3 6144MB 7168MB 1024MB linux-swap(v1) primary 4 7168MB 160GB 153GB xfs primary root@LS-XHL8DF:~#既に hackkit をインストールしたことがある HDD なので、 これをそのまま使う
root@LS-XHL8DF:~# date Sat Oct 25 22:52:26 JST 2014 root@LS-XHL8DF:~#合ってる
root@LS-XHL8DF:/mnt/disk1/share/hackkit# cat hackkit_config ADDRESS=192.168.2.49 HOSTNAME=brick GATEWAY=192.168.2.96 NAMESERVER=192.168.2.39 root@LS-XHL8DF:/mnt/disk1/share/hackkit#
root@LS-XHL8DF:/mnt/disk1/share/hackkit# sh hackkit_wheezy_131222.sh PRODUCTID = 0x00000011 MACHINE LSXHL formating hard drive ... mke2fs 1.40.5 (27-Jan-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 62720 inodes, 249995 blocks 12499 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=260046848 8 block groups 32768 blocks per group, 32768 fragments per group 7840 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376 Writing inode tables: done Creating journal (4096 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 23 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. meta-data=/dev/sdb2 isize=256 agcount=4, agsize=312500 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=1250000, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 Setting up swapspace version 1, size = 1023995904 bytes meta-data=/dev/sdb4 isize=256 agcount=4, agsize=9330681 blks = sectsz=512 attr=2, projid32bit=0 data = bsize=4096 blocks=37322721, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0 log =internal log bsize=4096 blocks=18223, version=2 = sectsz=512 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 mounting root file system ... extracting hackkit archive ... ./ ./var/ ./var/lib/ ./var/lib/apt/ ./var/lib/apt/lists/ ./var/lib/apt/lists/partial/ ./var/lib/apt/lists/ftp.jp.debian.org_debian_dists_wheezy_Release : : : lib/modules/3.3.4-88f6281/modules.usbmap creating usb ... update-rc.d: using dependency based boot sequencing checking /dev/sdb1 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 Pass 4: Checking reference counts Pass 5: Checking group summary information /dev/sdb1: 11/62720 files (9.1% non-contiguous), 6399/249995 blocks mounting /boot ... copying /boot ... initrd.buffalo uImage.buffalo editing initrd ... 150736+1 records in 150736+1 records out gunziping /mnt/disk1/debinst/boot/initrd.gz ... gziping /mnt/disk1/debinst/boot/initrd ... wait 5 minutes Image Name: initrd Created: Sat Oct 25 22:57:39 2014 Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9598228 Bytes = 9373.27 kB = 9.15 MB Load Address: 0x00000000 Entry Point: 0x00000000 unmount /boot ... root@LS-XHL8DF:/mnt/disk1/share/hackkit#できた。
|
← LinkStationシリーズ ファームウェア アップデーター Ver.1.69 がリリースされました |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ ハックキットの動作確認 |
Copyright (C) 2003-2014 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市