Leap 15.0 and disk space


Maybe my question is stupid, but I want to be clear with it:

  • I wanted to install latest opensuse (Leap15.0), and I read recommendation about minimal disk space od 50 GB. Is it for system partition (sda2)? What if it is 20GB (like mine is)?

Thank you for answering my questions.

AFAIK the recommendation is to have min 40GB for a / file system if it is btrfs and 20GB if it is not btrfs. This when you have your /home on e separate file system, else you have to add your guess about how big personal data will grow to that number.

For many this / file system will be on a partition, but If that is on partition /dev/sda2 or not depends on your local situation (like having other OS on the same disk, needing an EFI partition, wanting/needing a boot partition, etc.).

Hum…documentation needs updating then.

Make sure that you do not use “btrfs” for the system partition. And then 20G will be fine.

Or disable snapshots.

There used to be a checkbox for that in the partioner during installation, but I haven’t looked at the new one yet.

It can be done after the installation in the config files, or you can just uninstall snapper (and lock it so that it doesn’t get reinstalled automatically).

Sorry, I should have said: btrfs with snapper switched on.

FWIW, I did a very nearly standard 15.0/KDE installation to EXT4 / & XFS /home yesterday on a PC not my own:

# df -H /
Filesystem	Size	Used	Avail	Use%	Mounted on
/dev/sda3	34G	7.0G	25G	23%		/
/dev/sda1	386M	148k	386M	1%	/boot/efi
/dev/sda4	462G	642M	461G	1%	/home

Most of my installations are more svelte and on much smaller / partitions, typically 4.8G or 5.6G. Only my newest are as much as 8G for /. Thus for most EXTx / users, 20G should be ample.

… unless you plan on using virtual machines with KVM (which stores its images in /var/lib/libvirt/images) or mail servers that store lots of data in /var or other applications like databases or the like.
VirtualBox stores its images by default to the user /home though.

I made “/var/lib/libvirt” a symbolic link to a directory on a separate large drive. Putting virtual images in “/var” is absurd.

I should probably move “/etc/libvirt” to that same large drive, so as to keep everything in the one place.

So, this is situation: If I wanted to use btfrs I would have to resize my pertitions (btw, I use btfrs now have installed Leap 42.3 on sdb2 20GB). Now tell me:

  • do I have to use btfrs, or Leap 15.0 works on ext2 (ext4) also? What are the advantages btfrs against ext2(ext4)? If have no need to do resizing I dont want to do it.
    Thank you for answering my questions.

I have been using “ext4” with Leap 15.0, since about the time of the first alpha test release. It works fine.

As far as I know, the main benefit of “btrfs” is with the snapshots and ability to roll back. But that’s just what takes a lot of extra disk space. Personally, I don’t need rollbacks. If I badly mess up my system, I will just re-install (keeping the separate “/home” file system).

Some like BTRFS, some don’t, many don’t know or care what filesystem they use. AFAICT, SLE and openSUSE are the only distributions that default to BTRFS (which they do only for /). At least one major distro goes as far as explicitly rejecting support for it. Most (close to all?) of the rest default to EXT4 (for /).

Maybe you are installing to a laptop, possibly with a relatively small and/or slow disk: in such cases I always use EXT4 since it is rock solid, easier to manage (at least to me), has smaller footprint and doesn’t get slower with use like BTRFS at times does with small/slow disks.
BTRFS may have advantages in a corporate environment or in test or development setups where snapshots, rollback, copy-on-write or the ability to address a very large disk space might save your day, but is definitely overkill in a laptop for personal use IMHO.
That said, I don’t see LEAP 15 as much different from 42.3 from the filesystem point of view, so if your experience with 42.3 with 20GB was really good and you still prefer BTRFS, you might be able to use it on LEAP 15 as well.

Thank you all for very useful informations and great help. Finally I want to ask antotherone question:

  • in some old books about OpenSUSE linux I read that native partition (sda2) must be ext2 and home partition ext4. Do you think it is right, or if not. tell me what format on what partition.
    Thank you for answering my questions.

Where I have a separate “/boot”, I use “ext2” there. Otherwise I use “ext4”.

The reason that I use “ext2” for “/boot”: mostly it’s because “grub” doesn’t read the file system journal. And partly it’s because very little is written to “/boot” except when updating the kernel.

Apart from that, “ext4” has been very reliable for me. And it is noticeably faster than “ext2”.

Those are valid options, but not necessary ones. Certain installation configurations require a separate /boot/ partition, but for most people separate /boot/ is an unnecessary complication.

EXT2 remains a valid type, the one that I actually still use for the primary partitions on which I install my master bootloaders. EXT2 has no journal, which is fine for me, as it saves space, and /boot/ spends an infinitesimal time being written to, making a journal virtually pointless.

All my /home/ partitions use EXT4. Many people like xfs for home. Either are preferred by most people over other possible types.