What's new

Device full...?

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Anaksanamune

New Around Here
So today I tried to FTP onto my router and it failed, I then tried samba, but nothing was appearing, so decided to take a look into the logs.

Code:
Jan 25 17:07:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:08:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:09:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:10:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:11:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:12:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:13:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:14:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:15:52 dnsmasq-dhcp[516]: failed to write /var/lib/misc/dnsmasq.leases: No space left on device (retry in 60s)
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 7760 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] smbd/lanman.c:get_server_info(1136)
Jan 25 17:16:48 smbd[14731]:   get_server_info: failed to enlarge servers info struct!
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 4096 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 7760 bytes
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] smbd/lanman.c:get_server_info(1136)
Jan 25 17:16:48 smbd[14731]:   get_server_info: failed to enlarge servers info struct!
Jan 25 17:16:48 smbd[14731]: [2013/01/25 17:16:48, 0] lib/util.c:Realloc(1073)
Jan 25 17:16:48 smbd[14731]:   Memory allocation error: failed to expand to 4096 bytes

Seems the device is full which I confirmed with:
Code:
admin@RT-N66U:/# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                22.4M     22.4M         0 100% /
tmpfs                   117.1M      2.8M    114.3M   2% /tmp
devfs                   117.1M         0    117.1M   0% /dev
/dev/mtdblock4            8.1M    516.0K      7.6M   6% /jffs
/dev/sda1                90.2G     27.2G     58.4G  32% /tmp/mnt/sda1

then I go for a rummage around. My /rom folder:
Code:
drwxr-xr-x    2 admin    root         136 Dec 31 22:50 Beceem_firmware/
-rw-r--r--    1 admin    root     1018.4K Dec 31 22:50 asus_base_apps.tgz
-rw-r--r--    1 admin    root        4.1M Dec 31 22:50 downloadmaster_3.1.0.59_mipsel.ipk
drwxr-xr-x    2 admin    root         326 Dec 31 22:50 easy-rsa/
drwxr-xr-x    6 admin    root         216 Dec 31 22:50 etc/
-rw-r--r--    1 admin    root      349.9K Dec 31 22:50 libcurl_7.21.7-1_mipsel.ipk
-rw-r--r--    1 admin    root      301.4K Dec 31 22:50 libevent_2.0.11-1_mipsel.ipk
-rw-r--r--    1 admin    root      139.8K Dec 31 22:50 libpar2_0.2-5_mipsel.ipk
-rw-r--r--    1 admin    root        7.4K Dec 31 22:50 libsigc++_2.2.3-1_mipsel.ipk
-rw-r--r--    1 admin    root       64.6K Dec 31 22:50 libuclibc++_0.2.2-9_mipsel.ipk
-rw-r--r--    1 admin    root      916.2K Dec 31 22:50 libxml2_2.7.8-1_mipsel.ipk
-rw-r--r--    1 admin    root      529.1K Dec 31 22:50 ncurses_5.7-1_mipsel.ipk
-rw-r--r--    1 admin    root      693.4K Dec 31 22:50 openssl_0.9.7m-5_mipsel.ipk
drwxr-xr-x    2 admin    root          26 Dec 31 22:50 openvpn/
-rw-r--r--    1 admin    root        2.4K Dec 31 22:50 optware.asus
-rw-r--r--    1 admin    root      482.5K Dec 31 22:50 optware.oleg
-rw-r--r--    1 admin    root      236.6K Dec 31 22:50 pcre_8.30-1_mipsel.ipk
-rw-r--r--    1 admin    root        8.5K Dec 31 22:50 spawn-fcgi_1.6.3-1_mipsel.ipk
-rw-r--r--    1 admin    root       71.8K Dec 31 22:50 zlib_1.2.5-1_mipsel.ipk

also my /lib folder is spammed up with .so files and links to other folders containing items that probably should be on sda1


I have installed entware, I assume this is the trouble maker, although I thought it would keep to sda1...
If anyone can help fix me up that would be great as I can't access my external drive and I don't want to delete these files until I know the problem as:
A. are they needed?
B. It may just re-write them all back? - not ideal for the flash.

Also slightly off-topic what are tmpfs and devfs each 117.1M, and where are they (physically)?

Thanks

P.S. Not a Linux Guru, so keep it reasonable ;)
 
Last edited:
Your message is about memory, not storage.

Code:
free

Either you are running too many programs, or one of them is leaking memory.

Root is always full because it's not writable.

tmpfs and devfs are virtual filesystem stored in RAM.
 
Last edited:
Ah well that explains a lot.
Wow, I managed to go completely the wrong way...
anyway...

Code:
admin@RT-N66U:/tmp/home/root# free
              total         used         free       shared      buffers
  Mem:       239868       172464        67404            0         1128
 Swap:            0            0            0
Total:       239868       172464        67404

I'm not sure what normal usage is, or how full it should be
Only things I have on it is transmission and entware

Also 'top' gives this (only pasted things over 1% RAM usage )
Code:
  619   618 admin    S N  91880  38%   0% minidlna -f /etc/minidlna.conf
  608     1 admin    S    91880  38%   0% minidlna -f /etc/minidlna.conf
  618   608 admin    S    91880  38%   0% minidlna -f /etc/minidlna.conf
21875     1 admin    S    18692   8%   0% transmission-daemon -g /opt/etc/transm
  517     1 admin    S     4272   2%   0% httpd

I'll assume the 3 'minidlna' are all the same thing?
Not really sure what that is apart for something to do with media serving, I guess its part of the ASUS software as I have not specifically installed it. I don't have anything set up to do with it as far as I know.
 
minidlna is the Media Server that is used to stream your media files to a device that supports the DLNA protocol (many smart TVs do). If you aren't sharing video/music/photos from a plugged USB drive beside through a network drive then I recommend disabling the Media Server. It will save up on resources and RAM.

They're all the same program, it's just multithreaded so it can handle media scanning in parallel with actually streaming.

Most likely it's Download Master taking up a lot of your RAM.
 
I'll turn off minidlna, although I assume it SHOULD work and this is a bug with asus somewhere?
Problem can't be download master, it is not installed. I followed the transmission through entware guide from scratch because download master was hogging all the ram and just plain bad.
 
I'll turn off minidlna, although I assume it SHOULD work and this is a bug with asus somewhere?
Problem can't be download master, it is not installed. I followed the transmission through entware guide from scratch because download master was hogging all the ram and just plain bad.

Download Master or self-installed Transmission is the same - Transmission will use a fair amount of RAM on its own.

This isn't actually a bug, just the router not having enough RAM to run everything you are trying to run on it at the same time.
 
Hmm...
Just not sure where it is gone, watching top with transmission running at full speed the RAM never goes over 8% and CPU stays around 3 - 5%
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top