Debian Installation On QNAP: Difference between revisions

From QNAPedia
Jump to navigation Jump to search
m (catchg)
(.)
(One intermediate revision by the same user not shown)
Line 1: Line 1:
== Overview ==
== Overview ==


Things you need to know prior to installation.  
Things you need to know prior to installation.


*Debian installation is standalone and '''WILL ERASE ALL '''the existing files/data on the current hard drive as well as QNAP firmware resides on the flash memory. Therefore you have to make a backup of data on your hard disk prior to installation. Detailed information on how to backup your existing data on disk or flash partitions can be found here.  
*Debian installation is standalone and '''WILL ERASE ALL '''the existing files/data on the current hard drive as well as QNAP firmware resides on the flash memory. Therefore you have to make a backup of data on your hard disk prior to installation. Detailed information on how to backup your existing data on disk or flash partitions can be found here.
*Debian on QNAP does not install a web interface for configuring the system, although it's possible to install such [http://wiki.qnap.com/wiki/Webmin_Installation_On_Debian_QNAP software].  
*Debian on QNAP does not install a web interface for configuring the system, although it's possible to install such [http://wiki.qnap.com/wiki/Webmin_Installation_On_Debian_QNAP software].
*If you decide to go ahead it is strongly recommended to first enable the [http://wiki.qnap.com/wiki/System_Recovery_Mode System Recovery Mode] on your NAS before installing Debian to your flash memory. This provides a way to recovery/restore to original QNAP firmware is case of bad flash / incomplete flash writing / unable to boot.  
*If you decide to go ahead it is strongly recommended to first enable the [http://wiki.qnap.com/wiki/System_Recovery_Mode System Recovery Mode] on your NAS before installing Debian to your flash memory. This provides a way to recovery/restore to original QNAP firmware is case of bad flash / incomplete flash writing / unable to boot.
*'''Please note''' that because Debian uses the mainline Linux kernel to which Marvell has contributed Orion support. This is work in progress and certain performance (e.g. hard drive) currently doesn't reach that seen with the QNAP firmware.&nbsp; Kernels with performance enhancements will be made available in the future.<br> <br>
*'''Please note''' that because Debian uses the mainline Linux kernel to which Marvell has contributed Orion support. This is work in progress and certain performance (e.g. hard drive) currently doesn't reach that seen with the QNAP firmware.&nbsp; Kernels with performance enhancements will be made available in the future.<br/>


== Additional Tutorials ==
== Additional Tutorials ==


Here are some additional tutorials for installing Debian:  
Here are some additional tutorials for installing Debian:


*[http://benlinton.com/posts/qnap_ts_869_pro_debian_install TS-869 Pro]
*[http://benlinton.com/posts/qnap_ts_869_pro_debian_install TS-869 Pro]


<br>


== Supported QNAP NAS Models  ==


Debian installer (Lenny RC1) is now fully supported on all the ARM-based QNAP NAS including:
== Supported QNAP NAS Models ==


*TS-109 (Standard/Pro/Pro-II)  
Debian installer (Lenny RC1) is now fully supported on all the ARM-based QNAP NAS including:
*TS-209 (Standard/Pro/Pro-II)  
 
*TS-409 (Standard/Pro/Pro-II)  
*TS-109 (Standard/Pro/Pro-II)
*TS-209 (Standard/Pro/Pro-II)
*TS-409 (Standard/Pro/Pro-II)
*TS-409U (Standard/Pro/Pro-II)
*TS-409U (Standard/Pro/Pro-II)


<br>


== Backup your data / partitions on flash memory  ==


You have to make a backup of all the data stored on your QNAP NAS before starting with the installation of Debian since Debian will format the whole disk during installation. Also, Debian will replace the QNAP firmware in flash, so it's also recommended to make a copy of the flash partitions mtd1, mtd2 and mtd3 (contains kernel image, rootfs1 and rootfs2 respectively). Debian will only modify the first two partitions but it's good to keep a copy of these three since they are needed to create a recovery image for the QNAP. (comments taken from author's site)  
== Backup your data / partitions on flash memory ==
 
You have to make a backup of all the data stored on your QNAP NAS before starting with the installation of Debian since Debian will format the whole disk during installation. Also, Debian will replace the QNAP firmware in flash, so it's also recommended to make a copy of the flash partitions mtd1, mtd2 and mtd3 (contains kernel image, rootfs1 and rootfs2 respectively). Debian will only modify the first two partitions but it's good to keep a copy of these three since they are needed to create a recovery image for the QNAP. (comments taken from author's site)
 


<br>
<pre>cd /share/Public
<pre>cd /share/Public
cat /dev/mtdblock1 &gt; mtd1
cat /dev/mtdblock1 &gt; mtd1
cat /dev/mtdblock2 &gt; mtd2
cat /dev/mtdblock2 &gt; mtd2
cat /dev/mtdblock3 &gt; mtd3
cat /dev/mtdblock3 &gt; mtd3
</pre>  
</pre>
This will put mtd1, mtd2 and mtd3 in the Public share, so you can easily copy them to your PC or to the external&nbsp;USB.enclosure.


<br>
This will put mtd1, mtd2 and mtd3 in the Public share, so you can easily copy them to your PC or to the external&nbsp;USB.enclosure...


== Enable the System Recovery Mode ==
== Enable the System Recovery Mode ==


It is strongly recommended to perform this step before installing Debian due to the possible failure when writing data to the flash memory to ensure your system can then be easily recovered&nbsp;or restored. The guide on enabling the System Recovery Mode can be found [http://wiki.qnap.com/wiki/System_Recovery_Mode here].  
It is strongly recommended to perform this step before installing Debian due to the possible failure when writing data to the flash memory to ensure your system can then be easily recovered&nbsp;or restored. The guide on enabling the System Recovery Mode can be found [http://wiki.qnap.com/wiki/System_Recovery_Mode here].


<br>


== Installation procedure  ==


The overall installation process is briefly described below:
== Installation procedure ==


*Download the Debian installer images to the QNAP NAS.  
The overall installation process is briefly described below:
*Flash the Debian installer to the flash memory, then reboots.  
 
*Debian installer starts and allows you to login via SSH to perform the installation.  
*Download the Debian installer images to the QNAP NAS.
*Flash the Debian installer to the flash memory, then reboots.
*Debian installer starts and allows you to login via SSH to perform the installation.
*Debian will be installed to disk&nbsp; and Debian kernel will be put in flash that will start Debian from the hard disk.
*Debian will be installed to disk&nbsp; and Debian kernel will be put in flash that will start Debian from the hard disk.


If you have already backup your data and intend to get started you can now go to the [http://www.cyrius.com/debian/orion/qnap/ official website]&nbsp;hosted by the project coordinator/developer for a complete, detailed, step-by-step installation guide.&nbsp;Please note that the installation&nbsp;process requires you to login via SSH to complete&nbsp;with&nbsp;thepre-defined username '''installer'''&nbsp;and password '''install'''.<br>&nbsp;  
If you have already backup your data and intend to get started you can now go to the [http://www.cyrius.com/debian/orion/qnap/ official website]&nbsp;hosted by the project coordinator/developer for a complete, detailed, step-by-step installation guide.&nbsp;Please note that the installation&nbsp;process requires you to login via SSH to complete&nbsp;with&nbsp;thepre-defined username '''installer'''&nbsp;and password '''install'''.<br/>&nbsp;
 
== Screenshots&nbsp;on&nbsp;Debian Installation ==


== Screenshots&nbsp;on&nbsp;Debian Installation  ==
The Debian installation procedure is fairly standard&nbsp;as&nbsp;the installation&nbsp;on a PC however screenshots were taken and provided below to serve as a general setup guidance.&nbsp;You&nbsp;may follow this of your choice&nbsp;and if you have&nbsp;anything in doubt&nbsp;the official guide [http://www.debian.org/releases/testing/arm here]&nbsp;can always be your friend.


The Debian installation procedure is fairly standard&nbsp;as&nbsp;the installation&nbsp;on a PC however screenshots were taken and provided below to serve as a general setup guidance.&nbsp;You&nbsp;may follow this of your choice&nbsp;and if you have&nbsp;anything in doubt&nbsp;the official guide [http://www.debian.org/releases/testing/arm here]&nbsp;can always be your friend.
[[File:Debian installation 01.jpg|RTENOTITLE]]


[[Image:Debian installation 01.jpg]]<br>
[[File:Debian installation 02.jpg|RTENOTITLE]]


[[Image:Debian installation 02.jpg]]  
[[File:Debian installation 03.jpg|RTENOTITLE]]


[[Image:Debian installation 03.jpg]]<br>
[[File:Debian installation 04.jpg|RTENOTITLE]]


[[Image:Debian installation 04.jpg]]<br>
[[File:Debian installation 05.jpg|RTENOTITLE]]


[[Image:Debian installation 05.jpg]]<br>
[[File:Debian installation 06.jpg|RTENOTITLE]]


[[Image:Debian installation 06.jpg]]<br>
[[File:Debian installation 07.jpg|RTENOTITLE]]


[[Image:Debian installation 07.jpg]]<br>
[[File:Debian installation 08.jpg|RTENOTITLE]]


[[Image:Debian installation 08.jpg]]<br>
[[File:Debian installation 09.jpg|RTENOTITLE]]


[[Image:Debian installation 09.jpg]]<br>
[[File:Debian installation 10.jpg|RTENOTITLE]]


[[Image:Debian installation 10.jpg]]<br>
[[File:Debian installation 11.jpg|RTENOTITLE]]


[[Image:Debian installation 11.jpg]]  
[[File:Debian installation 12.jpg|RTENOTITLE]]


[[Image:Debian installation 12.jpg]]  
[[File:Debian installation 13.jpg|RTENOTITLE]]


[[Image:Debian installation 13.jpg]]<br>
[[File:Debian installation 14.jpg|RTENOTITLE]]


[[Image:Debian installation 14.jpg]]<br>
[[File:Debian installation 15.jpg|RTENOTITLE]]


[[Image:Debian installation 15.jpg]]<br>
[[File:Debian installation 16.jpg|RTENOTITLE]]


[[Image:Debian installation 16.jpg]]<br>
[[File:Debian installation 17.jpg|RTENOTITLE]]


[[Image:Debian installation 17.jpg]]<br>
[[File:Debian installation 18.jpg|RTENOTITLE]]


[[Image:Debian installation 18.jpg]]<br>
[[File:Debian installation 19.jpg|RTENOTITLE]]


[[Image:Debian installation 19.jpg]]<br>
[[File:Debian installation 20.jpg|RTENOTITLE]]


[[Image:Debian installation 20.jpg]]<br>
[[File:Debian installation 21.jpg|RTENOTITLE]]


[[Image:Debian installation 21.jpg]]<br>
[[File:Debian installation 21-1.jpg|RTENOTITLE]]


[[Image:Debian installation 21-1.jpg]]<br>
[[File:Debian installation 21-2.jpg|RTENOTITLE]]


[[Image:Debian installation 21-2.jpg]]<br>
[[File:Debian installation 21-3.jpg|RTENOTITLE]]


[[Image:Debian installation 21-3.jpg]]<br>
[[File:Debian installation 22.jpg|RTENOTITLE]]


[[Image:Debian installation 22.jpg]]<br>
[[File:Debian installation 23.jpg|RTENOTITLE]]


[[Image:Debian installation 23.jpg]]<br>
[[File:Debian installation 24.jpg|RTENOTITLE]]


[[Image:Debian installation 24.jpg]]<br>
[[File:Debian installation 25.jpg|RTENOTITLE]]


[[Image:Debian installation 25.jpg]]<br>
[[File:Debian installation 26.jpg|RTENOTITLE]]


[[Image:Debian installation 26.jpg]]<br>
[[File:Debian installation 27.jpg|RTENOTITLE]]


[[Image:Debian installation 27.jpg]]<br>
[[File:Debian installation 31.jpg|RTENOTITLE]]


[[Image:Debian installation 31.jpg]]<br>


<br>


== Additional Resources ==
== Additional Resources ==


*[http://www.cyrius.com/bio/ About the author]  
*[http://www.cyrius.com/bio/ About the author]
*[http://www.cyrius.com/debian/orion/qnap/ Official Debian on QNAP project site]  
*[http://www.cyrius.com/debian/orion/qnap/ Official Debian on QNAP project site]
*[http://www.cyrius.com/debian/orion/qnap/ts-109/faq.html TS-109]&nbsp;/&nbsp;[http://www.cyrius.com/debian/orion/qnap/ts-209/faq.html TS-209]&nbsp;/&nbsp;[http://www.cyrius.com/debian/orion/qnap/ts-409/faq.html TS-409]&nbsp;specific FAQs  
*[http://www.cyrius.com/debian/orion/qnap/ts-109/faq.html TS-109]&nbsp;/&nbsp;[http://www.cyrius.com/debian/orion/qnap/ts-209/faq.html TS-209]&nbsp;/&nbsp;[http://www.cyrius.com/debian/orion/qnap/ts-409/faq.html TS-409]&nbsp;specific FAQs
*[http://forum.qnap.com/viewtopic.php?f=42&t=1344 Debian thread @ QNAP Forum]
*[http://forum.qnap.com/viewtopic.php?f=42&t=1344 Debian thread @ QNAP Forum]


<br>


[[Category:Debian On QNAP| ]]
[[Category:Pages with broken file links]] [[Category:Debian On QNAP]]

Revision as of 16:03, 2 September 2016

Overview

Things you need to know prior to installation.

  • Debian installation is standalone and WILL ERASE ALL the existing files/data on the current hard drive as well as QNAP firmware resides on the flash memory. Therefore you have to make a backup of data on your hard disk prior to installation. Detailed information on how to backup your existing data on disk or flash partitions can be found here.
  • Debian on QNAP does not install a web interface for configuring the system, although it's possible to install such software.
  • If you decide to go ahead it is strongly recommended to first enable the System Recovery Mode on your NAS before installing Debian to your flash memory. This provides a way to recovery/restore to original QNAP firmware is case of bad flash / incomplete flash writing / unable to boot.
  • Please note that because Debian uses the mainline Linux kernel to which Marvell has contributed Orion support. This is work in progress and certain performance (e.g. hard drive) currently doesn't reach that seen with the QNAP firmware.  Kernels with performance enhancements will be made available in the future.

Additional Tutorials

Here are some additional tutorials for installing Debian:


Supported QNAP NAS Models

Debian installer (Lenny RC1) is now fully supported on all the ARM-based QNAP NAS including:

  • TS-109 (Standard/Pro/Pro-II)
  • TS-209 (Standard/Pro/Pro-II)
  • TS-409 (Standard/Pro/Pro-II)
  • TS-409U (Standard/Pro/Pro-II)


Backup your data / partitions on flash memory

You have to make a backup of all the data stored on your QNAP NAS before starting with the installation of Debian since Debian will format the whole disk during installation. Also, Debian will replace the QNAP firmware in flash, so it's also recommended to make a copy of the flash partitions mtd1, mtd2 and mtd3 (contains kernel image, rootfs1 and rootfs2 respectively). Debian will only modify the first two partitions but it's good to keep a copy of these three since they are needed to create a recovery image for the QNAP. (comments taken from author's site)


cd /share/Public
cat /dev/mtdblock1 > mtd1
cat /dev/mtdblock2 > mtd2
cat /dev/mtdblock3 > mtd3

This will put mtd1, mtd2 and mtd3 in the Public share, so you can easily copy them to your PC or to the external USB.enclosure...

Enable the System Recovery Mode

It is strongly recommended to perform this step before installing Debian due to the possible failure when writing data to the flash memory to ensure your system can then be easily recovered or restored. The guide on enabling the System Recovery Mode can be found here.


Installation procedure

The overall installation process is briefly described below:

  • Download the Debian installer images to the QNAP NAS.
  • Flash the Debian installer to the flash memory, then reboots.
  • Debian installer starts and allows you to login via SSH to perform the installation.
  • Debian will be installed to disk  and Debian kernel will be put in flash that will start Debian from the hard disk.

If you have already backup your data and intend to get started you can now go to the official website hosted by the project coordinator/developer for a complete, detailed, step-by-step installation guide. Please note that the installation process requires you to login via SSH to complete with thepre-defined username installer and password install.
 

Screenshots on Debian Installation

The Debian installation procedure is fairly standard as the installation on a PC however screenshots were taken and provided below to serve as a general setup guidance. You may follow this of your choice and if you have anything in doubt the official guide here can always be your friend.

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE

RTENOTITLE


Additional Resources