Help - my / is running full!

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Help - my / is running full!

Postby viking60 » 08 Mar 2011, 19:06

I could use some expert help here to find the best way around this:
My / is running full and I used ncdu -x / to find out what used the space (nice old du tool):


Code: Select all

6,5GiB [##########] /usr                                                                                                                                                                                                                     
 5,8GiB [########  ] /var

I figure I should move one (or both?) of those over to a partition of its own. I have plenty of space on the /home partition so there is room enough.
Could I please have some educated tips here - what is the best way to go about it?
Remember: I am just a common magazine reader, so keep it simple :?:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Help - my / is running full!

Postby dedanna1029 » 08 Mar 2011, 19:35

And, as su, this reveals... ?

Code: Select all

du -akx / | sort -nr | head -n 25

Also, this is for Arch, or MDV, or ? that you want to move it?
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Help - my / is running full!

Postby viking60 » 08 Mar 2011, 20:06

This is Arch.
(And I have identified what is taking up the space so I am beyond the du commands).
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: Help - my / is running full!

Postby dedanna1029 » 08 Mar 2011, 20:32

You can find what's within those folders that's taking up space, too, to see if there's anything you can get rid of:

Code: Select all

du -akx /usr | sort -nr | head -n 25

Code: Select all

du -akx /var | sort -nr | head -n 25

In /var, I have a feeling you may have backups or logs taking up space. You can run logrotate and see if that helps with /var.

I don't remember how to move either partition, but I do remember something about it not being a good idea to move /var.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Help - my / is running full!

Postby viking60 » 08 Mar 2011, 22:07

Yes I can see that. But deleting some stuff is kind of temporary when I have reached the limit. But doing some cleaning up could not hurt I guess.
Anyway i downloaded parted magic version 5.10. This version can handle ext4. I am now in the process of reducing my /home partition by 7 gig.
This enables me to handle the /home partition which is impossible when Arch is running because /home is in use.
The Idea is to mount /usr on that freed up space. Now I only have to remember how that is done in CLI. :think:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: Help - my / is running full!

Postby viking60 » 08 Mar 2011, 22:32

And then of course I will have the four primary partition problem :think: Since I have Windows on that box too I will have to risk to extend the / partition. :pray:
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
gnuuser
Berserk
Posts: 449
Joined: 18 Aug 2010, 21:52
Location: northwestern Pa.
Contact:

Re: Help - my / is running full!

Postby gnuuser » 09 Mar 2011, 00:44

i had this on an older computer running vector
added a second hard drive and moved those partitions to the second drive and resized them
worked ok
the thing is you can move partitions to a different drive easily and resize them as long as you have the space
also moving a partition to another drive your os will erase the original so that space is freed up on the original drive
but none the less back up your data before moving a partition
registered Linux user number 505431
Amateur radio call sign KC3TEC
miracle (mere-ack-ull) :
the aspiration of the indigent, the expectation of the indolent, and the inspiration of the ignorant.

Im so old even dirt was my apprentice!


Return to “Help”