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-05-23 17:21:51

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

thanks but itīs not my problem, the nas works perfectly, I donīt care to format de hd. Iīm mac user so I think in a wonderful life, so if there is any other method to format this to upload the the new firmware please tell me
thanks again


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

Offline

 

#27 2008-05-23 18:10:24

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

Now I understand...

Yes, itīs possible under 2 conditions:
1. have telnet access.
2. have ftp access.

But first, you must be able to untar an archive. Iīm absolutely sure, the box has the tar-program, it is built-in in busybox:

DNS-313:~# /bin/busybox
BusyBox v1.00-pre1 (2007.08.28-03:13+0000) multi-call binary

Usage: busybox [function] [arguments]...
   or: [function] [arguments]...

        BusyBox is a multi-call binary that combines many common Unix
        utilities into a single executable.  Most people will create a
        link to busybox for each function they wish to use, and BusyBox
        will act like whatever it was invoked as.

Currently defined functions:
        [, arping, ash, autoip, basename, busybox, cat, chgrp, chmod,
        chown, cmp, cp, crond, crontab, date, dd, df, dmesg, dumpleases,
        echo, egrep, env, expr, false, fgrep, find, free, fsck.minix,
        goweb, grep, gunzip, halt, head, hostname, hwclock, id, ifconfig,
        init, kill, ln, logread, ls, mkdir, mkfs.minix, mknod, mkswap,
        modprobe, more, mount, mv, pidof, ping, poweroff, ps, pwd, rdate,
        reboot, rm, route, sed, sh, sleep, swapoff, swapon, sync, syslogd,
        tail, tar, telnetd, test, tftp, touch, true, udhcpc, udhcpd, umount,
        uname, vi, wget, zcat

DNS-313:~#

Why should it not work? Log in with telnet, type "tar" on the command line and say us, what the box answers.... Then we will see, whatīs to do.

Last edited by CharminBaer (2008-05-23 18:22:04)


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

Offline

 

#28 2008-05-25 02:28:11

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

iīm very grateful.
but, can you tell me what is the next steep to do?

sorry for my ignorance


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

Offline

 

#29 2008-05-25 19:00:01

Marc
Member
Registered: 2008-04-12
Posts: 6

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

Bronek wrote:

When the device is restarted base fun_plug package is installed and you can telnet to it without having to enter the unlock code (in fact, you even don't have to enter root's password which is pretty scary - you'd better get some ssh server fast).

How to get root password ? Because with admin user, create directories permission is denied :

Code:

admin@nas:/mnt/HD_a4$ mkdir packages
mkdir: cannot create directory 'packages': Permission denied

Thank's

Offline

 

#30 2008-05-25 20:32:47

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

@scapitan:

O.K., the next steps: Download the firmware, e.g. from DLinkīs ftp-server.

The spain server has version 1.01-b12:

ftp://ftp.dlink.es/NAS/DNS-313/Firmware … .01b12.zip

Normally itīs a zip-file, unpack it. Put the system.tgz with ftp to your DNS-313.
Now log into the box with telnet. You will find the uploaded firmwarefile in the directory
/mnt/HD_a2/ (you should be a bit familiar wit the command-line, arent you?)
Now type in:

cd /mnt/HD_a2
ls system.tgz (you should see this file...)

This partition is NTFS, I think better doing the next steps on an EXT2-formatted one.

mv system.tgz /mnt/HD_a4
cd /mnt/HD_a4
tar xzf system.tgz

Any error-messages? If not, you have now the 3 needed files in this directory.
Put them to their destination:

cp rootfs.tgz /.boot
cp rd.gz /.boot
cp zImage /.boot

Thats all.
After next reboot you have the new (or older...) firmware running...

Last edited by CharminBaer (2008-05-25 20:33:40)


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

Offline

 

#31 2008-05-25 22:13:27

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

CharminBaer Iīm very gratefull to you.
Iīm going to do that.
Iīll tell you what hapen-
Sorry but I donīt undestand what you mind with the ntfs partition and ext2
Which one partition may i have to format? hda2 or hda4?

thanks

Last edited by scapitan (2008-05-25 22:21:43)


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

Offline

 

#32 2008-05-25 22:30:26

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

I get tath error:

# tar xzf system.tgz
tar: Invalid gzip magic


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

Offline

 

#33 2008-05-25 23:19:18

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

Sorry, have forgotten one step. First you must cut the header away.

dd if=system.tgz of=system_noh.tgz bs=8 skip=13
tar xzf system_noh.tgz

And donīt misunderstand, you donīt have to format any partition, when you want a new firmware.

Last edited by CharminBaer (2008-05-25 23:22:01)


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

Offline

 

#34 2008-05-26 00:06:02

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

ok, itīs every things ok, now i have the 1.01 firmware.

Thank to CharminBaer.

can I now install all programs??
how can i change the partition ntfs to ext2?
is it what you mind?

sorry, but my english level is not too good


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

Offline

 

#35 2008-05-26 00:09:47

Marc
Member
Registered: 2008-04-12
Posts: 6

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

And how to have telnet access with this firmware ?

I have installed fun plug but there is nor telnet neither SSH ports opened.

Offline

 

#36 2008-05-26 00:19:02

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

everything has worked perfectly, but now I can not reach with telnet, i returned to install fun_plug and I do not have access.
Is this normal?
as the active again?


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

Offline

 

#37 2008-05-26 08:51:29

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

Marc wrote:

And how to have telnet access with this firmware ?

I have installed fun plug but there is nor telnet neither SSH ports opened.

I resolve may problem reading another post, You must to use to edit the fun_plug file a textedit like notepad+++, becouse if you use text edit Itīs not work.

try to use notepad+++, I get the telnet acces after edit the file and reboot.


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

Offline

 

#38 2008-05-26 10:15:07

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

scapitan wrote:

can I now install all programs??
how can i change the partition ntfs to ext2?
is it what you mind?

What programs? Seems, this isnīt my part in this play, other guys better knows this, e.g. fonz...
What do you want to do with the box in future?

Changing the format of data-partition from NTFS to EXT2 you donīt should do yes, first play around with the stuff a while.
But a little explanation: The HDD in DNS-313 has 3 partitions, the only one you may see from outside is the /dev/sda2, mounted on /mnt/HD_a2 and seen as service "Volume_1" with samba and ftp from outside. This partition has NTFS filesystem. O.K., EXT2 may be a little more faster and stable, but wait and see a bit more...

scapitan wrote:

sorry, but my english level is not too good

Mine too, then letīs write vietnamese... lol

ChBaer.


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

Offline

 

#39 2008-05-26 13:14:38

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

Re: HOWTO: DNS-313 & fun_plug for dummies (by one of them)

ok CharminBaer, now I understand you about the partition.
Iīm going to look after for that information.

thanks a lot


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

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB