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

  • SNBForums will be unavailable for about 2 hours TOMORROW 23 January starting around 2PM EDT for a server changeover.

    All accounts and posts will be preserved.
  • ATTENTION! As of November 1, 2020, you are not able to reply to threads 6 months after the thread is opened if there are more than 500 posts in the thread.
    Threads will not be locked, so posts may still be edited by their authors.
    Just start a new thread on the topic to post if you get an error message when trying to reply to a thread.

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:
[email protected]:/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?
 

Martineau

Part of the Furniture
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
 

joe scian

Very Senior Member
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!
 

joe scian

Very Senior Member
im getting blocked by snbforums when i try and post output
 

joe scian

Very Senior Member
804.0K /tmp/bwdpi
612.0K /tmp/var
456.0K /tmp/etc
396.0K /tmp/bwdpi/bwdpi.rule.db
 

joe scian

Very Senior Member
288.0K /tmp/bwdpi/bwdpi.devdb.db
 

Martineau

Part of the Furniture
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
 

joe scian

Very Senior Member
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:

L&LD

Part of the Furniture
@joe scian, next time use pastebin.com to post your logfile. :)
 

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