次は LS-XHL
準備(それ以外 の場合)
に準じて設定を進める。
実は、このページをコピペして 第三世代 LinkStation ハックキットのページを作ろうと たくらんでいる。
ファイル共有機能を用いて、エクスプローラから
\\LinkStation 名\share に hackkit フォルダを作成し、
そこに
・hackkit_YYMMDD.tar.gz
・hackkit_YYMMDD.sh
・mkimage
を置きます。
このフォルダは、Linux 的には
/mnt/disk1/share/hackkit となります。
BUFFALO INC. LinkStation series LS-XHLA1F login: root No mail. root@LS-XHLA1F:~#
root@LS-XHLA1F:~# date Sat Feb 28 13:14:34 JST 2009 root@LS-XHLA1F:~# date 022813512009 Sat Feb 28 13:51:00 JST 2009 root@LS-XHLA1F:~#
root@LS-XHLA1F:~# tail -f /var/log/messages : : Feb 28 13:52:19 LS-XHLA1F kernel: usb 1-1: new high speed USB device using ehci_marvell and address 2 Feb 28 13:52:19 LS-XHLA1F kernel: usb 1-1: configuration #1 chosen from 1 choice Feb 28 13:52:19 LS-XHLA1F kernel: scsi2 : SCSI emulation for USB Mass Storage devices Feb 28 13:52:24 LS-XHLA1F kernel: scsi 2:0:0:0: Direct-Access Hitachi GEC534RF37924E A5CA PQ: 0 ANSI: 2 CCS Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] 976773168 512-byte hardware sectors (500108 MB) Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] Write Protect is off Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] Assuming drive cache: write through Feb 28 13:52:24 LS-XHLA1F kernel: sdb: sdb1 sdb2 sdb3 sdb4 Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: [sdb] Attached SCSI disk Feb 28 13:52:24 LS-XHLA1F kernel: sd 2:0:0:0: Attached scsi generic sg1 type 0 Feb 28 13:52:25 LS-XHLA1F kernel: FAT: utf8 is not a recommended IO charset for FAT filesystems, filesystem will be case sensitive! Feb 28 13:52:26 LS-XHLA1F getty[13638]: can't open 'ttyS0': No such device or address^M Feb 28 13:52:26 LS-XHLA1F kernel: kjournald starting. Commit interval 5 seconds Feb 28 13:52:26 LS-XHLA1F kernel: EXT3-fs warning: checktime reached, running e2fsck is recommended Feb 28 13:52:26 LS-XHLA1F kernel: EXT3 FS on sdb1, internal journal Feb 28 13:52:26 LS-XHLA1F kernel: EXT3-fs: mounted filesystem with ordered data mode. Feb 28 13:52:29 LS-XHLA1F nmbd[1204]: [2009/02/28 13:52:29, 0] nmbd/nmbd.c:terminate(58) Feb 28 13:52:29 LS-XHLA1F nmbd[1204]: Got SIGTERM: going down... Feb 28 13:52:43 LS-XHLA1F mt-daapd[14734]: Starting rendezvous daemon Feb 28 13:52:43 LS-XHLA1F mt-daapd[14736]: Starting signal handler Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Loading playlists Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Initializing database Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Starting mp3 scan Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Starting web server from /usr/local/share/mt-daapd/admin-root on port 3689 Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Registering rendezvous names Feb 28 13:52:44 LS-XHLA1F mt-daapd[14736]: Scanned 0 songs in 1 seconds(2) /mnt/usbdisk1 に自動的にマウントされた場合はアンマウントします。
root@LS-XHLA1F:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4989760 335688 4654072 7% / /dev/ram1 15360 128 15232 1% /mnt/ram /dev/sda1 992036 135632 856404 14% /boot /dev/disk1_6 149217988 131312 149086676 0% /mnt/disk1 /dev/usbdisk1_1 992036 27972 914068 3% /mnt/usbdisk1 root@LS-XHLA1F:~# umount /mnt/usbdisk1/ root@LS-XHLA1F:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/sda2 4989760 335668 4654092 7% / /dev/ram1 15360 128 15232 1% /mnt/ram /dev/sda1 992036 135632 856404 14% /boot /dev/disk1_6 149217988 131312 149086676 0% /mnt/disk1 root@LS-XHLA1F:~#(3) sdb にパーティションを切ります。
root@LS-XHLA1F:~# parted -s /dev/sdb print Model: Hitachi GEC534RF37924E (scsi) Disk /dev/sdb: 500GB 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 primary 4 7168MB 500GB 493GB xfs primary root@LS-XHLA1F:~#パーティションがあるので、消します。
root@LS-XHLA1F:~# parted -s /dev/sdb rm 4 root@LS-XHLA1F:~# parted -s /dev/sdb rm 3 root@LS-XHLA1F:~# parted -s /dev/sdb rm 2 root@LS-XHLA1F:~# parted -s /dev/sdb rm 1 root@LS-XHLA1F:~# parted -s /dev/sdb print Model: Hitachi GEC534RF37924E (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags root@LS-XHLA1F:~#念のため、fdisk でも消しておきます。
root@LS-XHLA1F:~# fdisk /dev/sdb The number of cylinders for this disk is set to 60801. 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: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 60802 488386583+ ee EFI GPT Command (m for help): d Selected partition 1 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table root@LS-XHLA1F:~#(3-2)パーティションテーブルを作成します
root@LS-XHLA1F:~# parted -s /dev/sdb mklabel gpt root@LS-XHLA1F:~#(3-3)パーティションを設定します
パーティション | タイプ | サイズ | システム |
sdb1 | プライマリ | 1GB 程度 | Linux |
sdb2 | プライマリ | 5GB 程度 | Linux |
sdb3 | プライマリ | 1GB 程度 | Linux swap |
sdb4 | プライマリ | 残り全部 | Linux |
ot@LS-XHLA1F:~# parted -s /dev/sdb mkpart primary ext3 0 1024M root@LS-XHLA1F:~# parted -s /dev/sdb print Model: Hitachi GEC534RF37924E (scsi) Disk /dev/sdb: 500GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 17.4kB 1024MB 1024MB ext3 primary root@LS-XHLA1F:~#続いて /。5GB
root@LS-XHLA1F:~# parted -s /dev/sdb mkpart primary xfs 1024MB 6144MB root@LS-XHLA1F:~#続いて swap。1GB
root@LS-XHLA1F:~# parted -s /dev/sdb mkpart primary linux-swap 6144MB 7168MB root@LS-XHLA1F:~#続いて データ。残り全部
root@LS-XHLA1F:~# parted -s /dev/sdb mkpart primary xfs 7168MB 500GB root@LS-XHLA1F:~# parted -s /dev/sdb print Model: Hitachi GEC534RF37924E (scsi) Disk /dev/sdb: 500GB 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 primary 4 7168MB 500GB 493GB xfs primary root@LS-XHLA1F:~#
|
← telnet 可能化 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ LS-XHL, LS-QL 対応ハックキットの確認(6)LS-XHL:インストール~ |