This document explains how to install Linux Debian Squeeze on DNS-320 or DNS-325 in chroot enviroment.
This installation will not harm your DNS device. The whole Linux system will be installed in the directory
on the inserted harddrive. 

However this tutorial is provided AS IS.
D-Link does not guarantee that it will work as expected.
D-Link does not provide any technical support for this kind of setup.

The installation has been tested on:
DNS-320 A1 firmware 1.00
The test unit was equipped with single 1TB Hitachi SATA hard drive which was inserted in the Left disk bay.



1)
install Fonz fun_plug script.
The goal is to enable telnet to the DNS device.

Download files:
http://www.inreto.de/dns323/fun-plug/0.5/fun_plug
http://www.inreto.de/dns323/fun-plug/0.5/fun_plug.tgz
and put them to \\DNS-device\Volume_1     where "DNS-device" is the IP address of your DNS device ;-)

Edit the fun_plug script changing:
/mnt/HD_a2
to:
/mnt/HD/HD_a2

Make a copy of the fun_plug script with name: "fun_plug.ffp"

Then shutdown and reboot the device via its WebUI interface.



2)
install prebuilded Debian Squeeze.

From the archive you have already downloaded (DNS-320&325_linuxDebian_revA_Squeeze_all_en_20110111.zip)
unpack two files:
fun_plug.debian
squeeze.tar.gz
and put them to \\DNS-device\Volume_1

Telnet to the device.
You should get the ffp prompt: /#
Perform the following commands:
# cd /mnt/HD/HD_a2
# gunzip squeeze.tar.gz
# tar -xf squeeze.tar


Now you should have a working Debian Squeeze distribution that can be chrooted during bootup.
To make it work simply copy file "fun_plug.debian" to "fun_plug".

Then shutdown and reboot the device via its WebUI interface.



After the device is up again, there should be a possibility to connect to the Debian Squeeze instllation
using SSH. After logging in you will be in the chrooted squeeze installation.
Login is "root" ;-). 
The default password for this build is "dlink".



If needed, you can copy either "fun_plug.ffp" or "fun_plug.debian"
to "fun_plug" for booting with debian or ffp.


If you want to get rid of the installation, simply delete the "squeeze" directory and the fun_plug startup script.


End.
