![]() |
What to do when /opt gets full?
df tells me that /opt is a 2 gig partition, 100% full
I installed ncdu and ran it from opt, after enumerating all the directories it says the total disk usage is 429Mb and the apparent size is 378Mb How can I find where my missing 1.5 gigabyte went? (error messages appearing about device storage full, cannot save messages/contacts etc) |
Re: What to do when /opt gets full?
du
Code:
du -s -d 1 /opt | sort -n Check with: Code:
df -i |
Re: What to do when /opt gets full?
here's the output of the first command:
Code:
8 /opt/catorise |
Re: What to do when /opt gets full?
Sorry about the missing -i option, I forgot I was using busybox-power.
Your du output looks OK, leaving us with either a lot of small files or a file system corruption. Let's hope for the former. Try: Code:
find /opt -size -4k | wc Code:
9745 9745 514223 |
Re: What to do when /opt gets full?
/opt in Maemo is actually a bind mount to /home/opt so the slice that's full is actually /home (/dev/mmcblk0p2). The command I like to use to find where my disk space has gone is:
Code:
du -mx /home | sort -n You can also quickly identify large files in a particular directory with: Code:
ls -lahSr |
Re: What to do when /opt gets full?
Yes, a different way to skin the same cat. Starting in /opt makes sure you exclude MyDocs :)
The OP has listed large directories. I suspect a lot of small files rather than large ones. Modest is a likely culprit indeed. Or WhatsApp. |
Re: What to do when /opt gets full?
Quote:
|
Re: What to do when /opt gets full?
No, I did not. Just explaining why -x is not necessary in my example :)
|
Re: What to do when /opt gets full?
The problem with your example is that if he has run out blocks rather than i-nodes (which is also a good theory by the way) then your usage of du doesn't tell us much because it misses out three quarters of the slice. :)
|
Re: What to do when /opt gets full?
Quote:
EDIT: OP, please try wicket's instructions too to be safe. |
All times are GMT. The time now is 05:56. |
vBulletin® Version 3.8.8