I got my hand on TS-219p model with no hard drives. Brought myself WD red 4tb drive and installed it. Installed firmware over Qfinder, and everything went good until server reboots, then it shows that drives are missing and nothing more. Sometimes if I hotswap drive while it says that there is no drive, it detects that drive with Qnap configuration and lets me initialize it, but after that it's the same. Can't update firmware, current is 4.3.3.1432 and website has newer one 4.3.3.1624. After Firmware instalation (I dont even know how it downloads it and from where, because that firmware is downloaded or so I see and installed via website). After instalation I have to go thrue whole proccess of setup, then it finishes and reboots. after reboot it starts to act up does that before mentioned thing of no drive error. website gives me quick.cgi to download, I found workaround by going to http://ip:8080/cgi-bin/quick/html/index.html. When I try to install any firmware, no matter what way (QFinder, Manual, website) it fails ussually at 12-15 %. when used update.sh it gives error FW error 999. after innitialization hdd is not mounted I checked fdisk -l and found that it's not mounted at all, not showned in fdisk -l nor in mount as HDA_ROOT. I dont really know what to do next, maybe there is a way to reflash main flash chip. I have few adapters for flashing mcu's ands so on. please let me know what you guys think
I suspect that this firmware is somehow corrupt and keeps from updating to newer one. By the way since there is no shared/Public folder I download firmware as zip to HDA_ROOT/update adn unzip, then remove zip (since space is limited) and execute update.
My commands that I use for update:
Code: Select all
cd /mnt/HDA_ROOT/update
wget -c https://eu1.qnap.com/Storage/TS-219/TS-219_20210416-4.3.3.1624.zip
md5sum TS-219_20210416-4.3.3.1624.zip
unzip TS-219_20210416-4.3.3.1624.zip
rm TS-219_20210416-4.3.3.1624.zip
rm -fr /mnt/update && ln -sf /mnt/HDA_ROOT/update /mnt/update
rm /sbin/lock_system_update && echo '#!/bin/sh' > /sbin/lock_system_update && chmod +x /sbin/lock_system_update
/etc/init.d/update.sh /mnt/HDA_ROOT/update/TS-219_20210416-4.3.3.1624.img
Code: Select all
[~] # df
Filesystem Size Used Available Use% Mounted on
/dev/ram0 32.9M 31.3M 1.7M 95% /
tmpfs 64.0M 108.0k 63.9M 0% /tmp
tmpfs 64.0M 35.0M 29.0M 55% /tunnel_agent
/dev/md9 509.5M 17.1M 492.5M 3% /mnt/HDA_ROOT
Code: Select all
[~] # fdisk -l
Disk /dev/mtdblock0: 0 MB, 524288 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock0 doesn't contain a valid partition table
Disk /dev/mtdblock1: 2 MB, 2097152 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock1 doesn't contain a valid partition table
Disk /dev/mtdblock2: 9 MB, 9437184 bytes
255 heads, 63 sectors/track, 1 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock2 doesn't contain a valid partition table
Disk /dev/mtdblock3: 3 MB, 3145728 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock3 doesn't contain a valid partition table
Disk /dev/mtdblock4: 0 MB, 262144 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock4 doesn't contain a valid partition table
Disk /dev/mtdblock5: 1 MB, 1310720 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock5 doesn't contain a valid partition table
You must set cylinders.
You can do this from the extra functions menu.
Disk /dev/sda: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 267350 2147483647+ ee EFI GPT
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 0, 1) logical=(0, 0, 2)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(267349, 89, 4)
Disk /dev/sda4: 469 MB, 469893120 bytes
2 heads, 4 sectors/track, 114720 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/sda4 doesn't contain a valid partition table
Disk /dev/md9: 542 MB, 542834688 bytes
2 heads, 4 sectors/track, 132528 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md9 doesn't contain a valid partition table
Disk /dev/md2: 542 MB, 542851072 bytes
2 heads, 4 sectors/track, 132532 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md2 doesn't contain a valid partition table
Code: Select all
[~] # mount
/proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
sysfs on /sys type sysfs (rw)
tmpfs on /tmp type tmpfs (rw,size=64M)
none on /proc/bus/usb type usbfs (rw)
tmpfs on /tunnel_agent type tmpfs (rw,size=64m)
/dev/md9 on /mnt/HDA_ROOT type ext3 (rw)
Code: Select all
<tc/init.d/update.sh /mnt/HDA_ROOT/update/TS-219_20210416-4.3.3.1624.img
cksum=546222954
Check disk space available for FW update: OK.
Using 120-bit encryption - (QNAPNASVERSION4)
len=1048576
model name = TS-219
version = 4.3.3
boot/
config/
fw_info
fw_info.conf
initrd.boot
initrd.boot.cksum
libcrypto.so.1.0.0
libssl.so.1.0.0
qpkg.tar
qpkg.tar.cksum
rootfs2.img
rootfs2.img.cksum
rootfs_ext.tgz
rootfs_ext.tgz.cksum
uImage
uImage.cksum
update/
update_img.sh
/usr/bin/du: invalid option -- b
BusyBox v1.01 (2020.10.05-19:03+0000) multi-call binary
Usage: du [-aHLdclsxhmk] [FILE]...
Summarizes disk space used for each FILE and/or directory.
Disk space is printed in units of 1024 bytes.
Options:
-a show sizes of files in addition to directories
-H follow symbolic links that are FILE command line args
-L follow all symbolic links encountered
-d N limit output to directories (and files with -a) of depth < N
-c output a grand total
-l count sizes many times if hard linked
-s display only a total for each argument
-x skip directories on different filesystems
-h print sizes in human readable format (e.g., 1K 243M 2G )
-m print sizes in megabytes
-k print sizes in kilobytes(default)
expr: syntax error
expr: syntax error
expr: syntax error
OLD MODEL NAME = TS-219P
Allow upgrade
gzip: crc error
Allow upgrade
/mnt/HDA_ROOT/update
tune2fs 1.41.4 (27-Jan-2009)
Setting maximal mount count to -1
Setting interval between checks to 0 seconds
Update image using HDD ...
uImage cksum ... Pass
initrd.boot cksum ... Pass
rootfs2.img cksum ... Pass
/bin/cat: /mnt/HDA_ROOT/update/newver: No such file or directory
[Firmware Update] System update failed. Error code: FW999
What I have tried:
Downgrade and install newest firmwares: FAILED
Install firmware over SSH via /etc/init.d/update.sh: FAILED
FIrmware recovery over VMware: FAILED
Checked md5sum of zips and etc before installing.
managed to get update process to run normally, but now it has errors (see log attached.)
So guys what do you think? What could cause this problem?