Menu
“Disk layout, boot loaders, shared libraries, Debian and RPM packages, and Linux as a virtual machine.”
Before you can use a Linux system, someone has to install it: split the disk, put a boot loader in place, and add software. This topic is that part of the LPIC-1 exam 101-500. It covers how disks are laid out, how GRUB starts the kernel, how programs find their shared libraries, the two big package families (Debian’s .deb and Red Hat’s and SUSE’s .rpm), and what changes when Linux runs as a virtual machine, a cloud instance or a container.
Each byte follows one official LPIC-1 objective, with commands you can run and an exam checklist at the end.
You’ll learn:
- how to plan partitions, mount points, swap and LVM volumes
- how to configure, install and use GRUB Legacy and GRUB 2
- how to find and fix missing shared libraries with
lddandldconfig - how to install, remove and query packages with
dpkg,apt-get,apt-cache,rpm,yum/dnfandzypper - what to change when you clone a VM, and what cloud-init does
You’ll need: a Linux machine or VM. For the package bytes a container is enough: docker run -it --rm debian or ubuntu for Debian packages, almalinux:9 or fedora for RPM, and opensuse/leap for zypper (you’re root inside them). Partitioning, LVM and GRUB need a VM you don’t mind breaking, and root or sudo.
- 1 Design hard disk layoutWhich partitions a Linux system needs, where they get mounted, how /boot and the ESP fit the firmware, and the basics of LVM.
- 2 Install a boot managerGRUB Legacy and GRUB 2: where they live, how to configure and install them, and how to talk to them at boot time.
- 3 Manage shared librariesWhat shared libraries are, where Linux keeps them, and how ldd, ldconfig, /etc/ld.so.conf and LD_LIBRARY_PATH decide which ones a program loads.
- 4 Use Debian package managementInstall, upgrade, remove and inspect .deb packages with dpkg, apt-get, apt-cache and apt, and find which package holds a file.
- 5 Use RPM and YUM package managementInstall, upgrade, remove and query RPM packages with rpm, yum/dnf and zypper, check signatures, and find which package owns a file.
- 6 Linux as a virtualization guestVirtual machines, containers and cloud instances from the inside: guest drivers, images, what to reset when you clone, and cloud-init.

Byte card
The whole topic on one card
- Plan partitions by use: /, /boot (or the ESP), /home, /var and swap. LVM makes resizing easy.
- GRUB 2: edit /etc/default/grub, then run grub-mkconfig. Never edit grub.cfg by hand.
- ldd shows a program's libraries; ldconfig rebuilds the cache from /etc/ld.so.conf.
- dpkg and rpm handle local files; apt, dnf/yum and zypper fetch dependencies from repositories.
- After cloning a VM, regenerate SSH host keys and the machine ID. cloud-init sets up new instances.
Save it as a cheat sheet, or share it with someone who's learning this too.