多分 U-Boot に仕込んである /boot に細工をしないとブートしないトラップ に引っかかっているんだと。(あくまで推測
そんなときに、 Hack BBSで ゆんかーすさんに、パーティションのないHDDでも復旧できた 旨のアドバイスをいただいた。
パーティションを削除したHDDで復旧を試してみる。
root@qube:~# tail -f /var/log/messages : : Jun 13 21:59:20 qube kernel: usb 2-1: new high speed USB device using ehci_marvell and address 2 Jun 13 21:59:20 qube kernel: usb 2-1: configuration #1 chosen from 1 choice Jun 13 21:59:20 qube kernel: scsi2 : SCSI emulation for USB Mass Storage devices Jun 13 21:59:25 qube kernel: scsi 2:0:0:0: Direct-Access ViPowER VP-89118(SD1) 2.10 PQ: 0 ANSI: 4 Jun 13 21:59:26 qube kernel: sd 2:0:0:0: [sdd] 398297088 512-byte hardware sectors (203928 MB) Jun 13 21:59:26 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off Jun 13 21:59:26 qube kernel: sd 2:0:0:0: [sdd] 398297088 512-byte hardware sectors (203928 MB) Jun 13 21:59:26 qube kernel: sd 2:0:0:0: [sdd] Write Protect is off Jun 13 21:59:26 qube kernel: sdd: sdd1 sdd2 sdd3 sdd4 sdd5 sdd6 Jun 13 21:59:26 qube kernel: sd 2:0:0:0: [sdd] Attached SCSI disk Jun 13 21:59:26 qube kernel: sd 2:0:0:0: Attached scsi generic sg3 type 0 root@qube:~# parted -s /dev/sdd print Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdd: 204GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags 1 1049kB 1026MB 1024MB ext3 primary 2 1026MB 6146MB 5120MB primary 3 6146MB 6147MB 1049kB primary 4 6147MB 6148MB 1049kB primary 5 6148MB 7172MB 1024MB primary 6 7172MB 192GB 185GB primary root@qube:~# parted -s /dev/sdd rm 6 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~# parted -s /dev/sdd rm 5 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~# parted -s /dev/sdd rm 4 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~# parted -s /dev/sdd rm 3 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~# parted -s /dev/sdd rm 2 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~# parted -s /dev/sdd rm 1 Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Error: Partition(s) 16 on /dev/sdd have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. root@qube:~#Partition(s) 16 on /dev/sdd って何???
root@qube:~# parted -s /dev/sdd print Warning: Could not determine physical sector size for /dev/sdd. Using the logical sector size (512). Model: ViPowER VP-89118(SD1) (scsi) Disk /dev/sdd: 204GB Sector size (logical/physical): 512B/512B Partition Table: gpt Number Start End Size File system Name Flags root@qube:~# fdisk /dev/sdd WARNING: GPT (GUID Partition Table) detected on '/dev/sdd'! The util fdisk doesn't support GPT. Use GNU Parted. WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help): p Disk /dev/sdd: 203.9 GB, 203928109056 bytes 255 heads, 63 sectors/track, 24792 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sdd1 1 24793 199148543+ ee GPT Command (m for help): d Selected partition 1 Command (m for help): 1 1: unknown command Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag d delete a partition l list known partition types m print this menu n add a new partition o create a new empty DOS partition table p print the partition table q quit without saving changes s create a new empty Sun disklabel t change a partition's system id u change display/entry units v verify the partition table w write table to disk and exit x extra functionality (experts only) Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks. root@qube:~#
やっぱり E07
Jun 13 22:15:56 qube in.tftpd[1425]: connect from 192.168.11.150 (192.168.11.150) Jun 13 22:15:56 qube tftpd[1426]: tftpd: trying to get file: uImage.buffalo Jun 13 22:15:56 qube tftpd[1426]: tftpd: serving file from /srv/tftp Jun 13 22:15:57 qube in.tftpd[1427]: connect from 192.168.11.150 (192.168.11.150) Jun 13 22:15:57 qube tftpd[1428]: tftpd: trying to get file: initrd.buffalo Jun 13 22:15:57 qube tftpd[1428]: tftpd: serving file from /srv/tftpしばらくして DHCP サーバにもアドレスを取りに来る
Jun 13 22:16:37 sil dhcpd: uid lease 192.168.2.207 for client 4c:e6:76:e7:0f:42 is duplicate on 192.168.2/24 Jun 13 22:16:37 sil dhcpd: DHCPDISCOVER from 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:16:37 sil dhcpd: DHCPOFFER on 192.168.2.56 to 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:16:37 sil dhcpd: uid lease 192.168.2.207 for client 4c:e6:76:e7:0f:42 is duplicate on 192.168.2/24 Jun 13 22:16:37 sil dhcpd: DHCPREQUEST for 192.168.2.56 (192.168.2.39) from 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:16:37 sil dhcpd: DHCPACK on 192.168.2.56 to 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:16:53 sil dhcpd: DHCPRELEASE of 192.168.2.56 from 4c:e6:76:e7:0f:42 via eth0 (not found) Jun 13 22:17:00 sil dhcpd: uid lease 192.168.2.207 for client 4c:e6:76:e7:0f:42 is duplicate on 192.168.2/24 Jun 13 22:17:00 sil dhcpd: DHCPDISCOVER from 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:17:00 sil dhcpd: DHCPOFFER on 192.168.2.56 to 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:17:00 sil dhcpd: uid lease 192.168.2.207 for client 4c:e6:76:e7:0f:42 is duplicate on 192.168.2/24 Jun 13 22:17:00 sil dhcpd: DHCPREQUEST for 192.168.2.56 (192.168.2.39) from 4c:e6:76:e7:0f:42 via eth0 Jun 13 22:17:00 sil dhcpd: DHCPACK on 192.168.2.56 to 4c:e6:76:e7:0f:42 via eth0
「ファームウェア更新」。すぐに
もちろん「はい」
フォーマットが始まる
ファームウェアが転送され、
書き換えの完了が待たれて
また
ファームウェアが転送され、
書き換えの完了が待たれて
LinkStation が再起動され、、、
E07 になったので、もう一回 FUNCTION SW を押し tftp boot
I25 になり激しく HDD をアクセス
リブートされ
また E07 になったので、また FUNCTION SW を押し tftp boot
青点滅のまま激しく HDD をアクセス。
アップデータは
OK を押すと
青点灯。
パーティションを切って実行したときと同じ
起動できるか、再起動してみる。
電源SWを長押しでシャットダウン。
もう一回電源SWを押して起動。
E07
また FUNCTION SW を押し tftp boot
青点灯。
起動できるか、再起動してみる。
電源SWを長押しでシャットダウン。
もう一回電源SWを押して起動。
E07
また FUNCTION SW を押し tftp boot
青点灯。
結局、パーティションを切って実行したときと同じ(藁
残念ながら、進展なし。なぜ??
|
← トラブルシュート(6)tftp boot ? (3) |
ハックの記録 LinkStation/玄箱 をハックしよう |
→ トラブルシュート(8)tftp boot ? (5) |
Copyright (C) 2003-2012 Yasunari Yamashita. All Rights Reserved.
yasunari @ yamasita.jp 山下康成@京都府向日市