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.
Without LVM you can only grow the last partition. There is no simple solution.
But first, what happened to your xvda2? It overlaps with xvda5 and xvda6.
IMHO it should end at sector 7626751
Is it used at all?
Hello,
Thank you so much for your reply.
As you can see the / partition is full and I want to add some space to it. In the Windows operating system, this can be done easily through a series of tools.
Hello,
Thank you so much for your reply.
As you can see the / partition is full and I want to add some space to it. In the Windows operating system, this can be done easily through a series of tools.
And using any linux distro you can do the same, just the exact name of the tools are different (but functionally more or less identical).
The / partition is full because you created it at an impractical size. I'm curious as to what Linux you are using that you would not expect problems with a / partition that small. There are tools to do this and you can enlarge the / partition and I gave a brief overview of that in my earlier post. I would again suggest that you start over and use more realistic sizes.
Your comment about windows only tells us you seem to be familiar with them but know little about Linux tools, pointless comment. Your problem is self created because you created partitions that were impractical for use. A little research prior to doing things often prevents problems such as this.
The / partition is full because you created it at an impractical size. I'm curious as to what Linux you are using that you would not expect problems with a / partition that small. There are tools to do this and you can enlarge the / partition and I gave a brief overview of that in my earlier post. I would again suggest that you start over and use more realistic sizes.
More likely the OP has a 10Gb VPS and mistakenly thought that would be enough for all the things they want to do.
"Anyone can make a mistake" during the original configuration of a system. Just as they can rely on a mechanical device that subsequently begins to fail. LVM provides an elegant solution to both, and it was very well-implemented, by those who obviously knew first-hand what needed to be done.
Would be nice to look for the answer yourself. It is answered several times on several different sites.
In general you can resize whatever you want, if you have enough resources (disk space), and if you have the right software and knowledge.
But you cannot resize the root partition of a running OS.
It looks like you did the setup/install in an impractical way, you are now stuck. You need to learn how can you resize it, it will take several steps (see for example post #11). But we cannot resize it for you.
In principle you can enlarge the root partition of a running OS.
But either you need the free space (sectors) immediately after it, or you need LVM to grow it with a not adjacent space.
Resizing the partition is possible but it is not likely that you will be able to do it until you do some research and learn from it. I gave you a basic outline of what you need in my earlier post (12) and you have been given other suggestions in other posts so what effort have you made. Many members here could do what you want but they had to learn it. To get a basic idea of what you need to know, look at the fdisk output and the sectors, beginning and end sectors for each partition. You will need some familiarity with fdisk or parted/gparted. Gparted would probably be easier to use for you and there is a detailed, online manual
Quote:
Anyone can make a mistake
Simple research probably could have prevented a 'mistake' like this. I expect the OP could install TinyCore or Slitaz on that virtual machine but not any standard Linux. That is why I suggested the simplest solution for the OP would be to reinstall with more appropriate sizes for whichever Linux s/he might be installing
Now I want to add this extra space to / using fdisk tool. How can I do it?
Thank you.
Have you at least looked for an excessive number of log files under /var/log? That's an easy fix to get "/" down from 100%. Move a large one out of the log directory (temporarily moved into /home, perhaps) and begin compressing any older log files---then move the one you relocated to /home back and compress it if possible. "logrotate" will help to minimize the impact of log files once you've configured it to automatically compress logs and remove older ones that you may no longer need to retain.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.