Turn Your TS-209 II Into TS-209 Pro II (Risk-Free)

This post introduces an ideal and safe method to change a TS-209 II into a TS-209 Pro II, the basic idea is to fake the hardware type during system startup, thus make a perfect hack.

There’s a utility /sbin/config_util which is used for many purposes, including get/set hardware signatures, we’ll use it to change the box type.

The Method

SSH onto your TS-209 II, then enter:

mount -o loop /dev/mtdblock5 /tmp/config
cd /tmp/config

Now edit autorun.sh, add the following lines:

ln -s /sbin/config_util /sbin/set_hwtype
/sbin/set_hwtype 2

Then unmount the partition:

cd /
umount /tmp/config

Reboot the box, enjoy your TS-209 Pro II :D

NOTICE: To examine if you’re running as TS-209 Pro II, go to Administration screen, check if you have the AD option in Microsoft Network section, and NFS in left panel.

NOTICE: The NFS in TS-209 Pro II has some limitations, you can’t mount the exported filesystems on a Mac without some hacks, to make the exports mountable on OS X, take the following steps:

1. Setup your exports as usual (through QNAP’s web interface)
2. Go to /etc/config, edit nfssetting, change the access options from rw to rw,insecure,no_subtree_check
3. Re-enable NFS service through web interface.

That’s it.

UPDATE: After upgrading to firmware 2.1.2 build 1031T, this trick still works, check the following image:

UPDATE: Another method is to create a file named hw_type with a single line of ‘0099′ and put it into /dev/mtdblock5, then reboot. This may require reflashing with PRO firmware, tried it on 0904T non-PRO firmware and failed, succeeded with 1031T PRO firmware.

UPDATE: Just did a byte-to-byte comparison between 1031T PRO and STD firmwares, they are the same. So I guess the only difference between two types are hidden in /dev/mtdblock0 ~ /dev/mtdblock5, maybe the hw_type is the key.


20 Comments

  1. Max
    Posted November 11, 2008 at 10:28 pm | Permalink

    It works also on TS-109 and TS-109 Pro ?

    Thanks a lot,
    Max

  2. Posted November 11, 2008 at 11:38 pm | Permalink

    I would say it’ll work on TS-109 as well, just give it a try, if in any case it doesn’t work, just revert back, you won’t lose anything.

  3. hugon
    Posted November 15, 2008 at 10:57 pm | Permalink

    I tested the 2 method, without success.
    In the first method, the autorun.sh file does not exist.
    I create but to no avail.
    In the second method hw_type file already exists, with 0055 inside.
    I change 0055 in 0099, without success either.

  4. Posted November 17, 2008 at 12:20 am | Permalink

    @Hugon,

    For the 1st method, it should work because other people have succeeded, the reason you failed might be that your autorun.sh is not ok, make sure it’s a Unix sript file (Windows notepad CANNOT create the correct script file), i.e. it has the contents like:

    #!/bin/sh
    ln -s /sbin/config_util /sbin/set_hwtype && /sbin/set_hwtype 2

    and you give it right permission:

    chmod 755 autorun.sh

    For the 2nd method, as I wrote in the post, you probably need to reflash with a PRO firmware.

  5. hugon
    Posted November 17, 2008 at 2:33 am | Permalink

    thank you for your clarification
    now it works

  6. Max
    Posted November 19, 2008 at 6:11 am | Permalink

    It works also with TS-109, i have used 2nd method.

    Thanks !!!

  7. Point7
    Posted November 20, 2008 at 6:41 pm | Permalink

    I’m a total linux noob. I want to try the method with the hw_type file but i don’t know how to create that file and put it on my 109.
    I’ve downloaded putty (Windows XP) and established a ssh connection. Then i login with admin and password admin to get to root dir. Then i’m stuck.
    Please can someone help me. TIA !

  8. Point7
    Posted November 21, 2008 at 4:17 pm | Permalink

    OK, problem solved. My 109 is now a 109 PRO. I changed the 0055 setting to 0099 in the hw_type file. I used the combination of Putty (for mounting) and WinSCP (for editing). Reflashed the firmware with the latest PRO version 2.1.2 build 1114T and now I can see NFS access in the control panel.

  9. vphan
    Posted November 25, 2008 at 9:15 am | Permalink

    You officially roxor x2 this works too (Method 1) Method 2 did not work for me even after flashing. The hw_type file already had 0099 as its contents. My model is the TS-209 1 non-pro version

  10. Posted December 1, 2008 at 3:32 am | Permalink

    #Q1: I have planned to purchase TS-209 in order to save round 100 euros comparing to TS-209 pro or TS-209 II. Is it possible to “upgrade” std. 209 to 209 Pro? The product looks good enough, but the NFS support will be make life easier with my linux based satellite receiver. Are your instructions applicaple also for 209?

    #Q2: There is “smart fan” feature in QNAP products. Does it really work? - I mean lower noise when idle. Is there “spin-down” feature option in software to make NAS quiet?

  11. Posted December 5, 2008 at 12:33 am | Permalink

    @Mr.HH,

    A1: I think it’s the same for 209 because the only difference between a 209 and a 209II is the memory (128MB vs 256MB).
    A2: Check the official forum, you’ll find plenty of info on spin-down feature, I personally didn’t try it because my NAS has been busy downloading stuffs :)

  12. Hank
    Posted December 5, 2008 at 1:58 pm | Permalink

    Where should autorun.sh be? I don’t see it anywhere on the drive after using WinSCP to ftp into it.

    This is for a 109 II model

    I guess it might help to explain the steps a bit more?

    Any help would be appreciated.

    Thanks

  13. Hank
    Posted December 5, 2008 at 2:13 pm | Permalink

    Well, after digging a lot more, I learned how to use the #vi command, but autorun.sh STILL doesn’t exist. I tried creating one using WINSCP…it showed up, but is EMPTY, which I’m guessing it’s correct.

    Tried using the empty one, editing it to show the lines above using Putty (#vi), but still no luck.

  14. Hank
    Posted December 5, 2008 at 2:14 pm | Permalink

    Ever have one of those days?

    3rd time is a charm apparently. Worked after at third try with the #vi command via putty.

    Thanks for the great hack!

  15. JB
    Posted December 10, 2008 at 8:47 am | Permalink

    None of the methods worked for me on a TS-109 II with version 2.1.2 1114T. So what I did was:

    1) use a program called WinSCP and login in SFTP mode. Make sure you use your admin account.
    2) Now go to tmp/hw_type.
    3) Right-click >> edit >> this file should be empty. Just add 0099 to it and save. Close the file.
    4) Reboot by logging into the Web Interface from your broswer >> Administration >> System Tools >> Restart/Shutdown (left menu) and restart the system. It should take approximately 5 minutes. After a series of beeps the web interface will auto-log you back into the web interface. Go to home page of your Web Interface and you should see your TS-109 II is now a pro.

    Why there was 2 versions? Money grab. It’s a $100 difference here in Canada.

    Thank-you George for the help. =]

  16. Hugh
    Posted December 11, 2008 at 3:26 am | Permalink

    I try the first methode on my TS-209II 2.2.2 1113

    I reboot and now nothing work. A few time after restart, there’s 2 bip and then nothing. It’s impossible to connect with ssh telnet or the web interface.
    My nas is now out of work.
    What else can I do now?

  17. JB
    Posted December 11, 2008 at 5:45 am | Permalink

    Hugh,

    Either:

    1) Press and hold the reset button behind your NAS and try booting again.

    2) Or, alternatively, download/open the QNAP Finder utility (it can be found on their website or the CD) and reload the latest firmware.

    Good luck.

  18. Sol
    Posted December 13, 2008 at 12:51 am | Permalink

    Great stuff! Even I bought the Pro…

    Here’s another thing you could investigate: I’d like to install Debian on the Qnap. The only thing which bothers is that the Twonky Media won’t work because the license is missing.
    So maybe there’s a hack you can find to make it work?

  19. FL
    Posted December 28, 2008 at 6:51 pm | Permalink

    George,

    I am new to Mac and Linux and have two questions for you:

    1. I have tried to follow you instructions above, but how can I edit the autorun.sh file?

    2. Can you direct me to a site where I can read about, how to setup my TS-209 II with all its functionality in an environment with a MacBook Pro and a MacBook?

    Greeatly appreciaated

  20. Craig
    Posted January 5, 2009 at 3:04 pm | Permalink

    Thanks for the tip!
    The first method mentioned worked perfectly on my TS-109.

    I now have the missing NFS I was so hoping for.

    Thanks again.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word