I've just been playing around with a QNAP TS-639 Pro, and apparently it wasn't able anymore to boot from the internal 'DOM' (disk on module). First try to 'flash' a firmware update available on their website failed.. Why...? Looks like they're encrypted by default, so useless if we don't have a working box already. Instead you need to download the full image, which is dd-able, so you can just flash the box using a live-distro and it's back alive! The Full-images can be found in the FTP Link at the end.
situation before
The situation before was with the encrypted image flashed, which of
course didn't work and instead resulted in the following error:
[code]
Reboot and Select proper Boot Device
or Insert Boot Media in selected Boot device and press a key
[/code]
The disk looked like this:
[code lang="bash" highlight="1,9"]
|| user@workstation \~/ ||\$ fdisk -l
Disk /dev/sda: 128 MB, 128057344 bytes
255 heads, 63 sectors/track, 15 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfe7a2050
Disk /dev/sda doesn't contain a valid partition table
|| user@workstation \~/ ||\$ file -s /dev/sda
/dev/sda: data
[/code]
situation after
[code lang="bash" highlight="1,15"]
|| user@workstation \~/ ||\$ fdisk -l
Disk /dev/sda: 128 MB, 128057344 bytes
8 heads, 32 sectors/track, 977 cylinders
Units = cylinders of 256 * 512 = 131072 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 8 1008 83 Linux
/dev/sda2 9 440 55296 83 Linux
/dev/sda3 441 872 55296 83 Linux
/dev/sda4 873 977 13440 5 Extended
/dev/sda5 873 913 5232 83 Linux
/dev/sda6 914 977 8176 83 Linux
|| user@workstation \~/ ||\$ file -s /dev/sda
/dev/sda: x86 boot sector; GRand Unified Bootloader, stage1 version
0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0x83,
starthead 1, startsector 32, 2016 sectors; partition 2: ID=0x83,
starthead 0, startsector 2048, 110592 sectors; partition 3: ID=0x83,
starthead 0, startsector 112640, 110592 sectors; partition 4: ID=0x5,
starthead 0, startsector 223232, 26880 sectors, code offset 0x48
[/code]
the magic part..
Actually if you're just a bit familiar with Linux, you won't have any
issues to bring it back to life. So first of all get a Live-Linux-Distro
(I've used GRML), boot the NAS from it, and then
issue the following commands:
[code lang="bash"]
wget
ftp://ftp.qnap.com.tw/NAS/usbboot/Full_image/F_TS-639_20090815-3.1.1.img
## Check the FTP link below to get the right file!
dd if=F_TS-639_20090815-3.1.1.img of=/dev/sda ## double-check the
device name! It should be a 128MB big flash-thingy.
[/code]
That's it already. The only thing magic about it, was to use the
full-image and not the Firmware image provided on the official website.
Notes: If you're prompted for a login on the specified FTP-Server, try 'csdread' as username & password.
links
Thanks for reading!
Raphi
Edit 2012.06.27: The link above for the FTP is no longer valid. Here's a
new one: ftp://ftp.qnap.com/NAS/usbboot/Full_image/
Thanks freakqnc for the hint.