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 2009-01-09 20:34:02

Gimp
Member
Registered: 2009-01-09
Posts: 8

Restart after adding to cron renders fun_plug non-functional

Hi, I have a dns-323, brand new, with firmware 1.05. 2x seagate 1tB drives
I installed fun_plug last night, everything was working fun, got ssh going, added AFP server + bonjour support, transfered all my data across.
This morning, I tried to add a start script to setup cron to do a nightly rsync backup. After setting it all up, I restarted my dns-323 (using cleanboot's "reboot" command) to make sure it was adding to the crontab. On startup I noticed the share did not show up on bonjour.

The DNS-323 did not start fun_plug. ssh is inaccessible.

For some reason, my Volume_1 hard drive light is blinking constantly now, and I can hear it being accessed, however no data is being transfered on the network. Edit: After waiting about 10 minutes the drive light is no longer blinking, and the access noises have stopped, however, the problem of fun_plug not starting remains.

accessing the drive using samba is still functional, as is the dlink web interface. The ffp.log file is empty.

Any suggestions?

Here is the script I put in /mnt/HD_a2/ffp/start/editcron.sh

Code:

#!/bin/sh

CRONTXT=/mnt/HD_a2/crontab.txt

# start with existing crontab
/bin/crontab -l > $CRONTXT

# add the Rsync job to execute at 2:05 am - also create a logfile
/bin/echo "5 2 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_a2 /mnt/HD_b2 
>/mnt/HD_a2/ffp/log/rsync.last.log 2>&1" >> $CRONTXT

# install the new crontab
/bin/crontab $CRONTXT

# clean up
/bin/rm $CRONTXT

Edit again: It seems now there is another problem. I have 400+ GB on the dns-323, however, two of the largest folders (my movies (340GB) and my music (75GB) Are showing as being empty (0 items), and the dns-323 is showing 454.54GB available.

Last edited by Gimp (2009-01-09 21:14:39)

Offline

 

#2 2009-01-09 21:55:33

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Restart after adding to cron renders fun_plug non-functional

Did you disable telnet when you installed ssh?
If not the telnet server could be running to give you telnet access to your DNS-323.

One other question about your editcron.sh,
in the 9th line, which starts with /bin/echo,
this must be one continuous statement (no carriage return or line breaks)  from the /bin/echo
all the way through to the $CRONTEXT.  This statement can word warp but it can't have
any line breaks in it, or it will be interpreted as two separate commands

The first command would be the rsync command (without the logging part) and
that could be causing the disk activity you are experiencing  at startup.


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#3 2009-01-09 22:08:00

Gimp
Member
Registered: 2009-01-09
Posts: 8

Re: Restart after adding to cron renders fun_plug non-functional

mig wrote:

Did you disable telnet when you installed ssh?
If not the telnet server could be running to give you telnet access to your DNS-323.

One other question about your editcron.sh,
in the 9th line, which starts with /bin/echo,
this must be one continuous statement (no carriage return or line breaks)  from the /bin/echo
all the way through to the $CRONTEXT.  This statement can word warp but it can't have
any line breaks in it, or it will be interpreted as two separate commands

The first command would be the rsync command (without the logging part) and
that could be causing the disk activity you are experiencing  at startup.

Yeah, I disabled telnet.

It seems there is a linebreak in there, I guess I missed one.

Code:

/bin/echo "5 2 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_a2 /mnt/HD_b2 
>/mnt/HD_a2/ffp/log/rsync.last.log 2>&1" >> $CRONTXT

But I can't edit the file to remove it.

Offline

 

#4 2009-01-09 22:33:44

duhblow7
Member
Registered: 2008-05-29
Posts: 18

Re: Restart after adding to cron renders fun_plug non-functional

The first step in fun_plug is to start writing to the log.  Perhaps the permissions are incorrect. 

What can you do?  Can you edit fun_plug?  If you can access the shares, get telnet back up.

Offline

 

#5 2009-01-09 22:38:16

Gimp
Member
Registered: 2009-01-09
Posts: 8

Re: Restart after adding to cron renders fun_plug non-functional

duhblow7 wrote:

The first step in fun_plug is to start writing to the log.  Perhaps the permissions are incorrect. 

What can you do?  Can you edit fun_plug?  If you can access the shares, get telnet back up.

I can access the shares and edit fun_plug. How would I go about re-enabling telnet if fun_plug doesn't seem to be loading?

Offline

 

#6 2009-01-09 22:52:31

duhblow7
Member
Registered: 2008-05-29
Posts: 18

Re: Restart after adding to cron renders fun_plug non-functional

I'm not convinced that fun_plug is not loading.  It could load, but once it tries to write it's failing.  Try this.

http://dns323.kood.org/howto:telnet

Offline

 

#7 2009-01-09 23:10:18

Gimp
Member
Registered: 2009-01-09
Posts: 8

Re: Restart after adding to cron renders fun_plug non-functional

Alright, well, it seems my NAS is now in-accessable. I'd like to start from scratch. Are there instructions on how to completely reset / remove fun_plug etc?

Offline

 

#8 2009-01-10 02:10:47

mig
Member
From: Seattle, WA
Registered: 2006-12-21
Posts: 532

Re: Restart after adding to cron renders fun_plug non-functional

I believe if you copy the fun_plug.tgz to the root of the drive,
the fun_plug script will re-install ffp over the previous ffp directory.

This should get telnet working again.  Of course this will overwrite
and changes you made since the first installation, and the flawed
editcron.sh script will still be executed (I think?), until you remove it
from the ffp/start directory or remove the executable permissions.

Last edited by mig (2009-01-10 02:11:25)


DNS-323 • 2x Seagate Barracuda ES 7200.10 ST3250620NS 250GB SATAII (3.0Gb/s) 7200RPM 16MB • RAID1 • FW1.03 • ext2 
Fonz's v0.3 fun_plug http://www.inreto.de/dns323/fun-plug

Offline

 

#9 2009-01-10 04:27:46

Gimp
Member
Registered: 2009-01-09
Posts: 8

Re: Restart after adding to cron renders fun_plug non-functional

Well, thanks guys, I've reset the NAS, and reformatted the drives. I'll start again and hopefully not miss that line break this time.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB