DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-06-26 16:52:38

knireis
Member
Registered: 2007-12-10
Posts: 231

chroot debian with funplug and ffp 0.5

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

 

#2 2008-06-26 17:35:19

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: chroot debian with funplug and ffp 0.5

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

 

#3 2008-06-27 09:52:11

Sinobato
Member
Registered: 2008-06-16
Posts: 18

Re: chroot debian with funplug and ffp 0.5

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:

Code:

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)


DNS-323:  F/W:1.07  H/W:B1  ffp:0.5  HDDs: 2x1TB Standalone HDD (Hitachi HDS721010KLA330, Seagate ST31000528AS)

Offline

 

#4 2008-06-27 10:22:35

knireis
Member
Registered: 2007-12-10
Posts: 231

Re: chroot debian with funplug and ffp 0.5

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

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB