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-01-24 16:23:47

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Power Save Fails

Hallo!

I have had my DNS-323 turned on since we installed and turned it on for the first time and it has worked fine until now. We had a little power cut failure and when we turned it on again the power save mode got crazy, it is adjusted to turn off the harddrives after 5 min. But after the power cut failure it turns off after 5 minutes and then it starts up again directly after it has turned off and so on. I have not installed any funplug yet, but I am planning too and no computers are on when it happens.

I am running the lastest firmware 1.03.

What can be the problem, help?

Kindly regard
Mikael

Offline

 

#2 2008-01-24 18:13:24

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

If you've been using the DNS-323 as a print server you may have unprinted jobs in the queue

Offline

 

#3 2008-01-24 19:15:30

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Thanks for your answer Fordem!

I have DNS-323 as a print server to Canon MP730, but it goes really slow when I print and the computer nearly hangs because it takes many minutes to contact the printer. When I of misstake have printed two copies of a document I havent been able to access the print queue from the computer to delete the extra print jobs, how can I do it? How can I access the unprinted jobs to delete them?

Offline

 

#4 2008-01-25 00:38:29

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

Mistr wrote:

Thanks for your answer Fordem!

I have DNS-323 as a print server to Canon MP730, but it goes really slow when I print and the computer nearly hangs because it takes many minutes to contact the printer. When I of misstake have printed two copies of a document I havent been able to access the print queue from the computer to delete the extra print jobs, how can I do it? How can I access the unprinted jobs to delete them?

Take a look at the Wiki - it's documented there - under known issues

Offline

 

#5 2008-01-25 17:42:38

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Ok, I hope D-link fix this bug. But how do I delete the printer spooling directory manually? Where can I find this directory?

Kindly regard, Mikael

Offline

 

#6 2008-01-25 21:15:53

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

Did you read the wiki article?  It tells you where to go and what to do ...

Disc Spin-up Issue
Firmware: 1.01, 1.01b23, 1.02 and 1.03
Severity: Medium
D-Link correction: N/A
Description: If you have, for some reason, failed to print from the unit there might be unfinished jobs in the lp-queue. The printer daemon will access this directory every 10th minute or so, causing the disc to spin-up.

Workaround: Remove the hidden directory \.lpd in \\NAS\HDD_1 (1.01 FW) or \\NAS\Volume_1 (1.02 and 1.03 FW) or telnet to the device and clear the lp-queue with command /sys/crfs/LPRng/lprm.

To see the lp queue, use /sys/crfs/LPRng/lpq or if you shutdown and startup your DNS-323 often, you can create a fun_plug with the following line in it:

/sys/crfs/LPRng/lprm allwhich should clear the print queue at start up.

Spin-ups have been reported even after the workaround has been performed. If this happens, print one succesful page and it should then be fixed.

This comes from here.

Offline

 

#7 2008-01-25 23:58:02

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Oh no, I noticed it after I sent my message, I read the first bug on the wiki "Printer spooler buffering issue" and was very sure that it were this bug you meant :-). I tried to access the directory \\NAS\Volume_1\.lpd but the folder doesn´t exist, I also looked into this path: \\NAS\lp but no document were waiting. I will try via telnet if I succeed to install the funplug.

Kindly regards, Mikael

Offline

 

#8 2008-01-26 01:30:38

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

I take it that you realise that \\NAS\Volume_1 refers to \\whatever-you-call-your-DNS-323\Volume_1, and don't be too surprised if you don't find \\NAS\Volume_1\.lpd, but you do find \\NAS\Volume_2\.lpd - it kind of depends on which drive was installed when.

Offline

 

#9 2008-01-26 01:54:08

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Yes, I am not stupid :-) of course I took my own path and I only have on drive installed so the other path doesn´t exist at all.

Offline

 

#10 2008-01-26 02:09:36

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Jippi! I installed my first funplug and it works! I took a picture of printer jobs which is none.


Attachments:
Attachment Icon Telnet.jpg, Size: 35,617 bytes, Downloads: 204

Offline

 

#11 2008-01-26 09:52:46

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

having same problem but no printer hooked up

Offline

 

#12 2008-01-26 11:54:14

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Thanks for your help fordem! Now everything works again :-)

Offline

 

#13 2008-01-26 12:00:22

Mistr
Member
From: Stockholm, Sweden
Registered: 2008-01-24
Posts: 11

Re: Power Save Fails

Hi leftkidney!

Have you tested to do the same thing as me? When I searched for the problem I came across that it could be that the Daylight Saving Time setting schould be set at None instead of USA or EU. Test this and see if it works.

Kindly regards Mikael

Offline

 

#14 2008-02-04 07:05:47

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

