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

#51 2009-08-28 17:42:29

pepe77
Member
Registered: 2009-08-28
Posts: 10

Re: native Lenny for DNS-313 is ready.

Many thanks for your work! I think a lot of us would be interested in getting some more informations on how you created the new kernel. Could you provide a short how-to? Maybe you could also provide the kernel config. smile

Offline

 

#52 2009-08-29 22:21:03

shibby
Member
Registered: 2009-07-31
Posts: 12

Re: native Lenny for DNS-313 is ready.

heh but i didn`t create new kernel smile
I used kernel from original dlink firmware 1.03. Charminbaer based on kernel from firmware 1.01. I simply changed kernel, rootfs and modules (with fuse module for ntfs support). Result was amazing smile Transfers grow up 3x.

Last edited by shibby (2009-10-08 18:02:35)

Offline

 

#53 2009-09-27 18:38:01

alxbol
New member
Registered: 2009-06-06
Posts: 1

Re: native Lenny for DNS-313 is ready.

shibby wrote:

[release] my debian lenny 5.0.2 /speedmod/ - based on charminbaer`s debian (thanks charminbaer)

changelog:
- lenny 5.0.2 + all update
- new kernel (better transfers over samba and vsftpd, 11MB/s read from ftp)
- added ntfs modules (/etc/rc.local - uncomment to mount /dev/sda2 as ntfs)
- transmission 1.73 (sources are in /usr/src), config /etc/transmission/settings.json
- samba - config /etc/samba/smb.conf
- vsftpd - config /etc/vsftpd.conf
- instaled many packages to compile and make own packages like transmission 1.74 smile

this is my first and last release beacuse i sold dns-313.

download: http://update.groov.pl/debian_v2.tar.gz

speed test: http://dns323.kood.org/forum/viewtopic. … 563#p31563

What password for SSH in your release?

Offline

 

#54 2009-10-02 12:08:03

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

