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-05-03 02:33:30

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

trying to back out from debian install, error message

i'm trying to reset the 323 back to stock dlink fw, and am following the directions here:

http://www.cyrius.com/debian/orion/d-li … stall.html

and pulled down the files from here:

http://theshed.hezmatt.org/dns323-firmware-tools/

after ftp'ng both files into a directory, i run the command as instructed:

# ./splitdns323fw -k uKernel -i uRamdisk dns323_firmware_107

which then gives me this error:

-su: ./splitdns323fw: Permission denied

what am i doing wrong? i'm logged in as root

Last edited by drick (2009-05-03 03:28:32)

Offline

 

#2 2009-05-03 03:27:07

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

more info that might help

B2D:/home/user/dns323-firmware-tools-0.3# ls -la
total 7772
drwxr-xr-x 2 user user    4096 2009-05-02 16:18 .
drwxr-xr-x 3 user user    4096 2009-05-02 16:17 ..
-rw-r--r-- 1 user user     597 2008-12-06 16:00 CHANGELOG
-rw-r--r-- 1 user user 7900436 2009-05-02 16:18 dns323_firmware_107
-rw-r--r-- 1 user user    4653 2008-12-06 16:00 mkdns323fw
-rw-r--r-- 1 user user    4259 2008-12-06 16:00 mkdns323fw.1
-rw-r--r-- 1 user user    1063 2008-12-06 16:00 README
-rw-r--r-- 1 user user    4840 2008-12-06 16:00 splitdns323fw
-rw-r--r-- 1 user user    1668 2008-12-06 16:00 splitdns323fw.1

B2D:/home/user/dns323-firmware-tools-0.3# uname -a
Linux B2D 2.6.26-2-orion5x #1 Sat Mar 28 05:36:22 UTC 2009 armv5tel GNU/Linux

Offline

 

#3 2009-05-03 03:47:24

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

ok, changed the splitdns323fw to executable, that now gets me a step futher.

now i get this error:

-bash: ./splitdns323fw: /usr/bin/ruby: bad interpreter: No such file or directory

i then go to this page:

http://www.debian-administration.org/articles/329

which advise me to execute this command:

apt-get install ruby libzlib-ruby rdoc irb

this installs the ruby package which apparently is needed, i then try again.

SUCCESS!

Offline

 

#4 2009-05-03 03:53:54

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

command is now running

FrodoII firmware signature found
Kernel checksum matches
Kernel is 1452576 bytes
initrd checksum matches
initrd is 6440024 bytes
defaults.tar.gz checksum matches
defaults.tar.gz is 7772 bytes
Product ID: 7
Custom ID: 1
Model ID: 1
Kernel data written to uKernel
initrd data written to uRamdisk

but then i get these errors:

FrodoII firmware signature found
bash: FrodoII: command not found
B2D:/home/user/dns323-firmware-tools-0.3# Kernel checksum matches
bash: Kernel: command not found
B2D:/home/user/dns323-firmware-tools-0.3# Kernel is 1452576 bytes
bash: Kernel: command not found
B2D:/home/user/dns323-firmware-tools-0.3#

Offline

 

#5 2009-05-03 03:56:22

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

i then press on to the final steps

# cat uKernel > /dev/mtdblock2
# cat uRamdisk > /dev/mtdblock3

these both complete with no errors (each took about 2m), so i hit the box with an init 6 and start praying that this is going to work and not brick my box

Offline

 

#6 2009-05-03 04:24:13

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

SUCCESS,

i'm now logged back in using the D-Link 1.07 FW gui. interesting observation is that the unit has all of the settings from pre-Debian still?

i then select RAID 1, and start the disk format which promptly fails and the unit emails me (twice, 10m apart) to tell me so:

Left Hard Drive Has Failed
Right Hard Drive Has Failed

Sincerely,
Your DNS-323

second pass is running now, i'm at 43% and climbing..

format now stuck at 94% and have been for about 15m, after going back to physically check on unit there are no lights on either hard drive, and barely any network traffic at all.

weird.

refreshing the firefox session starts the format process again, maybe the third time is the charm.

Last edited by drick (2009-05-03 04:47:22)

Offline

 

#7 2009-05-03 04:52:43

drick
Member
From: USA
Registered: 2009-05-01
Posts: 14

Re: trying to back out from debian install, error message

oops, not so fast now i've stumbled into a known bug

http://forums.dlink.com/index.php?topic=2126.0

going to pull these drives out, and put 2 new ones in. good thing i have some extra drives laying around.

after putting the second set in, it formatted correctly and i'm back in business!

Last edited by drick (2009-05-03 05:25:57)

Offline

 

#8 2009-05-09 10:06:31

burn
Member
Registered: 2009-03-08
Posts: 8

Re: trying to back out from debian install, error message

I actually went from stock fw to debian installed back to stock fw without formatting once.  I do have extra files scattered around now, but everything works fine.  I also recall having a bit of a time getting those tools working when I went back to stock.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB