LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-15-2013, 08:41 AM   #1
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 1,051

Rep: Reputation: 83
How to recover from FULL hard disk?


I went to sleep and left the computer running, then I woke up and noticed a couple of programs complaining about lack of space on my hard disk. Upon investigation, it is uvcdynctrl spamming /var/log/uvcdynctrl-udev.log. It's a known bug, happened before:

https://bugs.launchpad.net/ubuntu/+s...am/+bug/811604

It created a multi-gigabyte log file, which I deleted, but the OS won't reclaim the space. Several programs still complain about lack of space on the hard disk and 'df -h' indeed reports 0 bytes left in the root '/' partition.

I have a lot going on in this session right now, rebooting would be a major inconvenience. How do I make the OS understand that the filesystem is no longer filled up?
 
Old 02-15-2013, 08:56 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
how did you delete?
 
Old 02-15-2013, 10:17 AM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Kill uvcdynctrl first then emtpy /var/log/uvcdynctrl-udev.log and then check if setting "debug=0" in /lib/udev/uvcdynctrl works as suggested.
 
Old 02-15-2013, 01:10 PM   #4
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 1,051

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by amani View Post
how did you delete?
Code:
rm /var/log/uvcdynctrl-udev.log

Quote:
Originally Posted by unSpawn View Post
Kill uvcdynctrl first then emtpy /var/log/uvcdynctrl-udev.log and then check if setting "debug=0" in /lib/udev/uvcdynctrl works as suggested.
I have done all that. Then I went to do something else and almost one hour later, I saw the space had been reclaimed.

But I've run out of space in other situations and would like to know how to make the OS acknowledge the available space immediately.
 
Old 02-15-2013, 04:03 PM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Here's a few ideas:
- actually confirm setting "debug=0" works or not (you didn't),
- if you have rsyslogd try adding a line
Code:
:msg, contains, "libwebcam" ~
, else
- remove /var/log/uvcdynctrl-udev.log then symlink /dev/null to /var/log/uvcdynctrl-udev.log, or else
- remove the software packages that cause writes to /var/log/uvcdynctrl-udev.log.

If a file isn't kept open on a file descriptor (most common mistake) then most of the time freed up space gets shown immediately. Sometimes it doesn't and then you can 'sync' all you want and only a reboot will work AFAIK because you won't be able to umount and fsck a partition that's constantly written to like /var in the first place.
 
1 members found this post helpful.
Old 02-16-2013, 07:42 AM   #6
lucmove
Senior Member
 
Registered: Aug 2005
Location: Brazil
Distribution: Debian Stretch
Posts: 1,051

Original Poster
Rep: Reputation: 83
Quote:
Originally Posted by unSpawn View Post
Here's a few ideas:
- actually confirm setting "debug=0" works or not (you didn't),
That sounds like you're complaining to me. I can't confirm because I don't know how to trigger the bug. It's the second time it happens in months, so it's unpredictable. I changed that option from 1 to 0, now time will tell if it works or not. Or maybe it won't, because I have been on the verge of upgrading the entire OS/kernel. Too much work has been making me postpone the upgrade. Maybe it will never happen again after I upgrade. But knowing how to reclaim space that was just made available would be applicable in other situations.

Quote:
Originally Posted by unSpawn View Post
- remove /var/log/uvcdynctrl-udev.log then symlink /dev/null to /var/log/uvcdynctrl-udev.log
That is a good idea, though not quite what I was looking for. I have done something similar to ~/.xsession-errors for years after being burned a couple of times. I symlink it to /var/log/, and /var has its own partition.

Quote:
Originally Posted by unSpawn View Post
If a file isn't kept open on a file descriptor (most common mistake) then most of the time freed up space gets shown immediately. Sometimes it doesn't and then you can 'sync' all you want and only a reboot will work AFAIK because you won't be able to umount and fsck a partition that's constantly written to like /var in the first place.
Like I said, I left the computer alone for almost one hour. The space had been reclaimed by the time I came back. I don't know what happened...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Recover Data from Hard Disk vikas027 General 5 12-22-2011 01:59 PM
How can I recover my files in my hard disk? SHENGTON Linux - Newbie 4 05-16-2011 06:19 AM
How to recover data from hard disk dongyan_liu Linux - Newbie 1 12-01-2005 05:56 PM
can I recover from disk full - without reboot ? can't open display dtimms Linux - Software 3 09-19-2004 12:27 AM
how do i recover my Hard Disk and MBR? Pisces107 Linux - General 5 12-25-2003 11:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration