続いて LS-GL/HS-DHGL ハックキットの インストール。
root@HS-DHGLEA2:~# mkdir -p /mnt/disk1/share/debian/ root@HS-DHGLEA2:~# cd !$ cd /mnt/disk1/share/debian/ root@HS-DHGLEA2:/mnt/disk1/share/debian# ftp giga.yamasita.jp : : root@HS-DHGLEA2:/mnt/disk1/share/debian# ls -l -rw-r--r-- 1 root root 6059 Jan 8 09:45 LS-GL_hackkit_2.10.sh -rw-r--r-- 1 root root 71057935 Jan 8 09:45 LS-GL_hackkit_2.10.tar.gz root@HS-DHGLEA2:/mnt/disk1/share/debian#
HS-DHGL に USB で接続する。
Jan 8 17:10:30 HS-DHGLEA2 kernel: usb 2-1: new high speed USB device using ehci_platform and address 2 Jan 8 17:10:30 HS-DHGLEA2 kernel: usb 2-1: configuration #1 chosen from 1 choice Jan 8 17:10:30 HS-DHGLEA2 kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jan 8 17:10:35 HS-DHGLEA2 kernel: Vendor: WDC WD32 Model: WD-WCAMR1683855 Rev: 5J08 Jan 8 17:10:35 HS-DHGLEA2 kernel: Type: Direct-Access ANSI SCSI revision: 02 Jan 8 17:10:35 HS-DHGLEA2 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Jan 8 17:10:35 HS-DHGLEA2 kernel: sdb: Write Protect is off Jan 8 17:10:35 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through Jan 8 17:10:35 HS-DHGLEA2 kernel: SCSI device sdb: 625142448 512-byte hdwr sectors (320073 MB) Jan 8 17:10:35 HS-DHGLEA2 kernel: sdb: Write Protect is off Jan 8 17:10:35 HS-DHGLEA2 kernel: sdb: assuming drive cache: write through Jan 8 17:10:36 HS-DHGLEA2 kernel: sdb: sdb1 sdb2 sdb3 sdb4 Jan 8 17:10:36 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi disk sdb Jan 8 17:10:36 HS-DHGLEA2 kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Jan 8 17:10:37 HS-DHGLEA2 kernel: kjournald starting. Commit interval 5 seconds Jan 8 17:10:37 HS-DHGLEA2 kernel: EXT3 FS on sdb1, internal journal Jan 8 17:10:37 HS-DHGLEA2 kernel: EXT3-fs: mounted filesystem with ordered data mode.想定通り、sdb として認識された。
またまた想定通り、 最初のパーティションが自動的にマウントされたので、 アンマウントする。
root@HS-DHGLEA2:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 493212 237028 256184 48% / /dev/ram1 15360 108 15252 1% /mnt/ram /dev/ls_disk1_1 287785 14855 258072 5% /boot /dev/ls_disk1_6 243057136 70836 242986300 0% /mnt/disk1 /dev/ls_usbdisk2_1 194443 10379 174025 6% /mnt/usbdisk2 root@HS-DHGLEA2:~# umount /mnt/usbdisk2 root@HS-DHGLEA2:~#
root@HS-DHGLEA2:~# 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 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): q root@HS-DHGLEA2:~#これをそのまま使う。
oot@HS-DHGLEA2:~# cd /mnt/disk1/share/debian/ root@HS-DHGLEA2:/mnt/disk1/share/debian# ls LS-GL_hackkit_2.10.sh LS-GL_hackkit_2.10.tar.gz root@HS-DHGLEA2:/mnt/disk1/share/debian# mv LS-GL_hackkit_2.10.sh LS-GL_hackkit_2.10.sh.orig root@HS-DHGLEA2:/mnt/disk1/share/debian# cp LS-GL_hackkit_2.10.sh.orig LS-GL_hackkit_2.10.sh root@HS-DHGLEA2:/mnt/disk1/share/debian# vi LS-GL_hackkit_2.10.sh : : root@HS-DHGLEA2:/mnt/disk1/share/debian# diff -c LS-GL_hackkit_2.10.sh.orig LS-GL_hackkit_2.10.sh *** LS-GL_hackkit_2.10.sh.orig Tue Jan 8 09:45:08 2008 --- LS-GL_hackkit_2.10.sh Tue Jan 8 17:14:00 2008 *************** *** 1,12 **** #! /bin/sh -x ! ADDRESS=192.168.1.38 ! NETWORK=192.168.1.0 NETMASK=255.255.255.0 ! BROADCAST=192.168.1.255 ! GATEWAY=192.168.1.1 NAMESERVER=192.168.1.2 ! HOSTNAME=hackkit MOUNTPOINT=/mnt/debinst WORK=/mnt/disk1/share/debian --- 1,12 ---- #! /bin/sh -x ! ADDRESS=192.168.2.43 ! 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=gin MOUNTPOINT=/mnt/debinst WORK=/mnt/disk1/share/debian root@HS-DHGLEA2:/mnt/disk1/share/debian#
root@HS-DHGLEA2:/mnt/disk1/share/debian# sh LS-GL_hackkit_2.10.sh : : creating network_interfaces ... creating resolv.conf ... creating hosts ... creating hostname ... root@HS-DHGLEA2:/mnt/disk1/share/debian#
Debian GNU/Linux 4.0 gin login: guest Password: Linux gin 2.6.16.16-arm1 #9 Wed Mar 7 14:17:36 JST 2007 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@gin:/$問題なく立ち上がってきた。
もうハックキット 2.10 をリリースしても問題ないとは思うが、、、
|
← bash: !! |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ 新型 HS-DHGL にハックキット(3)最初の設定 |