pretty sure it is being acceses because "wireshark" shows a ARP request from my router and/or computer asking "who has 192.168.1.112? (the IP of the DNS)" and getting an answer "(MAC add) has 192.168.1.112"

how can I stop this from happening

Offline

 

#15 2008-02-04 18:19:53

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

How can you stop what from happening - the DNS-323 from spinning up or the router/computer from sending the arp request?

First - I don't think an arp request will cause the DNS-323 to spin up - I'm too lazy to drag out my laptop and reconfigure my network switch to go snooping, but, Windows will flush a stale MAC address from the arp cache after two minutes, so if I have not accessed my DNS-323 long enough for it to spin down (default 5 mins), it's probably a safe assumption that if it has "spundown", and if I attempt to ping it, the first thing the Windows system will do is issue an arp request in order to get the MAC address it needs.

I can ping the DNS-323 without it spinning up, so it's more than just an arp request that's causing yours to spin up.

As a matter of fact, whilst responding to your post, I have done a lot more than just ping the device, I have pulled up the web admin interface, logged in and checked the power management settings - all without the drives spinning up.  To get the drives to spin up I had to do a directory listing and I was able to spin the two drives up individually, so I'm pretty certain that it takes more than just routine network activity to bring the DNS-323 out of a "sleep mode"

Look closer ....

1 - the arp request is just the first step in the sequence of an attempt to access the device.
2 - there will be no arp request, unless there has been an attempt to access the device.

Last edited by fordem (2008-02-04 19:02:19)

Offline

 

#16 2008-02-05 01:24:51

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

can I just post the log from wireshark and someone who knows about this kinda thing can tell me what it means?

Offline

 

#17 2008-02-05 02:48:30

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

Before we even get to looking at the logs - let's discuss your network configuration because it makes a major difference.

Many small networks are built around unmanaged switches, possibly an integral part of a router, and these switches limit the visibility of network analyzers to the traffic to/from the system they are running on.

Offline

 

#18 2008-02-05 05:44:03

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

I have a WRT54G ver 2 running Hyper+WRT tofu firmware up to date and a Linksys EZXS55W 5 port work group switch and 2 wired computers 1 XBOX 360 1 XBOX 1 running XBMC and 4 wireless computers    oh and comcast cable internet as if that would matter

connections are as follows

Comcast modem into WRT54G

WRT54G into EZXS55W

DNS-323 into WRT54G

ASUS P5W DH Deluxe computer into WRT

Intel D845GEBV2 computer into WRT

XBOX 1 running XBMC to WRT - not always running

XBOX 360 to EZXS55W - not always running

a MacBook wireless - not always running

a HP laptop running windows XP Media Center Edition wireless - not always running

a DELL Latitude D620 laptop running Ubuntu - not always running



anything that is not always running is off at the time of having these problems

my mobo has 2 NIC's on it so could I elimate this problem by connecting it into that and then sharing it, or would that make my computer run more things than it normally does

Offline

 

#19 2008-02-05 06:16:07

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

The Linksys EZXS55W is a typical workgroup switch - unmanagable and "unconfigurable" - port monitoring is not an option, the WRT54G is also a typical consumer grade router - as shipped by Linksys, port mirroring is not an option and although I could be wrong, I suspect that the ASIC used for the switch function will support mirroring, so even with third party software, it's unlikely that you could capture anything of value with a network analyzer.

If you want to be 100% certain whether the problem is caused by access or not just unplug the ethernet cable to the DNS-323 and leave it disconnected for whatever time period you have configured in the power management settings - if it goes into sleep mode disconnected, but not when connected then external access is what's keeping it awake.

Offline

 

#20 2008-02-05 07:38:47

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

the WRT is running modded firmware the HyperWRT+Thibor a derivative of the HyperWRT+tofu firmware almost the same just more up to date

it allows all sorts of stuff that normal firmware wont allow it can do almost anything that a enterprise router could do    http://www.linksysinfo.co.uk/thibor/


also if I set it to 5 min it turns off after 5 min but then back on after 2 min and repeats that        if I unplug the wire it does the same thing     I should of thought of that before      I havetnt updated to the 1.04 firmware yet because I have to reformat the HD's and have no place to put the files

WTF how does D-Link except people to do this, i mean the reason that they bought this NAS was probably because of storage problems and the NAS feature but where are people sosposta transfer the 500-2000GB that could be in there for a firmware update - just stupid and bad coding IMO

Last edited by leftkidney (2008-02-05 07:40:45)

Offline

 

#21 2008-02-05 10:52:39

sjmac
Member
Registered: 2008-01-21
Posts: 222

Re: Power Save Fails

leftkidney wrote:

WTF how does D-Link except people to do this, i mean the reason that they bought this NAS was probably because of storage problems and the NAS feature but where are people sosposta transfer the 500-2000GB that could be in there for a firmware update - just stupid and bad coding IMO

