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.
I found another post on my topic, but it is scary... So, I will ask it here for my own case.
I got warning that my / partition is out of space. I searched a bit and found somwhere to delete my Swap partition (not sure it was a good idea, from my 30+ years of Windows, I think it is important to have it)
Anyway - I now have 7.63GB of unallocated space.
1) Can I merge that space into my /dev/sda7 file system ext4?
2) That unallocated space, is sitting one line above it
3) If I but from a USB on go into Try option
4) It seems it will move the partion, will I loose data?
Distribution: Ubuntu based stuff for the most part
Posts: 1,176
Rep:
You can boot into a live distro like Gparted, and then extend your / into the free space. It has a nice GUI, so no typing in commands in a terminal. https://gparted.org/
You can boot into a live distro like Gparted, and then extend your / into the free space. It has a nice GUI, so no typing in commands in a terminal. https://gparted.org/
Not clear (I am new to Linux) what does it mean - boot into...
Please see my GParted screen shot
Yes you can simply drag the edge of /dev/sda7 to incorporate that unallocated space. Notice the key symbol - that means it's locked, as you currently have it mounted as the root.
If you still have your install USB, boot that and select "Try Linux" or whatever the option is - this is "live" mode and runs completely in RAM without using your hard disk. From there gparted will allow you to add the space.
How long it will last is questionable given your current usage - most likely /home.
Distribution: Ubuntu based stuff for the most part
Posts: 1,176
Rep:
At this point, forget about the USB as I was assuming that /home was a separate partition. I thought Ubuntu made /home a separate partition by default, but that seems to not have happened here.
Quote:
145G 130G 8.0G 95% /
I don't see a mount for /home in your df -h post, so I assume that it is not a separate partition. In which case expanding your / to take over the swap partition will not last long as the next time you download more stuff that space will be gone.
To stop / from filling up and preventing the system from booting, you need to point /home to another disk or its' own partition at least.
Depending on what your external drives are for, you may want to try copying /home to one of them then setting up your /etc/fstab to mount it as /home. Once that is working you can work on cleaning up /.
We know from other threads that the OPs personal files are about 40GB, and that this is a single user install. So I would suspect first that the log files are the culprit.
At this point, forget about the USB as I was assuming that /home was a separate partition. I thought Ubuntu made /home a separate partition by default, but that seems to not have happened here.
I don't see a mount for /home in your df -h post, so I assume that it is not a separate partition. In which case expanding your / to take over the swap partition will not last long as the next time you download more stuff that space will be gone.
To stop / from filling up and preventing the system from booting, you need to point /home to another disk or its' own partition at least.
Depending on what your external drives are for, you may want to try copying /home to one of them then setting up your /etc/fstab to mount it as /home. Once that is working you can work on cleaning up /.
Sorry, what you are telling me here goes way over my head... What do you meant - "Transfer /home to another disk"?
My own folders are within the HOME folder
We know from other threads that the OPs personal files are about 40GB, and that this is a single user install. So I would suspect first that the log files are the culprit.
Alex: what does
Code:
du -hs /
show?
If that only returns one line, try
Code:
du -h /
I want to see the size if each directory under /
When I run the first command, I get this:
Code:
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/BeleuraArtists/Muriel/Reduced': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/Events/WebPageImages/Images': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/Expo_pics/Bob': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/Expo_pics/Brian': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/Expo_pics/Dee': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/MasterFrame/Backup': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/Personal/4_mypdf': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/funnyslides/Old_funnies': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/funnyslides/menshopping': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/mypictures/DinnerDance_20160925': Input/output error
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/mypictures/DinnerJazzatotherplace': Input/output error
When I run the 2nd command, I piped the output into a text file, 5MB , so it was too large and the site rejected it. Then, I tried to tar.gz it, it came back with file invalid. So here is just the 1st part of it
We know from other threads that the OPs personal files are about 40GB, and that this is a single user install. So I would suspect first that the log files are the culprit.
Alex: what does
Code:
du -hs /
show?
If that only returns one line, try
Code:
du -h /
I want to see the size if each directory under /
OK, here are some pictures and numbers.
My Ubuntu 20.04 is installed in a dual boot with Windows 10 on the other side
1) The Ubuntu section started with 149GB partition - see attached image
2) At the time of writing, I have 9.2GB free on it
3) My own folders and files consume only 15.3GB after moving out several folders to the SD card
4) My folders are in alexfolders, inside the home folder
THe attached pictures will tell the other part of the story
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.