Announcement

Collapse
No announcement yet.

Manual partitioning advice for multiboot with Kubuntu 26.04LTS and two more OSs.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [Pre-Install] Manual partitioning advice for multiboot with Kubuntu 26.04LTS and two more OSs.

    Hello everyone! Happy new LTS release! 🎂🥳

    I am thinking of installing kubuntu 26.04 on my laptop, as well as Vanilla OS 2 Orchid, along with the existing win11. I would like to ask for partitioning advice prior installation.

    I have installed a 1TB m2 drive to the laptop, cloned the old drive´s partitions with clonezilla and now I have plenty of unallocated space left, around 800GB I think. The windows partitions take up less than 200GB and I am not planning to store data or install any software there.

    My current wish is to be able to run all operating systems on my laptop, and hopefully be able to upgrade to kubuntu 28.04 LTS without the system breaking in about two years.

    A blog in the vanilla OS website suggests the following for manual partitioning:
    • GPT table
    • 1GB for /Boot (ext4)
    • 512MB for /EFI (fat32)
    • 20.5GB ¨for the Root partition pool unformatted.¨, which I do not understand what it means,
    • swap for hibernation support
    • remaining storage for /var (btrfs)
    I do not know whether the author supposed a dedicated drive, but my in-use drive already has a gpt table if I am not mistaken, so it seems I am hopefully ok with that one.

    I had a chat with an AI tool which gave me the below suggestion:
    • leave everything windows related as-is
    • 80GB for Kubuntu root (ext4 or btrfs), mount point /
    • 80GB for Orchid root (ext4 or btrfs), mount point /
    • 24GB linux swap, shared between Kubuntu and Vanilla
    • remaining GB for storage, accessible via all three operating systems. (ntfs)
    • install Vanilla, then Kubuntu so I keep the Kubuntu boot loader.
    • ¨Use the existing ESP for all bootloaders; do not create a new ESP.¨
    • ¨Add the NTFS partition to each OS /etc/fstab using UUID: sudo blkid to get UUID, then mount with ntfs-3g options for Linux.¨

    So, my question is, do the above make sense? Is there by chance a different recommended method for manually partitioning before installing multi boot with 2 linux distros + windows?

    Thank you in advance!


    References:


    ​

    #2
    Yes that looks OK. Should work. Follow AI suggestion.
    After you got everything installed then make a backup of the boot partition (ESP) with something like KDE Partition Manager. Because Windows might delete it and recreate it in certain scenarios (Big update, FIX boot etc.). I find it faster to just restore a ESP that windows ****ed up than using live CD to repair Linux boot.

    Comment


      #3
      Originally posted by zahtar View Post
      • install Vanilla, then Kubuntu so I keep the Kubuntu boot loader.
      (You'll want to turn on grub's OS prober, by setting GRUB_DISABLE_OS_PROBER=false in /etc/default/grub and running update-grub.)

      Some Vanilla update might still trample on the kubuntu boot loader. If Vanilla uses grub, you could uninstall it from Vanilla to stop that. Being familiar with sudo efibootmgr could be useful.

      I don't know how Vanilla installs to a btrfs; if it uses subvolumes you could put it and Kubuntu in the same btrfs to economize on space, with some /etc/fstab and grub manipulation.
      Regards, John Little

      Comment


        #4
        Hello, thank you both for your replies!

        I installed Vanilla, it went well up to that point, with the exception that it asked to ¨keep EFI¨ in case I multi-boot, with the result not prioritizing its boot loader. From that point on, I needed to press F12 to get the boot menu, where vanilla was available and would boot properly if selected. Otherwise, the laptop used to boot to win11.

        I thought this would not be a big deal, since I was ready to install kubuntu and expected its bootloader to take care of things. But this did not happen. The Vanilla option still doesn´t show up in grub, I still need to access the OS by F12 during power up. If I let it boot, grub will just show entries like ¨kubuntu, windows boot loader, UEFI hardware settings¨. This is after entering sudo update-grub​

        The weird thing is that when running sudo update-grub​ (I did that twice), the system does detect vanilla, promises that it will update the grub entry, but it doesn´t...

        So, two questions:
        a) Is there another way to edit grub entries so I get all options in grub? Or make the system properly update the entries automatically?
        b) During installation, I didn´t tell kubuntu to use the /EFI partition that I created for Vanilla. I created another one so the new labels and flags cause no errors. Is this ok?


        PS: if this conversation needs to move to a post-installation thread, let me know and I´ll rephrease here and create a new one.
        Last edited by zahtar; Yesterday, 04:29 PM. Reason: rephrased to describe better the current situation.

        Comment


          #5
          Originally posted by zahtar View Post
          a) Is there another way to edit grub entries so I get all options in grub?
          There's at least 3 ways to do this:
          1. edit the file /etc/grub.d/40_custom to have the menu entries you need, then run sudo update-grub,
          2. create the file /boot//grub/custom.cfg with the desired entries; no update-grub needed.
          3. eschew the whole update-grub machinery altogether, and maintain manually grub.cfg.
          No. 3 is a big step but I have done it for years and I claim that it's easier and far more reliable in the long term.

          With any of these methods menu entries for a *buntu install can look like this:
          Code:
          menuentry 'Kubuntu' --class ubuntu --class gnu-linux --class gnu --class os {
              search --no-floppy --label --set=root your-label
          
              linux /@/boot/vmlinuz root=LABEL=your-label ro rootflags=subvol=@
              initrd /@/boot/initrd.img
          }
          ​
          ​Adjust your-label to suit. More conservatively you can use the UUID instead; change --label to --fs-uuid and LABEL to UUID, and put in the UUID instead of the label, twice.

          Or make the system properly update the entries automatically?
          ​
          Note that entries like the above boot the latest kernel and initrd ("initial ram disk') so don't have to be updated when a new kernel arrives. I have gone years without needing to touch an entry.
          Regards, John Little

          Comment


            #6
            Laptops have many different keys for accessing the bios, but the majority use either F2 or F8. This is not the same as a temporary F12 to get a drop-down list of bootable options.

            You need to get into the bios proper, and there will be an option for permanently selecting the correct (for you) o/s to be your primary boot system. Then reboot and you should the boot straight into your flavour of choice without having to press the F12 key for the drop-down boot menu.

            Cheers Tony
            Asus Z270i7 16gb rm 8tb GT1660 Haupp Quad tuner Kubuntu Jammy/Win 11 Be/FE mythtv 0.34Homerun dual netwk tuner 55¨ Smsng QN95B55" Lap Smsng NP R580 i5 nvidia linux Ultimate/Win 10

            Comment

            Users Viewing This Topic

            Collapse

            There are 0 users viewing this topic.

            Working...
            X