Anybody know how to include new kernel from new Firmware(ftp://ftp.dlink.co.uk/dns_nas/dns-313/d … _rev_b.zip)

I see that this is beta , but I think/hope that it must be more optimized.

Unfortunately , I don't know *nix so good, but I be an grateful/happy if anybody provide instruction "How to update/change kernel" for our device

Offline

 

#55 2009-10-08 17:58:58

shibby
Member
Registered: 2009-07-31
Posts: 12

Re: native Lenny for DNS-313 is ready.

@alxbol - root passwd if i good remember smile if not, try root root

@epodrez - try simply copy all files from .boot dir of new firmware to my or charminbear`s debian. this same all modules from /lib/modules/*

Last edited by shibby (2009-10-08 18:00:30)

Offline

 

#56 2009-10-10 11:13:48

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

Root password for shibby's lenny is "root" smile
All work great but one question still borring me - how to start NFS server?
nfs-kernel and all dependences were installed via aptitude; /etc/exports was configured, then:
rpc.portmap
rpc.statd
exports -fs
rpc.nfsd
rpc.mountd

but  "rpcinfo -p" shows that nfsd process is absent. nfsstat -s said the same.
Seems, nfs support is missed in kernel. If I'm right, so how to add it there? nfs.ko or something like that i think, but where to get it smile

Offline

 

#57 2009-10-13 14:18:24

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

Thank you all for interest and answers.

@shibby - unfortunately your firmware does NOT support  'ext3' . Do you you know way how to fix it - please help if it possible.
But anyway THANK YOU VERY MUCH.  Your "debian lenny 5.0.2"  is working Greatly.

As for new firmware 2.0 - I have tried , but unfortunately without luck.

Offline

 

#58 2009-10-16 16:28:30

shibby
Member
Registered: 2009-07-31
Posts: 12

Re: native Lenny for DNS-313 is ready.

epodrez wrote:

@shibby - unfortunately your firmware does NOT support  'ext3' .

it cant be.... can anyone confirm this?

Offline

 

#59 2009-10-16 21:07:17

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@shibby, really, there is no ext3 support. On manual mount it replies that unknown fs 'ext3'. If ext3 disk mount via fstab - it looks like mounted but cannot be read/write (on mount command it shown as mounted in 'ext2').
And there is also no NFS support as i wrote above.

Last edited by Trueman (2009-10-16 21:07:35)

Offline

 

#60 2009-10-20 01:27:22

daniel
New member
Registered: 2009-10-20
Posts: 1

Re: native Lenny for DNS-313 is ready.

Hi, guys.

I'm using that new kernel of shibby (it's great, thank you:))
I tried to set up some cron jobs, but it doesn't seem to work. I'd like to control transmissions up/downrates based on some cron jobs.

If i set up a cron with crontab -e, i lose it on the next reboot. It's normal i think.
So I decided to create a file (/home/.cron), and i'm using the crontab /home/.cron in the file /etc/rc.local.
Now after reboot, I can find my crons with crontab -l, great. But they doesn't seem to run.

Even if I add a cron manually (without reboot), it doesn't work.
So, ex.: with the following line:

30 * * * * led power off

It should turn off the power led in every hour at 30. But it doesn't do it.


What could be the reason of this behave?

Thank you!

Offline

 

#61 2009-10-20 10:24:24

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

I have answer from our local D-Link support:

"Firmware 2x will be only for hardware devices Bx, 1.x firmware will be only for Hardware Ax ." 

As for 'ext3' seems it is included in the kernel for the previous versions of firmware. So probably, it can be added as module, but I don't know how it can be done.
Currently, I have use 'ext2'.

Offline

 

#62 2009-10-21 10:27:04

shibby
Member
Registered: 2009-07-31
Posts: 12

Re: native Lenny for DNS-313 is ready.

i didnt use ext3, sorry. i used ext2 and work correctly.

Offline

 

#63 2009-10-21 21:20:44

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

I also reformat hdd to ext2. As for ext3 module to kernel,  it should work if place it there (as ufsd etc.), but needs to find it (.ko file if i'm right). Does anyone has it? Or needs to build it. Does anyone may describe how to do it?
What about NFS? Does anyone configure it? Looks nfs module is also absent (but may be added if we found it).

But even without ext3&nfs, dns-313 with shibby's debian work for me 24/7 about 3 weeks (torrent, smb share for media tank device access, sftp share for notebook with linux access). No freeze, no rebbot, just stable work. Thanx, shibby!!! wink

Offline

 

#64 2009-10-24 02:12:40

Franic
New member
Registered: 2009-10-24
Posts: 2

Re: native Lenny for DNS-313 is ready.

nfs-user-server still works for mine if anyone wants nfs. I've been running shibby's release and it's pretty neat.

But I've got a biiiig problem and it happens with or without the debian (though I reaaaally want to keep the debian). With a 100BaseT-FD router it was OK, but now I have a 1000BaseT-FD router (D-Link DIR-655, yeah same brand) and the transfer rates are horrible. Really.

After a transfer here is what I have:

Code:

root@DNS-313:/etc# ifconfig
egiga0    Link encap:Ethernet  HWaddr 00:80:c8:16:81:68
          inet addr:192.168.0.150  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:61268 errors:2003 dropped:2524 overruns:0 frame:2000
          TX packets:34875 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:256
          RX bytes:88699839 (84.5 MiB)  TX bytes:3422350 (3.2 MiB)
          Interrupt:1 Base address:0xa000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:18 errors:0 dropped:0 overruns:0 frame:0
          TX packets:18 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:1260 (1.2 KiB)  TX bytes:1260 (1.2 KiB)

See the dropped and error packets? I guess that is what's slowing down my transfers. Anyone knows how to fix it? Any help would be appreciated.

Offline

 

#65 2009-10-24 09:40:39

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@Franic
What about NFS (shibby's lenny) it not works:

root@DNS-313:~# /etc/init.d/nfs-kernel-server restart
Stopping NFS kernel daemon: mountd nfsd.
Unexporting directories for NFS kernel daemon....
Not starting NFS kernel daemon: no support in current kernel. (warning).

May be i miss something about configuration?

What about speed over 1000Mbit LAN: unfortunately, has only 100Mbit router to check and investigate for solution; as i remember, there are several such complain over different forums, so, there or no support of 1000Gbit in our debian, or it not turned/configured on i think.

Offline

 

#66 2009-10-24 13:31:01

Franic
New member
Registered: 2009-10-24
Posts: 2

Re: native Lenny for DNS-313 is ready.

@Trueman

Franic wrote:

nfs-user-server still works for mine if anyone wants nfs. I've been running shibby's release and it's pretty neat.

I hate quoting myself but the answser is there smile Kernel mode is disabled, but user mode works (and I'm using it). Just do apt-get install nfs-user-server, mess with /etc/exports then run /etc/init.d/nfs-user-server restart and that's it you have nfs. I've heard that it's a little less stable than kernel mode, but we don't have the choice so far.

For the 1Gbit I took THIS NAS especially for that (and USB2 as mass storage as well), I mean it's written in the specs. A NAS which can't handle speeds it's supposed to support is quite a serious issue, especially since I'm using a new router from the same brand T_T
I have this problem even without Debian, but it's much easier to debug with a full Linux OS smile

Offline

 

#67 2009-10-26 12:41:20

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

I've got D-Link DNS-313 with Samsung 250Gb onboard.
And I can't make it work. I just downloaded DNS-313_lenny_24092008.tgz and made the following instructions:
fdisk /dev/sdh (for me it's ok)
deleted all partitions
and then created new :
   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1               1         124      995998+  82  Linux swap / Solaris
/dev/sdh2             125       29302   234372285   83  Linux
/dev/sdh3   *       29303       30401     8827717+  83  Linux

then
mkswap /dev/sdh1
Setting up swapspace version 1, size = 995992 KiB
no label, UUID=b3ca5585-fb00-434f-a216-c2b4a39acf76

mkfs.ext3 /dev/sdh2
mkfs.ext2 -I 128 /dev/sdh3
all filesystems works fine
then mount /dev/sdh1 /mnt/exh
tar -xzf DNS-313_lenny_24092008.tgz -C /mnt/exh
finally I umount device and press poweroff button. After all I try to power it and I can see the green led after 5-6 seconds, and nothing - it doesn't request for an IP address (I have DHCP server), it doesn't write any log, like /var/log/dmesg etc.
What can it be?

P.S. All thouse instructions were made using Debian sqeeze amd64 2.6.28 with last updates and though USB cable.

Last edited by darion (2009-10-26 12:43:49)

Offline

 

#68 2009-10-27 00:24:38

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

I heve already tried
mkfs.ext2 -I 256 /dev/sdh3
still doesn't wokr
I even tried to install the Debian system on original 500Mb /dev/sdh3 and I still can't make it work. What am I doing wrong?

I can see only green led in few seconds after boot and thats all...

P.S. can anyone show his `fdisk /dev/sdb (sdc, sdd or what), or write a step by step instruction "how to format your hard drive for Debian" ?

Last edited by darion (2009-10-27 00:38:49)

Offline

 

#69 2009-10-28 07:52:09

pepe77
Member
Registered: 2009-08-28
Posts: 10

Re: native Lenny for DNS-313 is ready.

Here's mine:

Code:

fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0003b09d

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         127     1020096   83  Linux
/dev/sda2             128       60151   482142780   83  Linux
/dev/sda3           60152       60801     5221125   83  Linux

You can use the graphical tools on a Linux live cd to format the hd if you're having trouble.

Offline

 

#70 2009-10-28 22:47:09

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

I'm using Debian Linux for 3 years and I think live cd won't help me... Thanks a lot for your reply, I'll try to make similar partitions right now. I'll post here, if I succeed.

Offline

 

#71 2009-10-28 22:50:19

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@darion, do you configure /etc/network/interfaces file? As i remember, it by default configured to static IP (like it needs for me). Just set it to DHCP (uncomment corresponded string and comment static related) or static IP you need and try again. Besides, i use ext2 for main storage volume, so as our debian has troubles with ext3 support.

Offline

 

#72 2009-10-28 23:10:40

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

So, what have I done:
1) I've deleted all preexisting partitions
2) I've created new ones

Code:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1               1         127     1020096   83  Linux 
/dev/sdh2             128       29751   237954780   83  Linux 
/dev/sdh3           29752       30401     5221125   83  Linux

3) I've add swap and filesystems
mkswap /dev/sdh1
mkfs.ext3 /dev/sdh2
mkfs.ext2 -I 128 /dev/sdh3
4) I've mounted /dev/sdh3 on /mnt/exh
5) I've untared root fs on /mnt/exh
tar -xzf DNS-313_lenny_24092008.tgz -C /mnt/exh
6) umount /dev/sdh3
7) Click poweroff
8) Pluged in ethernet cable
9) Click power button again, and I can see a green led after few seconds after bootup
no log in my /var/lib/dhcp/dhcpd.leases on server, so it doesn't work (don't know why)

I'll try to use livecd (just hope it would help) which one did you use?

Last edited by darion (2009-10-28 23:16:49)

Offline

 

#73 2009-10-28 23:14:14

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

Trueman wrote:

@darion, do you configure /etc/network/interfaces file? As i remember, it by default configured to static IP (like it needs for me). Just set it to DHCP (uncomment corresponded string and comment static related) or static IP you need and try again. Besides, i use ext2 for main storage volume, so as our debian has troubles with ext3 support.

It use dhcp by default. I have DHCP on my server (192.168.0.1 Debian lenny) and I can see log files. As to ext2 as a main partition format - I'm not sure, it's not hard to change it, I'll try, but I also can't see any changes in /var/log/dmesg

update: ext2 fs on main storage volume did change anything.

Last edited by darion (2009-10-28 23:21:19)

Offline

 

#74 2009-10-28 23:36:55

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@darion, try to use shibby's debian,  I use it and have no troubles. But it  configured to static ip - you should to modify interfaces file on DNS-313 after tar command (unpacking tgz to it).

Offline

 

#75 2009-10-29 12:42:28

pepe77
Member
Registered: 2009-08-28
Posts: 10

Re: native Lenny for DNS-313 is ready.

darion wrote:

I'll try to use livecd (just hope it would help) which one did you use?

I used a recent Ubuntu livecd (9.04?). But I think you're doing everything right. If it's only dhcp not working you should switch to a static ip configuration for the dns 313 (as mentioned: /etc/network/interfaces).

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB