Menu
Linux · 01 Topic · 3 steps

System Architecture

“Hardware, the boot process, and moving between runlevels and systemd targets.”

This is the first topic of LPIC-1 exam 101-500. It’s about what happens below the shell: how Linux finds and drives the hardware in a machine, how it gets from the power button to a login prompt, and how you move a running system between states, all the way to a clean shutdown.

These three objectives are where many troubleshooting stories start. A device without a driver, a boot that stops halfway, a server that needs single-user mode: after this topic you’ll know which stage to look at and which command to run.

You’ll learn:

  • how to list PCI and USB hardware, and load, unload or blacklist kernel modules
  • what /proc, /sys and /dev are, and how udev and D-Bus react to new devices
  • every stage of the boot, from BIOS or UEFI through GRUB, the kernel and initramfs to init
  • how SysVinit, Upstart and systemd differ, and how to read boot logs with dmesg and journalctl
  • how to switch runlevels and systemd targets, set the default, and shut down or reboot safely

You’ll need: a Linux machine or a virtual machine (VirtualBox, UTM, GNOME Boxes, a cloud VM) running Debian, Ubuntu, Fedora or a RHEL clone, plus root or sudo for loading modules, changing targets and rebooting. A container like docker run -it --rm debian is fine for reading /proc and trying commands, but it shares the host’s kernel and has no systemd, so modules, boot settings and targets need a real (virtual) machine.

Start reading →
Byte card for System Architecture: /proc, /sys and /dev are built by the kernel: lspci, lsusb and lsmod read them. modprobe loads a driver with its dependencies; /etc/modprobe.d/ blacklists or tunes it. Boot: firmware, GRUB, kernel, initramfs, then init (PID 1) starts everything else. Runlevels are numbers, systemd targets are names: 3 is multi-user, 5 is graphical. shutdown warns users and stops things cleanly: SIGTERM first, SIGKILL only if needed.

Byte card

The whole topic on one card

  1. /proc, /sys and /dev are built by the kernel: lspci, lsusb and lsmod read them.
  2. modprobe loads a driver with its dependencies; /etc/modprobe.d/ blacklists or tunes it.
  3. Boot: firmware, GRUB, kernel, initramfs, then init (PID 1) starts everything else.
  4. Runlevels are numbers, systemd targets are names: 3 is multi-user, 5 is graphical.
  5. shutdown warns users and stops things cleanly: SIGTERM first, SIGKILL only if needed.

Save it as a cheat sheet, or share it with someone who's learning this too.

Search posts and bytes

Optional account

Keep your progress everywhere

Everything on AminBytes is free to read, with or without an account. Sign in only if you want your commits, streak and merged topics saved, on every device.

or

We keep only your name, avatar and which bytes you finished, and you can delete it all anytime. Privacy