Linux Fundamentals Installation
Linux Fundamentals Installation
Hereβs a simple explanation of the Installation section:
π§ Installation Basics in Linux
1. π₯οΈ Designing the Disk Partitioning Scheme
Partitioning = Dividing your hard drive into sections for different purposes.
Common Linux partitions:
/
β Root: Main system files (required)./home
β Personal files for users (optional but useful)./boot
β Stores files needed to start Linux (required).swap
β Used as virtual memory when RAM is full (optional)./var
,/opt
,/usr
β Used for special software/data (optional).
β Example layout:
1
2
3
4
/boot β 512 MB
/ β 20 GB (or more)
/home β Remaining space
swap β 2 GB (or more, based on your RAM)
2. π½ Ensuring /boot Conforms to Hardware Requirements
- The
/boot
partition stores the kernel and bootloader (e.g., GRUB). On UEFI systems, you need an EFI System Partition:
- Format: FAT32
- Size: 512 MB to 1 GB
- Mount point:
/boot/efi
- On BIOS systems,
/boot
is just a normal ext4 partition.
π Make sure your boot partition is properly formatted and large enough.
3. π Concept of Swap Space
- Swap is disk space used like extra RAM.
- Helps when your system runs out of memory.
- Can be a partition or a swap file.
Recommended sizes:
- RAM < 2 GB β swap = 2x RAM
- RAM 2β8 GB β swap = same as RAM
- RAM > 8 GB β swap = 2β4 GB (or more if using hibernation)
4. π¦ Understanding LVM (Logical Volume Manager)
- LVM is a flexible way to manage disk space.
Instead of fixed partitions, LVM allows you to:
- Resize volumes easily (without reboot).
- Combine multiple drives into one logical group.
- Create snapshots (useful for backups/testing).
LVM structure:
1
Physical Volume (PV) β Volume Group (VG) β Logical Volume (LV)
β Benefits:
- Easier resizing
- Better disk management
- Ideal for servers or advanced setups
This post is licensed under CC BY 4.0 by the author.