Do D-Link say that? Don't do it if you don't want to, and don't expect any support from D-Link. I didn't take any special precautions when I updated from 1.03 to 1.04b82, and then to the 1.04 (aka 1.04b84), and I didn't have any data loss. But then my data is mostly backups of data stored elsewhere, and I was planning to reformat the drives anyway - your data is probably more important than mine ;-)

I haven't seen anyone report data loss on this forum going from 1.03 to 1.04. You might have to set up users and groups again. Some discussion about if this is needed in this thread http://dns323.kood.org/forum/post.php?t … ;qid=10346. I only have one user in one group (for "private" files), and then "Everyone" access for read only access to one share, and I can't remember if I needed to set it up again or not.

So, take the precautions you think are necessary and then go for it!

Offline

 

#22 2008-02-05 11:36:51

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

I will do this I have to borrow a 750GB HD from a friend and back up and update just to be safe and then I will see whats up

but still it shouldnt matter as it should work with the 1.03 firmware



can you conform something about the firmware 1.04

in the info about the update dlink says

- Changed Max. length of username and password for email alerts to 31 characters.
- Changed Max. length of username and password for Scheduled Downloads to 15 characters.

but what about the admin and users?

who cares about this if the admin password is limited to 8 characters?

Offline

 

#23 2008-02-05 15:33:17

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

leftkidney - Seeing as I have no real interest in third party firmware for the WRT54G, I didn't bother to read past the feature list, all of which appears to be router functionality, with a few wireless features - nothing switch related is mentioned - and nothing to change my opinion that there is a single switch ASIC in the device.

Sure it now has enterprise router features, but does it have enterprise switch features - I don't think so, and I don't think adding those features is as simple as a firmware upgrade - I could be wrong but I don't think the silicon supports it.

In short - looking at wireshark logs is not likely to produce anything of significant value.  This is probably a moot point since you already know that the device will spin backup even when disconnected, indicating that the spinup is caused be something internal.  You now need to start looking at what you're doing with the device - there are many documented instances where some added functionality needs to write to a log or similar that causes the spinup.

With regard the firmware flash and the backup - strictly speaking it's not required, assuming you're already running ext2 - it is however good practise and DLink points this out in RED on the support webpage, directly above the list of available firmware.  I have noticed that it seems to be only in the consumer end of things that I see the sort of arguement that you present - where are you supposed to transfer the data before a firmware update?

This is not about bad coding - the best coders in the world can't prevent a glitch from occuring during a firmware flash.  It's about common sense - why should you need to transfer the data anywhere - if it's of any value you should already have it backed up elsewhere.

Offline

 

#24 2008-02-08 12:09:56

leftkidney
Member
Registered: 2007-12-26
Posts: 54

Re: Power Save Fails

true another backup would be good   I have thought of getting 2 of these and going from one to the other but I am happier with my PC running FreeNAS so I might just sell this because of the problems I have had with it so far

Power Management dont work - even with the network cable unpluged!
gets hot as hell, sometimes almost to hot to touch - not that I need to touch it but still, I have fixed this by modding the fan to stay on all the time
a minor one but, the blue lights are kinda bright
admin acc password limited to 8 characters - but scheduled downloads passwords arent?

I assume these can be fixed with the hacked firmware but I would like a better way to flash it other than needing to solder a RS-232 port in it, like say the normal firmware flashing method just with hacked firmware


about the HD's in there, if they are just ext2 file system then can I remove them and read them using a PC running linux which should be able to read that format?   assuming they arent in a RAID format they are just 2 separate drives

Offline

 

#25 2008-02-08 14:47:46

fordem
Member
Registered: 2007-01-26
Posts: 1938

Re: Power Save Fails

@left kidney - perhaps you have a defective unit - mine certainly doesn't run all the time and never gets more than barely warm even when in use.

Either that or you don't understand my questions - in another thread you just posted that you have no hacks, yet here you are saying you have modded the unit so the fan stays on all the time.  Whether you rewired the fan or run fun_plug and some sort of fan control script, it's a hack - and some of the stuff that's been done through fun_plug does keep the drives active.

Maybe you just want to vent your frustrations at the device, that's your perogative, but it would be a waste of my time to try to assist you in any way, if you're not going to provide the details I ask for.

I has suggested you start a new thread - I'm going to add to that - if you're serious about making this thing work, use the web interface to save the config and then reset it to factory defaults and remove any fun_plug or similar - if you have a spare disk, install that and format a single volume - if it power management does not work like that, it's defective and should be RMA'd if it's under warranty.

On the other hand - if it does work correctly that way - reinstall your disks, restore your config and open a new thread - and lets take it from there.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB