Skip to content

This shell script is for partitioning of LVM Installations. The Linux Mint and Ubuntu Installer didn't allow self-partitioning of LVM Installations. But i want to split some things like the home directory for easier changes afterwards.

Notifications You must be signed in to change notification settings

Linux-Installation/partitioning

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Linux-Installation - Partitioning

Supported Distributions

This script is made for Ubuntu derivatives, but should work on all Linux Distribution which supports lvm and ext4.

Why

This shell script is for partitioning of LVM Installations. The Linux Mint and Ubuntu Installer didn't allow self-partitioning of LVM Installations. But i want to split some things like the home directory for easier changes afterwards.

What is the partitioning

Amount of Space Purpose
40 GB / (root)
30 GB /programs (For flatpak and snap)
1 GB swap
other 80% of free space /home

How to Use

If you already have created LVM partitions e.g. from Ubuntu 20.04, then you can skip until 4. In the Linux Live Environment:

  1. create 3 Partitions without a file system
    • 1GB Big (efi Partition)
    • 2 MB BIOS Grub Partition (not needed if you only use EFI)
    • The last one should be the free space which is left.
  2. Edit script 22.04-live-1.sh and insert the variable partition. Put in the location of the in 1.2 created partition. (biggest one)
  3. execute 22.04-live-1.sh (This will create 4 LV root, home, programs, swap)
  4. Start Installation
    • choose root as Mount Point /
    • choose programs as Mount Point /programs
    • choose swap as swap
    • choose home as Mount Point /home
  5. After Installation execute 22.04-live-2.sh (This will change that flatpak and snap make use of the programs partition)

( If you use a USB-Stick with Ventoy, you can Inject the script file in the Ubuntu Live Enviroment -> https://www.ventoy.net/en/doc_live_injection.html )

[Optional] Ventoy Liveinjection

The partition-vX.tar.gz file is ready for use with ventoy. (The File will appear in /home [Thats because every distribution has it's own username]) Just create on the ISO Partition a directory ventoy and create a File named ventoy.json with a content like this

{
    "injection": [
        {
            "image": "/nameofyouriso.iso",
            "archive": "/partition-vX.tar.gz"
        }
    ]
}

replace nameofyouriso with the name of your iso file and partition-vX with your actual version! Copy your iso and the partition-vX.tar.gz to the iso Partition.

TODO

About

This shell script is for partitioning of LVM Installations. The Linux Mint and Ubuntu Installer didn't allow self-partitioning of LVM Installations. But i want to split some things like the home directory for easier changes afterwards.

Resources

Stars

Watchers

Forks

Languages