Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
With funplug 0.4 i used to mount the usb stick and chroot debian (and start slimserver) during startup with these lines in the funplug:
# Mounten USB-stick
insmod /mnt/HD_a2/fun_plug.d/usb-storage.ko
mkdir /mnt/usb
# sleep for 10 sec to load the module
sleep 10
mount /dev/sdc /mnt/usb
# Start slimserver in de debian chroot op usb-stick
cd /mnt/usb && chroot etch /etc/init.d/slimserver start >> /var/log/slimserver.log 2>&1
But now i upgraded to ffp 0.5 and installed this and the debian etch on the usb stick. FFP works fine from the usb stick.
However when i try to chroot and start slimserver from the funplug with these lines:
# Start slimserver in de debian chroot op usb-stick en bind the muziek directory
cd /mnt/HD_a2/sdc1 && chroot etch /etc/init.d/slimserver start >> /var/log/slimserver.log 2>&1
i get the following error in the ffp.log: chroot: No such file or directory
When i chroot manual and start slimserver it works fine, but i like to start it automatically on startup of the NAS
Any suggestions?
Last edited by knireis (2008-06-26 16:54:00)
Offline
why don't you add another script to /ffp/start to start slimserver? in start scripts you have a proper PATH set that includes /ffp/bin and /ffp/sbin (where chroot is). If you really want to add this to fun_plug, try /ffp/sbin/chroot instead of chroot.
Offline
Hi, I've been trying to setup chroot'ed Debian on my dns-323 with ffp 0.5, and following the instruction from this how to:
http://dns323.kood.org/howto:chroot_debian
However, when I do the manual chroot to Debian part:
env -i TERM=vt102 USER=root $SBINDIR/chroot /mnt/HD_a2/etch /bin/bash -ls
I'm getting error regarding "chroot directory not existing". Now I'm wondering if the howto still applies to ffp 0.5? If not, can someone point me to a more updated howto? Also, the scripts linuxrc and Debian Fun Plug in the howto does not seem to apply to the new ffp, am I correct?
Last edited by Sinobato (2008-06-27 09:59:12)
Offline
fonz wrote:
why don't you add another script to /ffp/start to start slimserver? in start scripts you have a proper PATH set that includes /ffp/bin and /ffp/sbin (where chroot is). If you really want to add this to fun_plug, try /ffp/sbin/chroot instead of chroot.
thanks for the tip, as linux newbie i'm quite surprised i got it to work the first try
Offline