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 2010-01-05 00:21:45

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

No ramdisk on CH3SNAS?

Hello,

I found topics on the DNS-323 having a 16MB ramdisk, which means 16MB out of 64MB is reserved for the ramdisk.

I have a CH3SNAS, but can't find any trace of a ramdisk

Code:

root@NAS:/ffp# df
Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    9911      7518      1881  80% /
/dev/root                 9911      7518      1881  80% /
/dev/loop0                5760      5760         0 100% /sys/crfs
/dev/sda2            960404324 923216332  37187992  96% /mnt/HD_a2
/dev/sda4               497861       379    497482   0% /mnt/HD_a4
/dev/sdb1              1927104   1004376    824836  55% /mnt/usb

dmesg mentions the RAMDISK initialization, but nothing more:

Code:

RAMDISK driver initialized: 16 RAM disks of 10240K size 1024 blocksize
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
RAMDISK: Compressed image found at block 0

Is there no ramdisk for CH3SNAS or should I use another command to detect it?

top is still showing about 64MB memory, but I don't really now how a ramdisk would affect the information reported by top.

Code:

Mem: 60524K used, 1368K free, 0K shrd, 10900K buff, 24256K cached
CPU:   0% usr   0% sys   0% nice 100% idle   0% io   0% irq   0% softirq
Load average: 0.09 0.08 0.13
  PID  PPID USER     STAT   VSZ %MEM %CPU COMMAND
20033     1 root     R    24508  39%   0% /usr/games/openttd -f -D -g /usb/debian/root/.openttd/save/autosave/auto
 1658  1657 nobody   S    14744  24%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon
 1628     1 nobody   S    14744  24%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon
 1657  1628 nobody   S    14744  24%   0% /ffp/bin/transmission-daemon -f -g /mnt/HD_a2/.transmission-daemon
 1735  1734 root     S     9156  15%   0% /ffp/bin/php-cgi
 1733  1731 root     S     9100  15%   0% /ffp/bin/php-cgi
 1734  1731 root     S     9100  15%   0% /ffp/bin/php-cgi
 1736  1733 root     S     9100  15%   0% /ffp/bin/php-cgi
16754  1609 root     S     8400  14%   0% /ffp/sbin/smbd -D
 1609     1 root     S     8164  13%   0% /ffp/sbin/smbd -D
 1624  1609 root     S     8152  13%   0% /ffp/sbin/smbd -D
 1728  1725 root     S     5200   8%   0% /usb/newsbin/bin/nzbget -D -c /usb/newsbin/conf/nzbget.conf
 1725  1714 root     S     5200   8%   0% /usb/newsbin/bin/nzbget -D -c /usb/newsbin/conf/nzbget.conf
 1727  1725 root     S     5200   8%   0% /usb/newsbin/bin/nzbget -D -c /usb/newsbin/conf/nzbget.conf
 1714     1 root     S     5200   8%   0% /usb/newsbin/bin/nzbget -D -c /usb/newsbin/conf/nzbget.conf
 1726  1725 root     S     5200   8%   0% /usb/newsbin/bin/nzbget -D -c /usb/newsbin/conf/nzbget.conf
19719  1660 root     S     5096   8%   0% sshd: root@pts/0
 1352     1 root     S     5020   8%   0% /web/webs
 1620     1 root     S     4368   7%   0% /ffp/sbin/nmbd -D
 1731     1 root     S     3100   5%   0% /ffp/sbin/lighttpd -f /ffp/etc/lighttpd.conf
 1660     1 root     S     2468   4%   0% /ffp/sbin/sshd
19733 19719 root     S     1712   3%   0% -sh
 1131     1 root     S     1596   3%   0% crond
    1     0 root     S     1592   3%   0% init
 1376     1 root     S     1592   3%   0% -sh
21350 19733 root     R     1356   2%   0% top
 1426     1 root     S     1044   2%   0% lpd Waiting
 1364     1 root     S      916   1%   0% op_server 6 6 6
 1321     1 root     S      748   1%   0% chkbutton
...

Offline

 

#2 2010-01-05 01:26:40

oxygen
Member
Registered: 2008-03-01
Posts: 320
Website

Re: No ramdisk on CH3SNAS?

there is no ramdisk or similiar on a dns-323 stock firmware.

Offline

 

#3 2010-01-05 18:35:47

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: No ramdisk on CH3SNAS?

oxygen wrote:

there is no ramdisk or similiar on a dns-323 stock firmware.

Ok, the the thread http://dns323.kood.org/forum/viewtopic.php?id=3203 must be wrong/outdated smile

Offline

 

#4 2010-01-05 22:17:23

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: No ramdisk on CH3SNAS?

there is a ramdisk: initrd. the kernel loads it from flash into memory and runs /sbin/init from it. it's size is about 10MB, and it's mounted as /.

Offline

 

#5 2010-01-05 22:32:51

Opperpanter
Member
From: Eindhoven, Netherlands.
Registered: 2008-08-11
Posts: 89

Re: No ramdisk on CH3SNAS?

Ah, so that's these guys:

Code:

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    9911      7518      1881  80% /
/dev/root                 9911      7518      1881  80% /

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB