In case something goes wrong, either during installation or when booting HFP, here are some tips / guidelines how to determine what went wrong. In these examples, I’ll assume you installed HFP inside /home/Public/funplug/hfproot.

Determine if you’re inside a chrooted envinroment or inside the original environment

List the contents of the root folder. Inside the original environment, a folder (symbolic link) hfp will be shown. Also, your PATH will include /ffp/bin.

Orginal environment:

root:~ # ls /
bin      etc      home     linuxrc  proc     sbin     tmp      var
dev      ffp      lib      mnt      root     sys      usr
root:~ # echo $PATH
/bin:/sbin:/usr/bin:/usr/sbin:/ffp/bin:/ffp/sbin

Chrooted environment:

~ # ls /
bin      etc      lib      mnt      proc     sbin     tmp      var
dev      home     linuxrc  opt      root     sys      usr
~ # echo $PATH
/bin:/usr/bin:/usr/local/bin:/usr/sbin:/sbin

Login using the backdoor dropbear

If you configured HFP with a backdoor dropbear process, you can login at your CH3HNAS using the following command:

someone@debian$ ssh ch3hnas -p 8022

Login admin with password admin should work.

Enter the changerooted environment

In case you’re outside the chrooted environment, you can try to enter the chrooted environment by issuing the following command:

~ # chroot /home/Public/funplug/hfproot ash -l
root:/ #

Examine the startup logfile

The location of the logfile depends upon the fact if you’re inside or outside the chrooted environment.
Inside the chrooted environment:

root:~ # less /var/log/starthfp.log

Outside the chrooted environment:

root:~ # less /home/Public/funplug/hfproot/var/log/starthfp.log

From windows command prompt:

C:\>type \\ch3hnas\Public\funplug\hfproot\var\log\starthfp.log

Disable the booting of HFP

In case everything fails, you can disable the booting of HFP by editing the HFP configuration file:
Inside the chrooted environment:

root:~ # setuphfp

Use the first option to disable HFP.

Outside the chrooted environment:

~ # vi /home/Public/funplug/hfproot/etc/hfp.conf

From windows command prompt:

C:\>notepad \\ch3hnas\Public\funplug\hfproot\etc\hfp.conf

In the last two examples, change the first line to:

enabled=n

Note: this file will be writeable for everybody.

Determine if it’s safe to remove the installation folder for HFP

Inside the chrooted environment:
No, you should disable HFP first and then reboot your CH3HNAS.

Outside the chrooted environment:
Depends if your /home (and /dev and /proc) has been (bind) mounted:

~ # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
/dev/shm/tmp on /tmp type tmpfs (rw)
none on /proc type proc (rw)
devpts on /dev/pts type devpts (rw)
usbfs on /proc/bus/usb type usbfs (rw)
sysfs on /sys type sysfs (rw)
/dev/ram1 on /usr type squashfs (ro)
/dev/mtdblock4 on /etc/sysconfig/config type jffs2 (rw)
/dev/md1 on /home type xfs (rw,usrquota)
/dev/sdc1 on /home/UNTITLED-C1 type vfat (rw,fmask=0000,dmask=0000,codepage=cp437,iocharset=iso8859-1,utf8)
none on /home/Public/funplug/hfproot/proc type proc (rw)
/dev/root on /home/Public/funplug/hfproot/dev type ext2 (rw)
devpts on /home/Public/funplug/hfproot/dev/pts type devpts (rw)
/dev/root on /home/Public/funplug/hfproot/dev/shm type ext2 (rw)
sysfs on /home/Public/funplug/hfproot/sys type sysfs (rw)
/dev/md1 on /home/Public/funplug/hfproot/home type xfs (rw,usrquota)

If any of the red lines are shown, you should not remove the root folder of HFP (otherwise, you might loose the contents of your CH3HNAS). First, disable HFP and reboot your CH3HNAS.

From windows:
Check if the following file exists:

C:\>dir \\ch3hnas\Public\funplug\hfproot\home\Public\funplug\hfproot\etc\hfp.conf

If this file exists, you should first disable HFP.

Installing a package from outside the chrooted environment.

It’s also possible to install a package from outside the chrooted environment. For example, you can install the openssh package by issuing the following command:

~ # /home/Public/funplug/hfproot/bin/hfppkg -P /home/Public/funplug/hfproot install -fc openssh
installing openssh-5.6p1 ...
-=[ configure ssh ]=-
openssh-5.6p1 installed