What's new

Error locking /var/lock/cfg_mnt.lock: 28 No space left on device _SOLVED

  • 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!

joe scian

Very Senior Member
Hi Im in a bit of strife with my RT-AC5300

After a reboot Im getting the following in syslog
Code:
pr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor

I issued the following command df -h

Code:
joescian@RT-AC5300-0680:/tmp/home/root# df -h
Filesystem                Size      Used Available Use% Mounted on
/dev/root                34.3M     34.3M         0 100% /
devtmpfs                251.4M         0    251.4M   0% /dev
tmpfs                   251.6M    251.5M     24.0K 100% /tmp
/dev/mtdblock4           64.0M     19.4M     44.6M  30% /jffs
/dev/mtdblock4           64.0M     19.4M     44.6M  30% /www/Main_LogStatus_Content.asp
/dev/sda1                13.4G      2.5G     10.2G  20% /tmp/mnt/MY_LINUX2
/dev/mtdblock4           64.0M     19.4M     44.6M  30% /www/QoS_Stats.asp
/dev/sdb1               233.2G     11.5G    221.7G   5% /tmp/mnt/sdb1
/dev/sdd2                 3.6T     46.8G      3.6T   1% /tmp/mnt/TOSHIBA_EXT(1)
/dev/sdc1               931.5G    718.4G    213.1G  77% /tmp/mnt/HD-PCTU3
tmpfs                   251.6M    251.5M     24.0K 100% /www/index_style.css
tmpfs                   251.6M    251.5M     24.0K 100% /www/require/modules/menuTree.js

It shows some filesystems at 100% - any idea how I correct this issue please?
 
Hi Im in a bit of strife with my RT-AC5300

After a reboot Im getting the following in syslog
Code:
pr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error locking /var/lock/cfg_mnt.lock: 28 No space left on device
Apr 20 18:00:08 RT-AC5300-0680 syslog: Error unlocking -1: 9 Bad file descriptor

I issued the following command df -h



It shows some filesystems at 100% - any idea how I correct this issue please?
Does a scan report of the top 20 largest files on '/tmp/' give any clue?
Code:
du -axh /tmp/ | sort -nr | head -n 20
 
more issues here
Code:
uiDivStats: Starting Diversion statistic generation...


/opt/bin/grep: write error: No space left on device
echo: write error: No space left on device
awk: cmd. line:1: Division by zero
echo: write error: No space left on device
awkNR: /tmp/uidivstats/div-bwl: No such file or directory
head: standard output: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
awkNR: /tmp/uidivstats/div-bwl: No such file or directory
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
echo: write error: No space left on device
uiDivStats: Diversion statistic generation completed successfully!
 
im getting blocked by snbforums when i try and post output
 
804.0K /tmp/bwdpi
612.0K /tmp/var
456.0K /tmp/etc
396.0K /tmp/bwdpi/bwdpi.rule.db
 
288.0K /tmp/bwdpi/bwdpi.devdb.db
 
288.0K /tmp/bwdpi/bwdpi.devdb.db
Hmm, you are look for files sizes in MB/GB.
Try the command again, but remove 'x'.... just in case
 
Martineau
I think i found it - it may have been a corruption on my Toshiba 4Tb drive hanging off the Router. When I initially ran your command one of the outputs was a 250 MByte file /tmp/mnt/TOSHIBA_EXT/Better_Call_Saul.mkv - and another 250Mbyte file pointing to /tmp/mnt/TOSHIBA_EXT(1)/Better _Call_Saul.mkv. I deleted both of these and now when I run
du -axh /tmp/ | sort -nr | head -n 20 - there is no reference to /tmp/mnt/TOSHIBA_EXT and the largest file is 804.0Kn/tmp/bwdpi. Or - I must have put the download file ( 250MBYTE ) in the wrong directory space when I was experimenting with aria2 Torrent downloader. Anyway
thank you very very much for your expert guidance - it was also extremely crazy not being able to post the full output because snb was continually blocking me - something the site filter is not happy with
 
Last edited:
@joe scian, next time use pastebin.com to post your logfile. :)
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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