Extending my / partition ubunto 20.04
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? Or is there a more safe way to do it? Thank you Alex |
Please post (in code tags) the output of
Code:
df -h |
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/ |
Quote:
OK, here it is: Code:
lex@alex-nuc8i7hnk:~$ df -h |
1 Attachment(s)
Quote:
Please see my GParted screen shot You understand that I an scared to touch it.... Cheers Alex |
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. |
See this YT and check Gparted: https://www.youtube.com/watch?v=0czAJwEbtFs
Don't you want to find out what's the largest file? If yes, check out this: https://www.cyberciti.biz/faq/how-do...sd-filesystem/ From above link: Quote:
|
1 Attachment(s)
Quote:
The attached picture is what was the result Thanks Alex |
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:
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.
Alex: what does Code:
du -hs / If that only returns one line, try Code:
du -h / |
Quote:
My own folders are within the HOME folder Thnaks Alex |
Quote:
Code:
du: cannot read directory '/media/alex/New-SD-512/.Trash-1000/expunged/1577484753/BeleuraWeb/MyBeleura/BeleuraArtists/Muriel/Reduced': Input/output error Code:
48K /opt/extras.ubuntu.com/my-weather-indicator/share/my-weather-indicator/openweathermap/files Code:
28K /opt/quick-n-easy-web-builder-7/blocks/Price Tables Alex |
4 Attachment(s)
Quote:
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 |
Sorry.
The “cannot read” errors are because those file are owned by root. Try using sudo. Code:
sudo du -hs /var It also looks like there are many directories from the rsync thread that you’ve deleted. Is that the whole 40 GB? Try emptying the Trash. I realize I’m not exactly on topic here, but I suspect the real problem is files being saved that you don’t need... |
post your /etc/fstab
|
All times are GMT -5. The time now is 06:58 AM. |