{"id":15,"date":"2014-04-22T21:15:43","date_gmt":"2014-04-22T17:15:43","guid":{"rendered":"http:\/\/ustinych.net\/wordpress\/?p=15"},"modified":"2014-05-12T16:51:29","modified_gmt":"2014-05-12T12:51:29","slug":"%d1%80%d1%83%d1%87%d0%bd%d0%b0%d1%8f-%d1%83%d1%81%d1%82%d0%b0%d0%bd%d0%be%d0%b2%d0%ba%d0%b0-%d0%bf%d1%80%d0%be%d1%88%d0%b8%d0%b2%d0%ba%d0%b8-%d0%bd%d0%b0-qnap","status":"publish","type":"post","link":"https:\/\/ustinych.net\/wordpress\/?p=15","title":{"rendered":"\u0420\u0443\u0447\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043f\u0440\u043e\u0448\u0438\u0432\u043a\u0438 \u043d\u0430 QNAP"},"content":{"rendered":"<div id=\"mw-content-text\" class=\"mw-content-ltr\" dir=\"ltr\" lang=\"ru\" style=\"color: #000000;\">\n<p>f the firmware file is a zip file, then wherever you have copied it to on the server, firstly unzip it:<\/p>\n<pre style=\"color: black;\"># unzip TS-410_3.5.2_Build1126.zip<\/pre>\n<p>You will get some minimal output with the above command:<\/p>\n<pre style=\"color: black;\">Archive: TS-410_3.5.2_Build1126.zip\r\ninflating: TS-410_3.5.2_Build1126.img<\/pre>\n<p><b>[Two important checks]<\/b><\/p>\n<p>(1) Please make sure there is \/mnt\/HDA_ROOT\/update folder.<\/p>\n<p>If it does not exist, create it using<\/p>\n<pre style=\"color: black;\"># mkdir \/mnt\/HDA_ROOT\/update<\/pre>\n<p>(2) Confirm no \/mnt\/update file or folder.<\/p>\n<p>If it exists, you need to delete it using:<\/p>\n<pre style=\"color: black;\"># rm -rf \/mnt\/update<\/pre>\n<p>if you get a message saying:<\/p>\n<p>&#171;rm: unable to remove &#8216;\/mnt\/update&#8217;: Device or resource busy&#187;, unmount the folder and try the rm line above again. To unmount use:<\/p>\n<pre style=\"color: black;\"># umount \/mnt\/update<\/pre>\n<p>After the above two checks, execute the commands below to perform the update. If updating from 4.0.x to 4.0.5, 4.1 or newer,<br \/>\ndo not copy or move the image to HDA_ROOT\/update, let&#8217;s make a work copy on public.<br \/>\nThis is required avoid any &#171;System update failed. No enough space on RAM\/ disk available for firmware update.&#187; errors:<\/p>\n<ol>\n<li>Copy the image file to the normal update location:\n<pre style=\"color: black;\"># cp \/share\/Public\/TS-119_20131219-4.1.0.img \/share\/Public\/TS-119_20131219-4.1.0-work.img<\/pre>\n<\/li>\n<li>Create a link to the \/mnt\/update location:\n<pre style=\"color: black;\"># ln -sf \/mnt\/HDA_ROOT\/update \/mnt\/update<\/pre>\n<\/li>\n<li>Run the update script:\n<pre style=\"color: black;\"># \/etc\/init.d\/update.sh \/share\/Public\/TS-119_20131219-4.1.0-work.img<\/pre>\n<\/li>\n<\/ol>\n<p>Keeping the &#171;original&#187; procedure here &#8212; not to be repeated when doing the above 1-2-3. After the above two checks, execute the commands below to perform the update.<\/p>\n<ol>\n<li>Copy the image file to the normal update location:\n<pre style=\"color: black;\"># mv \/share\/Public\/TS-209_2.1.2_build1031.img \/mnt\/HDA_ROOT\/update\/<\/pre>\n<\/li>\n<li>Create a link to the \/mnt\/update location:\n<pre style=\"color: black;\"># ln -sf \/mnt\/HDA_ROOT\/update \/mnt\/update<\/pre>\n<\/li>\n<li>Run the update script:\n<pre style=\"color: black;\"># \/etc\/init.d\/update.sh \/mnt\/HDA_ROOT\/update\/TS-209_2.1.2_build1031.img<\/pre>\n<\/li>\n<\/ol>\n<p><b>Note<\/b>\u00a0while the update script runs, you will get some output feedback in the terminal, similar to the following.<br \/>\nThis particular update was conducted on a TS-410, with update package as shown, TS-410_3.5.2_Build1126.im, so here, as with any update,<br \/>\nthe various commands listed above which reference a particular update image would change with whichever update image you need to use:<\/p>\n<p><b>If you get some error similar with: &#171;undefined symbol: lock_system_update&#187;<br \/>\nthen run the command below and do the update procedure again<\/b><\/p>\n<pre style=\"color: black;\">rm \/sbin\/lock_system_update; echo '#!\/bin\/sh' &gt; \/sbin\/lock_system_update; chmod +x \/sbin\/lock_system_update<\/pre>\n<pre style=\"color: black;\">[\/] # \/etc\/init.d\/update.sh \/mnt\/HDA_ROOT\/update\/TS-410_3.5.2_Build1126.img\r\ncksum=1727365263\r\nUsing 120-bit encryption - (QNAPNASVERSION4)\r\nlen=1048576\r\nmodel name = TS-410\r\nversion = 3.5.2\r\n16+0 records in\r\n16+0 records out\r\n3.5.2OLD MODEL NAME = TS-410\r\nAllow upgrade\r\nboot\/\r\nconfig\/\r\nfw_info\r\ninitrd.boot\r\ninitrd.boot.cksum\r\nqpkg.tar\r\nqpkg.tar.cksum\r\nrootfs2.img\r\nrootfs2.img.cksum\r\nrootfs_ext.tgz\r\nrootfs_ext.tgz.cksum\r\nuImagev\r\nuImage.cksum\r\nupdate\/\r\nupdate_check\r\nupdate_img.sh\r\ntune2fs 1.41.4 (27-Jan-2009)\r\nSetting maximal mount count to -1\r\nSetting interval between checks to 0 seconds\r\nUpdate image using HDD ...\r\nUpdate Kernel ...\r\n4030+1 records in\r\n4030+1 records out\r\nUpdate Basic RootFS ...\r\n17353+1 records in\r\n17353+1 records out\r\nUpdate Basic RootFS2 ...\r\n6144+0 records in\r\n6144+0 records out\r\n1+0 records in\r\n1+0 records out\r\nUpdate Finished.\r\nset cksum [1727365263]\r\n[\/] #<\/pre>\n<p>Then reboot the system after manually updating the firmware:<\/p>\n<pre style=\"color: black;\"># reboot<\/pre>\n<\/div>\n<div id=\"catlinks\" class=\"catlinks\" style=\"color: #000000;\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>f the firmware file is a zip file, then wherever you have copied it to on the server, firstly unzip it: # unzip TS-410_3.5.2_Build1126.zip You will get some minimal output with the above command: Archive: TS-410_3.5.2_Build1126.zip inflating: TS-410_3.5.2_Build1126.img [Two important checks] (1) Please make sure there is \/mnt\/HDA_ROOT\/update folder. If it does not exist, create\u2026 <span class=\"read-more\"><a href=\"https:\/\/ustinych.net\/wordpress\/?p=15\">\u0427\u0438\u0442\u0430\u0442\u044c \u0434\u0430\u043b\u0435\u0435 &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":140,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[5,4,6],"class_list":["post-15","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-qnap","tag-firmware","tag-qnap-2","tag-update"],"_links":{"self":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/15","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=15"}],"version-history":[{"count":2,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions"}],"predecessor-version":[{"id":18,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/15\/revisions\/18"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=\/wp\/v2\/media\/140"}],"wp:attachment":[{"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=15"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=15"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ustinych.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=15"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}