root@0x5ha157:~/blog$ cat 102_linux_install.md

LPIC-1: Linux Disk Management

Topic: 102.1 | Author: 0x5ha157 | Status: Study Notes

Disks act as physical containers for data. Before we can use a disk in Linux, we must break it down into logical "fences" known as partitions. This compartmentalization allows us to separate User Data (/home) from OS Data (/), improving stability and security.

1. Partition Tables & Filesystems

Every disk requires at least one partition. The information about where partitions start and end is stored in the Partition Table. There are two main standards:

Inside each partition lives a Filesystem (FS). The FS acts as the librarian, organizing how files and directories relate to one another. Common Linux filesystems include ext4, xfs, and btrfs.

2. LVM (Logical Volume Manager)

Traditionally, a partition cannot span across multiple physical disks. LVM solves this limitation. It abstracts physical storage into logical "pools".

Why use LVM?

3. Mount Points

Unlike Windows which uses drive letters (C:, D:), Linux uses a single directory tree. To access a filesystem, it must be mounted to a specific directory.

# Example: Viewing directory contents
[02:37 PM]-[0x5ha157@0x5ha157-Dell]-[/home]-
$ ls
0x5ha157  0xt3m4

Key Mount Hierarchies:

Best Practice: If you are manually mounting a filesystem permanently, you might often use specific folders you create, but for temporary admin work, stick to /mnt.

4. The Boot Partition (/boot)

This partition contains the kernel (vmlinuz), initial RAM disk (initrd), and bootloader configuration (GRUB2).

5. The EFI System Partition (ESP)

For modern machines using UEFI (Unified Extensible Firmware Interface) instead of BIOS, an ESP is required.