Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
Hi,
I have been trying to get cleanboot working so that I can try and repair the fs using e2fsck, but I can't get it to work.
1) deteted fun_plug and ffp dir (0.5)
2) copied fun_plug.tar and fun_plug to Volume_1 (its a raid1 setup)
fun_plug.log shows:
* Extracting /mnt/HD_a2/fun_plug.tar...
...
lib/libblkid.so
* Deleting /mnt/HD_a2/fun_plug.tar...
* /mnt/HD_a2/fun_plug.d/start/00syslog.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/00telnetd.sh start ...
Starting telnetd...
* /mnt/HD_a2/fun_plug.d/start/00timezone.sh not executable...
* /mnt/HD_a2/fun_plug.d/start/inetd.sh not executable...
* Done
3) # wget http://pof.eslack.org/dns323/cleanboot-2.0.tgz
# funpkg.sh cleanboot-2.0.tgz
# ${FUNPLUGDIR}/start/cleanboot.sh start
now fun_plug.log says
**** fun_plug script for DNS-323 (2007-09-16 tp@fonz.de) ****
Thu May 1 09:34:52 GMT 2008
* /mnt/HD_a2/fun_plug.d/start/00syslog.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/00telnetd.sh start ...
Starting telnetd...
* /mnt/HD_a2/fun_plug.d/start/00timezone.sh not executable...
* Running /mnt/HD_a2/fun_plug.d/start/cleanboot.sh start ...
Setting up cleanboot...
* /mnt/HD_a2/fun_plug.d/start/inetd.sh not executable...
* Done
So it looks as though cleanboot is working, but halt/shutdown do not shut the box down (they only appear to end the telnet session). reboot works. I am trying to get cleanboot working so that I can repair the fs. I tried using this script http://dns323.kood.org/forum/t1708-Modi … nance.html but kept getting en error (/mnt/HD_a2/fun_plug.d/bin/sh: /disk.sh: not found) (where I put the info from the post in a file /mnt/HD_a2/disk.sh and chmod 777 ). Can somebody please help as nobody replied to my last post asking for help with e2fsck.
I have firmware 1.04.
thank you
lu
Last edited by luusac (2008-05-01 12:14:31)
Offline
Just to confirm, I also had an issue with halt/shutdown using cleanboot. Telnet session is ended but that's it. reboot works.
Anyone an idea or a fix?
marinalink
Offline
pof wrote:
Its not working on latest conceptronic CH3SNAS firmware. I'll publish a fix in a few days (no time at the moment).
Can you confirm which firmware version do you have?
I'm using a DNS 323 with firmware 1.04B84 and ffp-0.5 (downloaded on 19.4.2008 16:30). With this configuration the execution of "halt" results in a reboot but not in a halt or shutdown of the system.
This is for sure not the purpose. Therefore my question: What goes wrong?
marinalink
Offline
pof wrote:
Its not working on latest conceptronic CH3SNAS firmware. I'll publish a fix in a few days (no time at the moment).
Can you confirm which firmware version do you have?
Using CH3SNAS with FW 1.03 here.
Cleanboot installs, but it seems not to be working properly. Upon first startup, it gave "installing Cleanboot" message (or something similar) and just hang up there. Upon pressing enter, it said something about write permission error upon doing the copy (cp) command.
If I start the cleanboot.sh with start param, it just kills telnet and hungs the NAS alltogether..
Any hint on what's going on?
Regards,
Grega
Offline
same here. since i got it, there was no need for shutdown of my dns-323 until today but halt or shutdown restart the nas. i'm using 1.05 with ffp0.5. help us pof!
Offline
Same here - same configurations - ff5 firmware 1.04.
Halt and shutdown only stop the telent session:
/ # halt
/ # cleanboot: nothing to do
Stopping rpc.mountd
Stopping rpc.statd
Stopping rpc.portmap
Stopping telnetd
Connection closed by foreign host.
john@john-linux:~$
Help appreciated.
Thanks
Trux
Offline
Using CH3SNAS with FW 1.03 gives an issues with cp and later on it doesn't find the mounted disks to unmount them.
Offline
Have a look at the new version of cleanboot v2.0.4 in this forum post:
http://dns323.kood.org/forum/t2346-smal … nboot.html
Maybe this solves your problems.
Offline
No same problem - halt and shutdown reboot the NAS rather than shutting it down...
Any further ideas?
Thanks
Trux
Offline
Are you sure that you have deinstalled the old version and installed the new version of cleanboot, version 2.0.4?
Please check if in /ffp/share/cleanboot/cleanboot.sh on line 77 it says:
if [ $1 = "shutdown" ]; then
Because in the original cleanboot 2.0 there was a small bug which was leading to a reboot of the DNS323 even if halt was requested.
Could you please give us also the System you are using (DNS or CH3SNAS)? Actually it should not make any difference...
I know it is hard to debug, what went wrong. It took me some time... I had to write a log to the usb-stick and prevent the shutdown from unmounting the USB stick. However, after every reboot the file system on the USB stick was broken, but at least one could read the log file. If you want you can try to test this on your machine.
Offline
i have 2.0.4 installed on a ch3snas but it is not working.
Offline
Cleanboot doesn't work on CH3SNAS with most recent firmware. Installation of cleanboot is not possible because it is impossible to copy a file to a read only file system . . . Seems to me that there is a difference between the CH3SNAS and DNS-323 at this point. There is another thread at this forum where several CH3SNAS users have the same problem.
Last edited by EnricoM (2008-07-08 16:16:40)
Offline
EnricoM wrote:
Cleanboot doesn't work on CH3SNAS with most recent firmware. Installation of cleanboot is not possible because it is impossible to copy a file to a read only file system . . .
What parts of the filesystem are read-only? Can you give output of 'mount'?
Offline
fonz wrote:
What parts of the filesystem are read-only? Can you give output of 'mount'?
root@MEDIASERVER:~# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type squashfs (ro)
/dev/sda2 on /mnt/HD_a2 type ext2 (rw)
/dev/sdb2 on /mnt/HD_b2 type ext2 (rw)
/dev/sda4 on /mnt/HD_a4 type ext2 (rw)
/dev/sdb4 on /mnt/HD_b4 type ext2 (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/sdc1 on /mnt/usb type ext2 (rw)
devpts on /dev/pts type devpts (rw)
The cleanboot installation fails at:
rm /usr/sbin/do_reboot 2>/dev/null
/usr/sbin is linked to /sys/crfs/sbin
root@MEDIASERVER:~# ls /usr/sbin -all
lrwxrwxrwx 1 root root 14 Jul 7 17:20 /usr/sbin -> /sys/crfs/sbin
Last edited by EnricoM (2008-07-08 18:56:28)
Offline
Is there a workaround for this? Is it possible to rewrite the script and use a rewritable copy of sys/crfs and adjusting the links (mount --bind?) to that? Or is this impossible?
Last edited by EnricoM (2008-07-08 19:48:55)
Offline
EnricoM wrote:
Is there a workaround for this? Is it possible to rewrite the script and use a rewritable copy of sys/crfs and adjusting the links (mount --bind?) to that? Or is this impossible?
Should be possible. E.g.
cd /usr rm sbin mkdir sbin cd sbin ln -s /sys/crfs/sbin/* . ... proceed as usual ...
Offline
Thanks!
I will give it a try, one day...
At this moment to busy with hellanzb stuff on my usb flash drive and preventing hard drive spinning. I'm appreciating this NAS-box and forum more and more! ;-)
Last edited by EnricoM (2008-07-08 20:44:37)
Offline
Tried it, and it works. But you should do
rm /usr/sbin/do_reboot
before continuing...
I changed /ffp/start/cleanboot from:
cleanboot_start() { echo "Setting up $name..." rm /usr/sbin/do_reboot 2>/dev/null rm /sbin/reboot 2>/dev/null rm /sbin/shutdown 2>/dev/null rm /sbin/halt 2>/dev/null rm /ffp/sbin/reboot 2>/dev/null rm /ffp/sbin/halt 2>/dev/null rm /ffp/sbin/shutdown 2>/dev/null chmod 0755 /ffp/share/cleanboot/* cp /ffp/share/cleanboot/do_reboot.pof /usr/sbin/do_reboot cp /ffp/share/cleanboot/cleanboot.sh /sbin/cleanboot.sh ln -s /usr/sbin/do_reboot /sbin/shutdown ln -s /usr/sbin/do_reboot /sbin/halt ln -s /usr/sbin/do_reboot /sbin/reboot }
to
cleanboot_start() { echo "Setting up $name..." rm /usr/sbin/do_reboot 2>/dev/null rm /sbin/reboot 2>/dev/null rm /sbin/shutdown 2>/dev/null rm /sbin/halt 2>/dev/null rm /ffp/sbin/reboot 2>/dev/null rm /ffp/sbin/halt 2>/dev/null rm /ffp/sbin/shutdown 2>/dev/null chmod 0755 /ffp/share/cleanboot/* rm /usr/sbin mkdir /usr/sbin ln -s /sys/crfs/sbin/* /usr/sbin/ rm /usr/sbin/do_reboot cp /ffp/share/cleanboot/do_reboot.pof /usr/sbin/do_reboot cp /ffp/share/cleanboot/cleanboot.sh /sbin/cleanboot.sh ln -s /usr/sbin/do_reboot /sbin/shutdown ln -s /usr/sbin/do_reboot /sbin/halt ln -s /usr/sbin/do_reboot /sbin/reboot }
Offline
Tried it, and it works.
I changed a part of /ffp/start/cleanboot.sh to:
.... cleanboot_start() { echo "Setting up $name..." cd /usr rm -r sbin mkdir /usr/sbin ln -s /sys/crfs/sbin/* /usr/sbin/ rm /usr/sbin/do_reboot 2>/dev/null rm /sbin/reboot 2>/dev/null rm /sbin/shutdown 2>/dev/null rm /sbin/halt 2>/dev/null rm /ffp/sbin/reboot 2>/dev/null rm /ffp/sbin/halt 2>/dev/null rm /ffp/sbin/shutdown 2>/dev/null chmod 0755 /ffp/share/cleanboot/* cp /ffp/share/cleanboot/do_reboot.pof /usr/sbin/do_reboot cp /ffp/share/cleanboot/cleanboot.sh /sbin/cleanboot.sh ln -s /usr/sbin/do_reboot /sbin/shutdown ln -s /usr/sbin/do_reboot /sbin/halt ln -s /usr/sbin/do_reboot /sbin/reboot } ....
Last edited by EnricoM (2008-07-10 14:02:24)
Offline
ok, total noob as i am, i think i removed something wrong.
I cannot reboot anymore. is says "ffp/bin/sh: reboot: not found"
anyone?
Nevermind, I reinstalled ffp.
Last edited by mrYellow (2008-11-24 01:22:43)
Offline