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-19 20:48:27

rmohid
Member
Registered: 2009-01-08
Posts: 5

323-Structured recovery.

Well, I've started having small problems that I've worked around instead of trying to fix for over the last year and now I have to sit down like a big boy and fix up my box.

Basically what I'm looking for is the following

1) A checklist to run through to make sure my system is sane

- How do I tell if the image in my flash is ok?
- How can I tell if the flash chip has any "bad sector" equivalent damage to it?
- How do I verify my filesystem
- Any way for me to check if there are any corrupted files?

2) Manually burn the flash bank to a known  firmware image (say 1.04)

I'd like to reset my box to a known state.

I've had an issue with the flash bank not being consistant between /sys/mtd1 and /sys/mtd2. (I'm assuming the two should be in sync)  Background: I looked at the store password script to poke around the flash banks after tracing the reason /web/webs wasn't starting up anymore was due to a corrupt ddns.conf. I found that this file was truncated on the "flash" (/sys/mtd1), but the other copy was fine. I was tempted to do a diff and manually copy one into the other... but was insufficiently desperate. Lazy me, I made a backup of the critical files to disk and copied them over to /web in fun_plug.

I suspect something may have gotten copied over the first time I ran store-password (core dump?) which may have messed up a per-file transfer.

I know this can be done without soldering/z-modem garbage since the webs deamon has that functionality built-in via the firmware update. (I haven't found a discrete command-line tool to do the same)
By the way, updating the firmware via a manually instantiated /web/webs doesn't clear up the delta between /sys/mtd1, /sys/mtd2. The version munbers go up, but the sync issue/ddns.conf = 0 bytes issue is still there.



Why Now:

I had a power failure that was longer than what my ups could handle. Now my DND-323 comes back up and can still provide NAS functionality, but I've lost all telnet/ssh access (I can still muck with fun_plug and I can't explain why some stuff is working -nas, but other stuff is not -/web/webs , eveything from ffp)


What's Missing:

Honestly I don't know enough about this hardware platform or linux internals in general to be able to investigate and debug this on my own and frankly the last thing I feel like doing after coming home is to do yet more platform debugging.
At least if I had a list of all the various traces that would assist in debugging this, I could provide those.

Again, at this point, I only have access to the fun_plug script.


My respect to those who still do this for fun.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB