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

#26 2008-06-05 01:03:54

gorion
Member
Registered: 2008-05-31
Posts: 9

Re: install debian in a dns 313 for dummies

Try to upload/download some files to increase statistics first. I think your 3% lost on RX is not good but maybe others could confirm it?

ADDED
OK, the same situation as mine :-( I havent found the solution.

Last edited by gorion (2008-06-05 01:05:59)

Offline

 

#27 2008-06-05 19:32:04

scapitan
Member
From: Murcia (Spain)
Registered: 2008-05-22
Posts: 49
Website

Re: install debian in a dns 313 for dummies

SOS, the hd is 57š C and the fan doesnīt work?

I have a informatic owen...


DNS-313 / native running etch4.0r3 Thanks to CharminBaer
ZEN SOLUCIONES
http://www.zensoluciones.com  (Spanish)
http://www.zsred.com (Spanish)

Offline

 

#28 2008-06-05 20:56:31

radir
Member
Registered: 2008-01-03
Posts: 68

Re: install debian in a dns 313 for dummies

scapitan wrote:

SOS, the hd is 57š C and the fan doesnīt work?

I have a informatic owen...

Hi,

Check this thread: http://dns323.kood.org/forum/t2104-program-control.html

Offline

 

#29 2008-06-05 21:59:21

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

Sorry, the fan-control-script is still missing...   Iīll take my very best (and fastest...)
As I sayd, the etch isnīt ready for download by every people yet!
Workaround: on commandline type "g751ctl -f 2" and the fan goes high speed...
Eventually you can add this command to the /etc/rc.local


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#30 2008-06-06 00:25:26

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

Another workaround:
Make a little shell-script with following content:

#! /bin/sh
while [ true ] ; do
temp=`g751temp -t|cut -b 7-8`
    if [ $temp -gt 40 ]; then
        if [ $temp -gt 45 ]; then
            g751ctl -f 1
        else
            g751ctl -f 2
        fi
    else
        g751ctl -f 0
    fi
    sleep 60
done
exit 0

Save it as /usr/sbin/fanscript, make it executable and add the following line into the /etc/rc.local

nohup /usr/sbin/fanscript&

(not 100% tested yet)

Next days I will try to write a little C-program with these functionality, for saving ressources.

Last edited by CharminBaer (2008-06-06 00:31:14)


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#31 2008-06-09 01:53:47

steffen
Member
Registered: 2008-03-09
Posts: 42

Re: install debian in a dns 313 for dummies

would this delete all stuff located on the drive? tongue

Offline

 

#32 2008-06-09 10:21:08

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

No, but when the HDD has burned out, nobody restores your data... yikes
Or did you mean installing Debian by itself? Delete old partitions certainly destroyes containing data...


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#33 2008-06-09 13:57:52

steffen
Member
Registered: 2008-03-09
Posts: 42

Re: install debian in a dns 313 for dummies

ok sad

Offline

 

#34 2008-06-09 18:40:38

scapitan
Member
From: Murcia (Spain)
Registered: 2008-05-22
Posts: 49
Website

Re: install debian in a dns 313 for dummies

CharminBaer I just put the file into the /usr/sbin, 775 and I have put your line into the rc.local but the rc.local look like that:

g751ctl -f 0
nohup /usr/sbin/pbutton -s /bin/sh -e /usr/sbin/halt.sh&
led hddyellow on
nohup /usr/sbin/fanscript&
exit 0

I have not the g751temp program, the script canīt work without it.
How can I install it? apt doesnīt know about that packet.

The first line make the fan off, so do I have to delete it??

thanks...

Last edited by scapitan (2008-06-09 21:28:38)


DNS-313 / native running etch4.0r3 Thanks to CharminBaer
ZEN SOLUCIONES
http://www.zensoluciones.com  (Spanish)
http://www.zsred.com (Spanish)

Offline

 

#35 2008-06-09 22:41:16

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

Sorry,  you be right! The first line stops the fan. Because, I have an 2,5" drive in my DNS, the supply current is lesser than 500mA at 12V, (4 - 6W max. power consumption in any cases) so I dont need a fan...

The g751ctl and g751temp programs are made by pcp, look in this thread:
http://dns323.kood.org/forum/t2104-program-control.html


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#36 2008-06-09 22:52:19

Kamik
New member
Registered: 2008-06-09
Posts: 3

Re: install debian in a dns 313 for dummies

better

Code:

 
#! /bin/sh
while [ true ] ; do
temp=`g751temp -t|cut -b 7-8`
    if [ $temp -gt 40 ]; then
        if [ $temp -lt 45 ]; then
            g751ctl -f 1
        else
            g751ctl -f 2
        fi
    else
        g751ctl -f 0
    fi
    sleep 60
done
exit 0

Last edited by Kamik (2008-06-09 22:53:46)

Offline

 

#37 2008-06-09 23:34:00

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

Oh! Itīs really a bug. I riddled long time about the difference, but you be right...
Certainly, when temperature is under 45, the fan speed should be "1" and otherwise speed "2"
when over 45.


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#38 2008-06-10 19:46:51

lt_gustavsen
Member
Registered: 2008-03-04
Posts: 8

Re: install debian in a dns 313 for dummies

Thanks for this release CharminBaer.
Actually I think this is the easiest debian install I have ever done. Last time installed debian it was a bunch of floppy's :-)
For me at least is so much more easy to upgrade and maintain a debian installation than a funplug installation. And it so fun to do the apt-get. When I generated locales I was of course reminded who slow this arm cpu is.

Big Thanks from me.

Offline

 

#39 2008-07-02 18:19:12

Kamik
New member
Registered: 2008-06-09
Posts: 3

Re: install debian in a dns 313 for dummies

2 CharminBaer

How to activate NTFS?

Offline

 

#40 2008-07-02 22:26:41

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

@Kamik,

simple, I think itīs already buit-in!
Do you have the file /lib/modules/ufsd.ko?
Your file "/etc/modules" contains a line like "ufsd" ?
Your file "/lib/modules/2.6.15/modules." contains a line like "/lib/modules/ufsd.ko" ?
Your file "/lib/modules/2.6.15/modules.dep" contains a line like "/lib/modules/ufsd.ko:" ?
You can test it with "lsmod" and when the ufsd.ko is loaded, you can also mount an NTFS-partition.

So long, ChBaer


PS: You must mount the NTFS-partition with "mount -t ufsd <partition> <mountpoint>"

Last edited by CharminBaer (2008-07-02 22:29:00)


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#41 2008-07-03 02:00:46

Kamik
New member
Registered: 2008-06-09
Posts: 3

Re: install debian in a dns 313 for dummies

@CharminBaer

Thanks! All works

Offline

 

#42 2008-07-06 00:47:54

smudo
Member
From: Budapest/Hungary
Registered: 2008-07-06
Posts: 10

Re: install debian in a dns 313 for dummies

One short question?

How can I force or set the spin down (inactive time) of the disk? Like on the dlink webpage at the power management panel I can set the timeout of inactivity...and after that period the disk spins down...but with the debian etch it wont do that....

Offline

 

#43 2008-07-07 00:12:12

CharminBaer
Member
From: Leipzig, Germany
Registered: 2008-04-25
Posts: 76

Re: install debian in a dns 313 for dummies

This function stays at our wish-list...


DNS-313 / native running etch4.0r3...
and by now running lenny with all the features and no probs.

Offline

 

#44 2008-07-07 11:18:22

radir
Member
Registered: 2008-01-03
Posts: 68

Re: install debian in a dns 313 for dummies

smudo wrote:

One short question?

How can I force or set the spin down (inactive time) of the disk? Like on the dlink webpage at the power management panel I can set the timeout of inactivity...and after that period the disk spins down...but with the debian etch it wont do that....

I think if you install hdparm package and setup your hard disk inactivity/stand-by timeout AND disable all process reading or writing hard disk then it will work.

On a non-debian firmware used to work like above, the key was to disable all processes reading/writing. For example crond which reads crontab every minute.

Might be wrong but I guess this is the right direction. Others may debate :-)

