You are on page 1of 5

Procedures of initializing the TS-109/-209/-409 series through Linux

A. Requirement:
1. TS-109/-209/-409 series NAS 2. At least one SATA HDD 3. Linux OS with ftp server function 4. init_single_disk program if the firmware version on the NAS is 2.1.1 or older. Put this program on the ftp server of your Linux PC for download 5. TS-109/-209/-409 series NAS firmware file. You can download the latest firmware from QNAP website. Put this firmware on the ftp server of you Linux PC for download.

B. Procedure:
1. Connect the Linux PC directly to the NAS by network cable. 2. Power on the NAS. After a short beep and then a long beep from the NAS, hot-plug only one HDD to drive bay 1 of the NAS. 3. The NAS would use 169.254.100.100 as its IP address. Thus, please configure the Linux PC IP address to the same subnet. For example, 169.254.100.101/255.255.0.0 4. Telnet to the NAS by port 13131 ( on Linux terminal, use command: telnet 169.254.100.100 13131) and login with username/password as admin/admin. 5. Check the firmware version of your NAS by input command [ more /etc/config/uLinux.conf ]. The first page would show the model number and firmware version. If the firmware version is 2.1.1 or older, ftp to the Linux PC to download init_single_disk. You may need to use chmod command to make the program executable. If the firmware version is 2.1.2 or later, the init_single_disk is placed on sbin folder. 6. Execute init_single_disk and wait for the completion. 7. Run the following command to install the firmware.
mkdir /mnt/HDA_ROOT/update cd /mnt/HDA_ROOT/update ln -sf /mnt/HDA_ROOT/update /mnt/update

Please then ftp to the server to download the firmware file to /mnt/HDA_ROOT/update folder. If the firmware name is U_TS-X09_200XXXXX-X.X.X.img, run the following command.
/etc/init.d/update.sh /mnt/HDA_ROOT/update/U_TS-X09_200XXXXX-X.X.X.img reboot

8. After reboot, wait for about 3 seconds, then you can connect the NAS by web browser

9. Login with default username / password as admin/admin. If you have other SATA Disk(s) need to install, hot-plug to the NAS then you can go to Device Configuration -> SATA Disk to configure the disk settings as you wish.

C. Example of linux command:


alan@alan-desktop:~$ telnet 169.254.100.100 13131 Trying 169.254.100.100... Connected to 169.254.100.100. Escape character is '^]'.

NASACC393 login: admin Password: sh: pts/0: No such file or directory -sh: id: command not found -sh: reset: command not found

[~] # more /etc/config/uLinux.conf [System] Model = TS-409 Internal Model = TS-409 Server Comment = NAS Server Version = 2.1.0 Build Number = 0904T Time Zone = Europe/London Enable Daylight Saving Time = TRUE Workgroup=NAS Code Page = 437 System Device = /dev/mtdblock Test Mode = FALSE Auto Create Raid = raid0 Wan Access = TRUE Lan Access = TRUE Web Access Port = 8080 E2KEY Support = FALSE Rsync Support = TRUE FS Type = ext3 Auto PowerOn = FALSE Quota Type = vfsv0

--More-- (13% of 3268 bytes)

[~] # ftp 169.254.100.101 Connected to 169.254.100.101. 220 (vsFTPd 2.0.6) Name (169.254.100.101:admin): alan 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> get init_single_disk 200 PORT command successful. Consider using PASV. 150 Opening BINARY mode data connection for init_single_disk (21536 bytes). 226 File send OK. 21536 bytes received in 0.0456 seconds (471866 bytes/s) ftp> quit

221 Goodbye. [~] # chmod 777 init_single_disk [~] # /root/init_single_disk Init system with HDD 1, all data in HDD 1 will be erased (y/n)?y

Starting init HDD 1, please wait... progress: 0%---30%---50%---90%---100%

[~] # mkdir /mnt/HDA_ROOT/update [~] # cd /mnt/HDA_ROOT/update [/mnt/HDA_ROOT/update] # ln -sf /mnt/HDA_ROOT/update /mnt/update [/mnt/HDA_ROOT/update] # ftp 169.254.100.101 Connected to 169.254.100.101. 220 (vsFTPd 2.0.6) Name (169.254.100.101:admin): alan 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> get U_TS-409_20081024-2.1.2.img 200 PORT command successful. Consider using PASV. 150 Opening BINARY mode data connection for U_TS-409_20081024-2.1.2.img (76985288 bytes). 226 File send OK. 76985288 bytes received in 10.9 seconds (7039572 bytes/s) ftp> quit 221 Goodbye. [/mnt/HDA_ROOT/update] # /etc/init.d/update.sh /mnt/HDA_ROOT/update/U_TS-409_20081024-2.1.2.img Using 120-bit encryption - (QNAPNASVERSION4) len=1048576 model name = TS-409 version = 2.1.2 16+0 records in 16+0 records out 2.1.2boot config initrd.boot initrd.boot.cksum mnt_rootfs.tar

mnt_rootfs.tar.cksum rootfs2.bz rootfs2.bz.cksum rootfs_ext.tgz rootfs_ext.tgz.cksum uImage uImage.cksum update update_img.sh Update image using HDD ... Update Kernel... 3907+1 records in 3907+1 records out Update Basic RootFS... 5614+1 records in 5614+1 records out Update Basic RootFS2... dd: /dev/sda4: Invalid argument Update Finished. [/mnt/HDA_ROOT/update] # reboot [/mnt/HDA_ROOT/update] #

You might also like