• February 25, 2025, 11:54:38 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

News:

This Forum Beta is ONLY for registered owners of D-Link products in the USA for which we have created boards at this time.

Author Topic: /sys/crfs at 100% full - unit disconnects from network! Help!  (Read 6050 times)

Jester5000

  • Level 1 Member
  • *
  • Posts: 10
/sys/crfs at 100% full - unit disconnects from network! Help!
« on: February 07, 2011, 07:43:13 AM »

Hello,

In an attempt to install java 1.6, I copied the tar ball to /usr/java and was going to unzip it and install it.  When I tried to unzip it, I got a message saying something about the volume being full, and at the same time, the DNS-323 become unavailable (disconnected) from the network. 
I immediately delete the tar file and the connectivity was restored.  I checked the device space (df) and found that file system /dev/loop0 mounted on /sys/crfs was at 100% full
Looks similar to the following:

Filesystem           1k-blocks      Used Available Use% Mounted on
rootfs                    9911      7472      1927  79% /
/dev/root                 9911      7472      1927  79% /
/dev/loop0                5760      5760         0 100% /sys/crfs
/dev/sda2            960404324     37384 960366940   0% /mnt/HD_a2
/dev/sda4               497861        18    497843   0% /mnt/HD_a4


Can someone explain to me what happened and what I need to do?  My Linux skills are almost non-existent and I have no idea what /dev/loop0 is and why /sys/crfs is full. 

Any help would be appreciated.

Thanks.
« Last Edit: February 07, 2011, 07:52:44 AM by Jester5000 »
Logged

chriso

  • Guest
Re: /sys/crfs at 100% full - unit disconnects from network! Help!
« Reply #1 on: February 07, 2011, 11:26:21 PM »

The first thing to know is that /sys/crfs is always at 100% you didn't do that (the compressed file system that the DNS-323 boot from).

The next thing you have to know is that the system files systems run from a RAM disk that is extremely limited in size.  Since you are talking about /sys/crfs you are certainly logged into the so run the df command with the -h option and maybe that will pop out what a the math of 1K time 9911 means:
root@DLink-NAS:~# df -h
Filesystem                Size      Used Available Use% Mounted on
rootfs                    9.7M      7.9M      1.3M  86% /
/dev/root                 9.7M      7.9M      1.3M  86% /
/dev/loop0                5.6M      5.6M         0 100% /sys/crfs


Now look at the size of your Java tar ball and tell me if it fits in the 1.9 Megabytes you have available?
And if you fill up all the space on the system file system, the system can't write any files and if as such basically stops functioning.  (P.S. /usr/java is under /, /mnt/HD_a2 is directory created that is empty and its only purpose is to provide a spot for mounting your hard drive on, it takes next to nothing in space on /, and files created on /mnt/HD_a2 go to your hard drive not /).

I'm not sure where you got the java tar ball.  Is it complied to run on the DNS-323?  Is source code that you intend to compile and then use?  The executables have to match the processor.  Anyway how do you have compilers and other big stuff put on the DNS-323 when it would fit on / (root partition)?  You install it on the hard drive and either tell the install it is installed at another place or you put a link from where it expects it to where it really is.

rm -r /usr/java (get rid of the directory you created if it is still there)
mkdir /mnt/HD_a2/java  (Create directory on your first hard drive)
ln -s /mnt/HD_a2/java /usr/java (Create soft link between /usr/java and the directory on the hard drive)

Now if you do:
cd /usr/java

You will see you end up on /mnt/HD_a2/java
Logged

Jester5000

  • Level 1 Member
  • *
  • Posts: 10
Re: /sys/crfs at 100% full - unit disconnects from network! Help!
« Reply #2 on: February 08, 2011, 10:52:43 AM »

Thank you so much for the reply chriso!

This all started with the issue of mkv streaming, or lack thereof.  I found a media streamer from serviio.org and installed it.  Then found out that I didn't have the requisite java installed.  Just now I'm realizing they installed it on an Atom Linux box and not their 323.  http://forum.serviio.org/viewtopic.php?f=5&t=1117&p=9105#p9105

Went to Sun and found http://javadl.sun.com/webapps/download/AutoDL?BundleId=43871  for Linux.  It's about 20.2 MB.  I guess I'm assuming it will work with the 323 but will find out when I try again, unless someone knows already and can let me know.
The install instructions said to install at /usr/java and I guess I made the mistake of using ./ literally instead of /mnt/HD_a2.

Thanks again for the education and I'll post results when I try again.

j
Logged

chriso

  • Guest
Re: /sys/crfs at 100% full - unit disconnects from network! Help!
« Reply #3 on: February 08, 2011, 12:04:44 PM »

I don't know anything about mkv streaming, but I do know you aren't going to just find a binary version of Java that is going to run on ghe DNS-323 from Sun.  You would have to get the sources and try to build it (or find someone else that has done it).  And from my search on http://forum.dsmg600.info/ I don't think anyone has got a recent version of Java running on it.

I suggest instead you search/ask questions on http://forum.dsmg600.info/ about the problem of mkv streaming.  There seems to be a lot more information on it, and with answers that suggest some people have something working (might not be what you want, but it I don't know).

Please note other companion site:
http://wiki.dns323.info/
Logged

Jester5000

  • Level 1 Member
  • *
  • Posts: 10
Re: /sys/crfs at 100% full - unit disconnects from network! Help!
« Reply #4 on: February 08, 2011, 01:05:12 PM »

Thanks.  The issue around .mkv streaming is that the built in uPnP AV Media Server will not stream those types of video files. 
Lots of discussion around that on this forum as well as the two you mentioned.  Unfortunately, most of the other solutions (mediatomb, Tversity, etc etc) have some short comings.  Haven't heard anything negative about serviio that's why I decided to try it.
As for java installations, I guess my lack of Linux knowledge lead me down that path.
Logged

chriso

  • Guest
Re: /sys/crfs at 100% full - unit disconnects from network! Help!
« Reply #5 on: February 08, 2011, 02:20:10 PM »

I should warn you about the soft link for /usr/java.  The root files system (/) gets recreated every time you boot the DNS-323, so if you want count on it you will have to have something that puts it back on every reboot.  It is better if you can configure the installs to just find it on your hard disk.
Logged