Offline

 

#45 2008-07-07 11:23:14

radir
Member
Registered: 2008-01-03
Posts: 68

Re: install debian in a dns 313 for dummies

Hi CharminBaer,

First of all thanks for the debian stuff, it was working like charm.

2nd unfortunately it was working like charm for couple of days then I left it switched off for weekend. Sunday evening I switched on, get green light ... and nothing works: cannot access telnet, no SAMBA share. Any idea what could happen?

Thanks.

Offline

 

#46 2008-07-07 15:54:19

smudo
Member
From: Budapest/Hungary
Registered: 2008-07-06
Posts: 10

Re: install debian in a dns 313 for dummies

radir wrote:

smudo wrote:

One short question?

How can I force or set the spin down (inactive time) of the disk? Like on the dlink webpage at the power management panel I can set the timeout of inactivity...and after that period the disk spins down...but with the debian etch it wont do that....

I think if you install hdparm package and setup your hard disk inactivity/stand-by timeout AND disable all process reading or writing hard disk then it will work.

On a non-debian firmware used to work like above, the key was to disable all processes reading/writing. For example crond which reads crontab every minute.

Might be wrong but I guess this is the right direction. Others may debate :-)

Hi.

Meanwhile I found the hdparm, and tried to set the inactivity timeout in the /etc/hdparm.conf...but I didn't have time to test it....so I will do it today. If it's working well, the next etch release should contain this little feature smile

Offline

 

#47 2008-07-09 11:28:29

denis.arnaud
Member
Registered: 2008-06-28
Posts: 5

Re: install debian in a dns 313 for dummies

radir wrote:

Sunday evening I switched on, get green light ... and nothing works: cannot access telnet, no SAMBA share. Any idea what could happen?

Another post (http://dns323.kood.org/forum/t2219-DNS- … reeze.html ) mentions that re-setting the hardware clock can freeze the DNS-313.

Also, from my experience, it happens that the ext2 filesystems must be checked (with 'fsck'), in particular after brutal shutdown. You can do that through the USB interface (e.g., 'fsck /dev/sdb3').

Just my $.02

Denis

Offline

 

#48 2008-07-13 09:37:02

smudo
Member
From: Budapest/Hungary
Registered: 2008-07-06
Posts: 10

Re: install debian in a dns 313 for dummies

radir wrote:

smudo wrote:

One short question?

How can I force or set the spin down (inactive time) of the disk? Like on the dlink webpage at the power management panel I can set the timeout of inactivity...and after that period the disk spins down...but with the debian etch it wont do that....

I think if you install hdparm package and setup your hard disk inactivity/stand-by timeout AND disable all process reading or writing hard disk then it will work.

On a non-debian firmware used to work like above, the key was to disable all processes reading/writing. For example crond which reads crontab every minute.

Might be wrong but I guess this is the right direction. Others may debate :-)

Unfortunatelly it doesn't work.
I followed this tutorial:

http://kurobox.com/mwiki/index.php/Debian_hdd_spindown

Killed all the services, but the disk remains running, and does not stop after the timeout period...
Maybe it's a firmware bug?

Offline

 

#49 2008-08-23 00:15:02

piper
New member
Registered: 2008-08-22
Posts: 1

Re: install debian in a dns 313 for dummies

Hi @all

i've just installed debian etch on my brand new DNS-313 with firmware version 1.0 and a 1TB WD harddrive. I just the guide from this post.

Everything went ok, the system seems to boot correctly, at least the HDD LED goes to green after about 30 secs. The only thing that bother me is that i cannot connect to the dns-313 via Telnet:

# telnet 192.168.1.3
Trying 192.168.1.3...
Connected to 192.168.1.3.
Escape character is '^]'.
Connection closed by foreign host.

That's al i got sad

I've changed the ip address to a static one (192.168.1.3) and a ping is working. also changed the MAC address and changed the 'setmacid' prog to the proposed script.
If i connect the box again over usb, the var/log/syslog does not mention any problems, it seems to have booted ok...

The host.allow and host.deny are both empty as they should be...

Can someone help me??

Thks,
Bas

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB