Page 1 of 1

Help - my / is running full!

Posted: 08 Mar 2011, 19:06
by viking60
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 :?:

Re: Help - my / is running full!

Posted: 08 Mar 2011, 19:35
by dedanna1029
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?

Re: Help - my / is running full!

Posted: 08 Mar 2011, 20:06
by viking60
This is Arch.
(And I have identified what is taking up the space so I am beyond the du commands).

Re: Help - my / is running full!

Posted: 08 Mar 2011, 20:32
by dedanna1029
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.

Re: Help - my / is running full!

Posted: 08 Mar 2011, 22:07
by viking60
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:

Re: Help - my / is running full!

Posted: 08 Mar 2011, 22:32
by viking60
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:

Re: Help - my / is running full!

Posted: 09 Mar 2011, 00:44
by gnuuser
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