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 2006-12-01 08:38:51

hyde
Member
Registered: 2006-10-23
Posts: 15

Rebuild time?

I've been experimenting with different scripts, and I'm wondering if I may have inadvertently screwed something up because performance has started to become intermittently sucky.

When copying large files or large amounts of data back and forth between a Windows box and the g600, the speed will sometimes slow way down, then pick back up, and often enough, the connection will drop and I have to restart the copy once or twice to finish the entire transfer. (Wired or wireless.)

So now I'm thinking about rebuilding, but I'd like to know a few things:

If I reflash the firmware and restore defaults, does that take me back to square one for the OS? Where are the settings stored anyway, and how do you access them from the shell (ala "nvram show", e.g.)?

Right now, I'm using ext3 on the attached disk - is there any reason this would cause a performance issue for Windows boxes that connect? I can't imagine why it would, but this thing is too slow so I'm considering everything.

I ran a disk check from the web admin interface, and it didn't find any problems. Are there other diagnostics worth running if I shell in? I tried viewing some settings via fdisk btw, but fdisk seg faulted, and it won't let me umount the disk.

TIA for any info/ideas,
hyde

Offline

 

#2 2006-12-06 05:34:19

hyde
Member
Registered: 2006-10-23
Posts: 15

Re: Rebuild time?

from bad to worse...

this thing is running like ass now. copying files to/from always fails, and is horribly slow while waiting to fail. the only thing that helps is to send it a keepalive via ping while transferring - i may as well have a 56k modem connection to it tongue

i've reflashed the firmware (even went back to old firmwares), and restored defaults, and there is still old configuration sh*t left over on it. (old accounts in /etc/passwd and so on.) so i'm still wondering how to truly return this thing to it's original out-of-the-box state.

so how do i do it? are there specific files i can have fun_plug delete, re-create, etc? (samba works, but telnet and ssh are broken at the moment.) can i use gentoo to take over the show? any help here would be greatly appreciated.

- hyde

Offline

 

#3 2006-12-06 09:22:25

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Rebuild time?

All setting are saved to /dev/mtdblock0 minix partition. To access it you need to mount it manually and then unmount it after you are finished. There should also be /dev/mtdblock1 partition which has default files, but you should also be able to restore them with pressing reset button correctly (see manual).

Code:

mount /sys/mtd1
...
umount /sys/mtd1

Here are post that describes DSM-G600 file system and partitions located at flash.

Slow speed my be caused because you run to much programs at the same time. Try to rename fun_plug file, then reboot DSM, and try to copy again some files.

I have also seen some failing if I copy files through ftp, if this is the case then you may try some other ftp server. Look them up at download section.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#4 2006-12-10 07:09:02

hyde
Member
Registered: 2006-10-23
Posts: 15

Re: Rebuild time?

Ok, well one thing I hadn't tried was to flash it back to 1.02 EU; having done that, I'm now back in business. (I'd originally tried the 1.02 EU version because WPA didn't work under 1.01 US (I own a DSMg600 US Rev.B1 btw), and the 1.02 US wasn't available yet.)

The orginal flash history for my box is:
1.0 US
1.01 US
1.02 EU
1.02 US June
1.02 US Oct

So presumably the 1.02 EU left some crap behind that subsequent up/down-grades didn't erase.

As far as running too many services go, the only non-stock service I'm running is dropbear for ssh, which I could probably turn off for the most part. So what I have is this:

# ps
  PID  Uid     VmSize Stat Command
    1 root        104 S   init
    2 root            SW  [keventd]
    3 root            SWN [ksoftirqd_CPU0]
    4 root            SW  [kswapd]
    5 root            SW  [bdflush]
    6 root            SW  [kupdated]
    8 root            SW  [mtdblockd]
    9 root            SW  [khubd]
   39 root            SW  [loop0]
  362 root            SW  [kjournald]
  402 root        156 S   /usr/sbin/chkbutton
  403 root         84 S   /web/webs
  406 root         52 S   /bin/atd
  418 root        196 S   smbd -D
  420 root        400 S   nmbd -D
  453 root          4 S   /bin/op_server
  455 root        192 S   crond
  523 root         52 S   -sh
  622 root         16 S   /mnt/HD_a2/system/bin/dropbear -d /mnt/HD_a2/system/
12777 root        844 S   smbd -D
27450 root       1260 S   smbd -D
27760 root        180 R   /mnt/HD_a2/system/bin/dropbear -d /mnt/HD_a2/system/
27763 root        224 S   -ash
28167 root        304 R   ps
#
# cat /proc/loadavg
0.00 0.00 0.00 1/24 28207
#
# cat /proc/meminfo
        total:    used:    free:  shared: buffers:  cached:
Mem:  31035392 30502912   532480        0  1740800 23609344
Swap: 542826496  2289664 540536832
MemTotal:        30308 kB
MemFree:           520 kB
MemShared:           0 kB
Buffers:          1700 kB
Cached:          22376 kB
SwapCached:        680 kB
Active:           5260 kB
Inactive:        20284 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:        30308 kB
LowFree:           520 kB
SwapTotal:      530104 kB
SwapFree:       527868 kB
#

Now at the moment, my Windows box is seeding torrents on the DSM at a cumulative 20k/s to various peers. Obviously that's going to make a difference, and when I transfer large files to/from the DSM, I suspend utorrent first. I still have to ping it though. Like I said, it's working again now, but if you have any suggestions for how I might further tweak the DSM's performance and/or clean out remnants of the 1.02 EU, let me know.

One thing in particular I'm wondering about is ip_conntrack tweaks for torrent traffic, but that requires iptables so... Blah. In the end, I tend to forget that these things should be regarded as storage and little more.

Well, I'm a moron, thanks for all your patient help :)

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB