LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-05-2024, 03:39 AM   #16
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10

Quote:
Originally Posted by MadeInGermany View Post
Good joke anyway, "Your DVD is full".

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.
 
Old 03-05-2024, 03:52 AM   #17
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,710

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Have you read the other responses?
 
Old 03-05-2024, 03:54 AM   #18
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by Jason.nix View Post
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).
 
Old 03-05-2024, 05:49 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,519

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
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.
 
Old 03-05-2024, 05:56 AM   #20
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by yancek View Post
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.
 
Old 03-05-2024, 07:42 AM   #21
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,662
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
"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.
 
Old 03-07-2024, 10:31 AM   #22
Jason.nix
Member
 
Registered: Feb 2023
Posts: 561

Original Poster
Rep: Reputation: 10
Hello,
So can't I resize the / partition?

Cheers.
 
Old 03-07-2024, 11:20 AM   #23
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
Quote:
Originally Posted by Jason.nix View Post
Hello,
So can't I resize the / partition?

Cheers.
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.
 
Old 03-07-2024, 11:46 AM   #24
MadeInGermany
Senior Member
 
Registered: Dec 2011
Location: Simplicity
Posts: 2,796

Rep: Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201Reputation: 1201
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.
 
Old 03-08-2024, 06:26 AM   #25
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,519

Rep: Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493Reputation: 2493
Quote:
So can't I resize the / partition?
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
 
Old 03-08-2024, 11:51 AM   #26
rnturn
Senior Member
 
Registered: Jan 2003
Location: Illinois (SW Chicago 'burbs)
Distribution: openSUSE, Raspbian, Slackware. Previous: MacOS, Red Hat, Coherent, Consensys SVR4.2, Tru64, Solaris
Posts: 2,803

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
Quote:
Originally Posted by Jason.nix View Post
Hello,
Disk space is full:
Code:
$ sudo df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            1.9G     0  1.9G   0% /dev
tmpfs           390M  564K  389M   1% /run
/dev/xvda1      3.6G  3.5G     0 100% /
tmpfs           1.9G     0  1.9G   0% /dev/shm
tmpfs           5.0M     0  5.0M   0% /run/lock
/dev/xvda6      5.3G  247M  4.8G   5% /home
tmpfs           390M     0  390M   0% /run/user/0
tmpfs           390M     0  390M   0% /run/user/1000
[snip]

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.

HTH...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
add extra tab space at the end of the row lakshana Linux - Newbie 4 03-21-2023 12:50 AM
SCSI controller - Add extra controller & add a disc to the extra controller raj100 Linux - Hardware 1 11-01-2015 11:30 AM
LVM - creating extra logical volumes (using extra space outside LVM) rhbegin Linux - Server 1 01-30-2013 07:08 PM
/var is out of space, need to add extra disk and need to maintain the data . neonate Linux - Server 1 05-21-2011 01:28 PM
add space to / when from spare space on disk ctsiow Linux - General 4 11-07-2007 07:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration