標準ファームはここまで。
[root@junk root]# cd /tmp [root@junk tmp]# fdisk /dev/hdc The number of cylinders for this disk is set to 2491. 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/hdc: 16 heads, 63 sectors, 2491 cylinders Units = cylinders of 1008 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 1711 861809+ 83 Linux /dev/hdc2 1711 2231 262080 82 Linux swap /dev/hdc3 2231 2491 131543 83 Linux Command (m for help): q [root@junk tmp]# mkdir /tmp/hdc1 [root@junk tmp]# mount /dev/hdc1 /tmp/hdc1 [root@junk tmp]# mkdir /tmp/hdc3 [root@junk tmp]# mount /dev/hdc3 /tmp/hdc3 [root@junk tmp]# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 6103680 532824 5260804 10% / /dev/hda1 15522 8464 6257 58% /boot /dev/hdc1 848252 396968 408196 50% /tmp/hdc1 /dev/hdc3 127379 4056 116746 4% /tmp/hdc3 [root@junk tmp]#マジックナンバ細工くずしに 成功したので、簡単にマウントできる。
[root@junk tmp]# cd hdc1 [root@junk hdc1]# ls HackKit lost+found share share-mac [root@junk hdc1]# tar zcvf ../hdc1.tar.gz HackKit share share-mac : [root@junk hdc1]# cd ../hdc3/ [root@junk hdc3]# ls hdlan_diffimg.tar.gz hdlan_version.txt lost+found [root@junk hdc3]# cp hdlan_* ..
[root@junk root]# fdisk /dev/hdc The number of cylinders for this disk is set to 14593. 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/hdc: 255 heads, 63 sectors, 14593 cylinders Units = cylinders of 16065 * 512 bytes Device Boot Start End Blocks Id System /dev/hdc1 1 14545 116824649+ 83 Linux /dev/hdc2 14545 14577 257040 82 Linux swap /dev/hdc3 14577 14593 136551+ 83 Linux Command (m for help): q [root@junk root]#
[root@junk root]# mount /dev/hdc1 /tmp/hdc1 [root@junk root]# mount /dev/hdc3 /tmp/hdc3 mount: you must specify the filesystem type [root@junk root]#やはり、hdc3 はマウントできない。
[root@junk root]# mke2fs /dev/hdc3 mke2fs 1.34 (25-Jul-2003) Filesystem label= OS type: Linux Block size=1024 (log=0) Fragment size=1024 (log=0) 34272 inodes, 136548 blocks 6827 blocks (5.00%) reserved for the super user First data block=1 17 block groups 8192 blocks per group, 8192 fragments per group 2016 inodes per group Superblock backups stored on blocks: 8193, 24577, 40961, 57345, 73729 Writing inode tables: 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. [root@junk root]#
[root@junk root]# mount /dev/hdc3 /tmp/hdc3 [root@junk root]# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda2 6103680 653044 5140584 12% / /dev/hda1 15522 8464 6257 58% /boot /dev/hdc1 114990216 32836 114957380 1% /tmp/hdc1 /dev/hdc3 132217 13 125377 1% /tmp/hdc3 [root@junk root]#マウントOK
[root@junk root]# cd /tmp/hdc1 [root@junk hdc1]# ls lost+found share share-mac [root@junk hdc1]# tar zxvf ../hdc1.tar.gz : : [root@junk hdc1]# cd .. [root@junk tmp]# mv hdlan_diffimg.tar.gz hdlan_version.txt hdc3/これで復元できたはず。
[yasunari@giga yasunari]$ telnet 192.168.1.36 Trying 192.168.1.36... Connected to 192.168.1.36. Escape character is '^]'. Vine Linux 2.6 (La Fleur de Bouard) Kernel 2.4.17_mvl21-sandpoint on a ppc login: yasunari Password: bash-2.04$
← | ハックの記録 | → samba 2.2.11-ja のインストール |
LinkStation/玄箱 をハックしよう |