brick:~# parted /dev/sdb GNU Parted 1.8.8 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Model: ViPowER VP-89118(SD1) (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 6144MB 512B primary 4 6144MB 6144MB 512B primary 5 6144MB 7168MB 1024MB linux-swap primary 6 7168MB 492GB 485GB xfs primary (parted) quit brick:~#実験用 HDD を LS-XHL につないで同じパーティションを切る。
brick:~# parted -s /dev/sdb mkpart primary ext3 0 1024M brick:~# parted -s /dev/sdb mkpart primary xfs 1024MB 6144MB brick:~# parted -s /dev/sdb mkpart primary xfs 6144MB 6144MB brick:~# parted -s /dev/sdb mkpart primary xfs 6144MB 6144MB brick:~# parted -s /dev/sdb mkpart primary linux-swap 6144MB 7168MB brick:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 204GB 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 6144MB 512B primary 4 6144MB 6144MB 512B primary 5 6144MB 7168MB 1024MB primary brick:~# parted -s /dev/sdb mkpart primary linux-swap 7168MB 204GB brick:~# parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 204GB 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 6144MB 512B primary 4 6144MB 6144MB 512B primary 5 6144MB 7168MB 1024MB primary 6 7168MB 204GB 197GB xfs primary brick:~#フォーマットもしておく
brick:~# mkfs.ext3 -j /dev/sdb1 mke2fs 1.41.3 (12-Oct-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 62592 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 7824 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 35 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. brick:~# mkfs.xfs /dev/sdb2 mkfs.xfs: /dev/sdb2 appears to contain an existing filesystem (xfs). mkfs.xfs: Use the -f option to force overwrite. brick:~# mkfs.xfs -f /dev/sdb2 meta-data=/dev/sdb2 isize=256 agcount=4, agsize=312500 blks = sectsz=512 attr=2 data = bsize=4096 blocks=1250000, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=2 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 brick:~# mkswap /dev/sdb5 Setting up swapspace version 1, size = 1023991 kB no label, UUID=ba4c8026-9e7f-4fb4-8fba-c26a04703d07 brick:~# mkfs.xfs -f /dev/sdb6 meta-data=/dev/sdb6 isize=256 agcount=4, agsize=12009283 blks = sectsz=512 attr=2 data = bsize=4096 blocks=48037131, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=23455, version=2 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 brick:~# !?print parted -s /dev/sdb print Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdb: 204GB 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 6144MB 512B primary 4 6144MB 6144MB 512B primary 5 6144MB 7168MB 1024MB linux-swap primary 6 7168MB 204GB 197GB xfs primary brick:~#
まずは、tftp サーバの uImage.buffalo, initrd.buffalo を LS-CHL 1.21 の物に。
yasunari@ude:~$ cd /srv/tftp/ yasunari@ude:/srv/tftp$ ls HS-DHGL_1.20 LS-GL_1.15 LS-QL_1.10b LS-XHL_1.10 LS-CHL_1.10 LS-HGL_1.07b LS-WSGL_1.06 SheevaPlug_1.2 LS-CHL_1.21 LS-LGL_2.01 LS-XHL_1.02 initrd.buffalo LS-CL+HackKit LS-QL_1.05+telnet LS-XHL_1.02+telnet uImage.buffalo LS-CL_1.07 LS-QL_1.07b LS-XHL_1.04b yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo yasunari@ude:/srv/tftp$ ln LS-CHL_1.21/* . yasunari@ude:/srv/tftp$ ls HS-DHGL_1.20 LS-GL_1.15 LS-QL_1.10b LS-XHL_1.10 LS-CHL_1.10 LS-HGL_1.07b LS-WSGL_1.06 SheevaPlug_1.2 LS-CHL_1.21 LS-LGL_2.01 LS-XHL_1.02 initrd.buffalo LS-CL+HackKit LS-QL_1.05+telnet LS-XHL_1.02+telnet uImage.buffalo LS-CL_1.07 LS-QL_1.07b LS-XHL_1.04b yasunari@ude:/srv/tftp$パーティションを切った HDD を LS-CHL にセットして電源 ON
E06 になったら FUNC ボタンを押す
やっぱり起動してこない
yasunari@ude:/srv/tftp$ rm initrd.buffalo uImage.buffalo yasunari@ude:/srv/tftp$ ln -s LS-XHL_1.10/* . yasunari@ude:/srv/tftp$LS-CHL の電源を ON
E06 になったら FUNC ボタンを押す
あれれ?起動しなくなった。
というわけで、意味不明。
これまでのように
「まっさらな HDD をつないで tftpboot、
ファームウェアアップデータを実行して復活」とはいかないようだ。
|
← まっさらにする(3)LS-XHL の uImage.buffalo, initrd.buffalo で起動 |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ まっさらにする(5)i-node のサイズ |