QNAPedia Community Wiki

Skip to content

Initializing TS-109/209/409/409U Series Through Linux

From QNAPedia

Jump to: navigation, search

Requirements

  • TS-109/-209/-409 series NAS
  • At least one SATA HDD
  • Linux OS with ftp server function
  • [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.  This program can be download by ftp://csdread:csdread@ftp.qnap.com/NAS/install_from_Linux/init_single_disk.
  • 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.


Procedure

  • Connect the Linux PC directly to the NAS by network cable.
  • 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.
  • 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
  • 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.
  • 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 prior to v2.1.1, 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.

  • Execute init_single_disk and wait for the completion.
  • 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


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
  • After reboot, wait for about 3 seconds, then you can connect the NAS by web browser
  • 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.


Example display of usage in the console

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: 
[~] # more /etc/config/uLinux.conf

<p>[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 </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p>

--More-- (13% of 3268 bytes)
[~] # ftp 169.254.100.101

<p>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. </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p>

<p>[~] # 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 </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> Starting init HDD 1, please wait... </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p>

progress: 0%---30%---50%---90%---100%
[~] # mkdir /mnt/HDA_ROOT/update

<p>[~] # 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. </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p>

<p>[/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... Update Finished. [/mnt/HDA_ROOT/update] # reboot </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p><p><br /> </p>



<a _fcknotitle="true" href="Category:Installation_and_Setup">Installation_and_Setup</a>
Personal tools
Language