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-05-01 11:56:22

luusac
Member
Registered: 2008-04-29
Posts: 360

cleanboot installed, but is it working?

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

 

#2 2008-05-04 23:28:29

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: cleanboot installed, but is it working?

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

 

#3 2008-05-05 18:18:27

pof
Member
From: Barcelona
Registered: 2008-03-07
Posts: 28
Website

Re: cleanboot installed, but is it working?

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?

Offline

 

#4 2008-05-05 20:51:06

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: cleanboot installed, but is it working?

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

 

#5 2008-05-14 23:43:51

grmek
Member
Registered: 2008-05-14
Posts: 11

Re: cleanboot installed, but is it working?

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

 

#6 2008-05-18 21:46:22

SilentException
Member
From: Island of Krk, Croatia
Registered: 2008-05-04
Posts: 148

Re: cleanboot installed, but is it working?

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! smile


D-Link DNS-323 v1.05 fun_plug-ed + many mods,  2 x 320GB Seagate Barracuda 7200.10 RAID0, Cat6 Gigabit Network, 9k Jumbo Frames, Average (WRITE): 19,32 MB/sec, Average (READ): 28,6 MB/sec

Offline

 

#7 2008-07-07 01:19:52

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: cleanboot installed, but is it working?

Same here - same configurations - ff5 firmware 1.04.

Halt and shutdown only stop the telent session:

/ # halt
/ # cleanboot: nothing to do smile
Stopping rpc.mountd
Stopping rpc.statd
Stopping rpc.portmap
Stopping telnetd
Connection closed by foreign host.
john@john-linux:~$     

Help appreciated.

Thanks

Trux

Offline

 

#8 2008-07-07 09:36:13

TomSluyts
Member
Registered: 2008-06-26
Posts: 14

Re: cleanboot installed, but is it working?

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

 

#9 2008-07-07 11:42:03

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: cleanboot installed, but is it working?

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

 

#10 2008-07-07 20:12:22

truxntrax
Member
Registered: 2007-11-16
Posts: 33

Re: cleanboot installed, but is it working?

No same problem - halt and shutdown reboot the NAS rather than shutting it down...

Any further ideas?

Thanks

Trux

Offline

 

#11 2008-07-07 22:38:29

marinalink
Member
Registered: 2008-04-13
Posts: 56

Re: cleanboot installed, but is it working?

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

 

#12 2008-07-07 23:16:34

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

Re: cleanboot installed, but is it working?

i have 2.0.4 installed on a ch3snas but it is not working.

Offline

 

#13 2008-07-08 16:14:30

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: cleanboot installed, but is it working?

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)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#14 2008-07-08 16:17:35

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

Re: cleanboot installed, but is it working?

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

 

#15 2008-07-08 18:48:52

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: cleanboot installed, but is it working?

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)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#16 2008-07-08 19:32:03

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

Re: cleanboot installed, but is it working?

EnricoM wrote:

/dev/loop0 on /sys/crfs type squashfs (ro)
...
/usr/sbin is linked to /sys/crfs/sbin

That explains it. Thanks.

Offline

 

#17 2008-07-08 19:47:00

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: cleanboot installed, but is it working?

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)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#18 2008-07-08 20:08:15

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

Re: cleanboot installed, but is it working?

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.

Code:

cd /usr
rm sbin
mkdir sbin
cd sbin
ln -s /sys/crfs/sbin/* .
... proceed as usual ...

Offline

 

#19 2008-07-08 20:43:37

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: cleanboot installed, but is it working?

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)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#20 2008-07-08 22:34:47

mcfrost
New member
Registered: 2008-07-08
Posts: 2

Re: cleanboot installed, but is it working?

Tried it, and it works. But you should do

Code:

rm /usr/sbin/do_reboot

before continuing...
I changed /ffp/start/cleanboot from:

Code:

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

Code:

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

 

#21 2008-07-10 13:56:08

EnricoM
Member
From: Netherlands
Registered: 2008-06-03
Posts: 77

Re: cleanboot installed, but is it working?

Tried it, and it works.
I changed a part of /ffp/start/cleanboot.sh to:

Code:

....
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)


Hardware: Conceptronic CH3SNAS, FW1.03 - 2x Samsung Spinpoint F1 750 MB, no RAID  - Imation Whizz 4GB USB Flash Drive
Software:  Fun_plug 0.5 beta, SSH, Samba recycle bin, Firefly, hellanzb, nzbget, cleanboot, chrooted etch, optware, midnight commander, rsnapshot

Offline

 

#22 2008-11-23 20:59:14

mrYellow
New member
Registered: 2008-11-23
Posts: 3

Re: cleanboot installed, but is it working?

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? neutral


Nevermind, I reinstalled ffp.

Last edited by mrYellow (2008-11-24 01:22:43)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB