[SOLVED] Root drive is out of space, how to allot more room?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Root drive is out of space, how to allot more room?
I am running Fedora, and have recently run out of space on my root drive. I can't even seem to remove packages because of this.
When my system was initially setup, I believe it was done in such a way that I can allot more space to the root drive when needed, but I'm not sure how to do this. Can someone please help?
You can usually boot using a live media like a CD/DVD/USB and then adjust the partition sizes, or remove files to free up space.
One way to handle this is to copy off data and then remove it from there using a live boot situation, and then boot into your system and remove packages once you've freed up enough space to be able to take those actions when the system is running.
Is some portion of this just data that you can copy off to somewhere else?
You absolutely can adjust the size of the partition(s) using a live boot and then a tool like gparted. But every case and everyone's preferences are different. Plus it also depends if you have any free disk space to use to map into your root partition.
Is some portion of this just data that you can copy off to somewhere else?
I'm not really sure. How exactly can I view the contents of the root drive? My hunch is that I have only used it for installing packages, but like I mentioned, I can't seem to remove any packages without some sort of crash occurring.
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,503
Rep:
It may help to know what distro, & the sizes of your partitions.
##########
You can gain 5% of space back by using tune2fs -m 0, but it may not work on a full partition, I use it to have all available space for my /home directory/partition, & give just 1% to the / partition, just in case I need room to play.
##########
As suggested above, LVM gives you the flexibility to move space around, but there are caveats - lets see " df -hT" as well before we start. You might also want to browse the lvresize manpage for background info.
A 50G root filesystem should be more than enough with a separate /home. Those log file don't seem to be using much -- 14MB is barely a blip on a 50G filesystem. Let's see the output from "du -h -x --max-depth=1 /". Don't leave out the "-x" option. You don't want du to descend into pseudo-filesystems like /proc and /sys.
My Fedora has 20G for root - recently upped from 15G. This system has been in continuous use since late May 2015 according to journalctl, so something is definitely amiss. I occasionally have to clean out PackageKit, but only in the region of 4-5 Gig. I use a slight variation of the above - "sudo du / -xh | sort -hr | head".
As for the initial request, there isn't a lot of spare even in /home, but if push comes to shove you can reduce the size of that by say 10G (using lvresize with -r; very important that), then do likewise to add the space to the root. We needed to be sure you weren't using XFS on /home - ext4 is good.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.