I installed leap 15.3 on a 1 terabyte hard-disk. This gave me a home of about 600 gig ext4, and a root of over 300 gig for root BTRFS.
This was almost what I wanted.
I would like to change that to about 60 - 200 gig for root, looking for advice on the size, and add a ext 4 partition for a virtual machine, and also increase the size of home.
Question 1: Can I do this with tumbleweed also present on this pc? (different hard disk)
I already started yast on tumbleweed and had a look, but I can’t find the shrink option ? Do I need to check format that partition for that option to appear ?
Question 2. How big does a folder for a virtual machine need to be ? is 30 gig enough ?
(Just for info pc is now triple boot, Leap, Tumbleweed and windows10, all have their own hard disk)
It is not possible to resize a btrfs file system but it is possible to resize each of the devices it uses. If there is only one device in use then this works the same as resizing the file system. If there are multiple devices in use then they must be manually resized to achieve the desired result.
I got into trouble because my home was xfs, now I have the same problem with btrfs ?
I am tempted to reinstall leap and just use ext4. Then i atleast can change stuff when I want too.
Note what you ask is to resize the partitions. In order to do so the file system in the partition must also be resized. The XFS file system can not be reduced in size thus a partition containing the XFS file system can not be reduced. Other file systems do not have this limitation. Also note you can only add and remove space to a partition at the ends. thus once you reduce the size of root you yo will have to move home to the end of root before adding space to homes end. This of corse all depends on the current geometry of the disk you can see this via fdisk -l and note the sectors used for each partition.
I assume you wanted to say “Also note you can only add and remove space to a file system at the ends”
Partitions are just numbers in the partition table. Every time you change those numbers, there are partitions that may or may not be on the same place (or on the same starting point and/or same endpoint) as they were in the table before the change. Thus it is easy enough to alter the starting point of a partition end keeping the same end (and it still having the same partition number). How useful such an action is depends very much on the goal. But when the goal is to follow the decrease or to precede the increase of the file system inside, then moving a starting point is a nono…
I am getting totally frustrated and annoyed, because I can’t find an answer. The link from hcvv might answer why though.
I am probably not asking the right question.
I am also gonna download gparted, that fixed for me some issue with the installer of opensuse before.
Me not being able to explain the installer how I want the harddisk formatted.
I just installed leap again, and again ended up with a way to big root partition, although this time ext4.
I will have to dive deeper into the expert settings of the installer or use gparted and then install leap.
So I read most of that link, not much new for me there, but worse at the end:
Bootable GUI tools like Gparted are a step further. They know a lot about the internals of filesystems and can thus change their size, but this is far beyond the scope of this document.
Maybe this is my answer though, I need gparted for what I am attempting to do.
You do not need it at all. A new install should have that waht you want. No need to meddle with those toold.
IMHO when you are not able to create the partitions you need at installation, you will certainly not be able to wrk with gparted (or other such tools).
And, as I understand your several stories here, you have two or three openSUSE systems on that computer. Thus you can always boot one of the others and then use YaST > partitioner, or even gparted from there. Why searching for yet another mini-system with gparted?
I agree but, after trying it multiple times, through the partitioner in yast of my tumbleweed install, I gave up and downloaded gparted.
After gparted to my surprise leap still starts. With a almost 50 gig root, 850 gig home , a 2 gig swap and another almost 30 gig partition. All I ever wanted. ( all ext 4 )
In gparted (hello debian with gnome)
I started by shrinking the root partition from 360 to 50. (and moved it to the left)
Then added a partition of about 30 gig
Then extended home to max and moved it to the left.
Now back to installing a VM on tumbleweed and pointing it to that 30 gig partition.
After reading your post, I realize, I could have installed gparted on tumbleweed. Because I was not changing the disk were tumbleweed is installed, it should have been easy.
One mistake I made was thinking, installing leap and then afterwards changing the partitioning of the hard disk, would be easy.
The other might be me giving up to soon through the installer.
Maybe I should have gone expert mode, although this topic proofs I am not an expert.
I do know that btrfs which is totally new to me confused me a lot.
Maybe I need to install opensuse more often, until I have that installer eat out of my hand.