Skip to content
ImagineWorld

System Boot and Process Management

node_idnode-book_suse-certified-administrator_chapter-07-system-boot-and-process-management
node_typechapter-node
schema_profileworld.chapter_node.v1
statusactive
entropyhigh
manifoldworld
domainimagineworld.net
authorityinforms
layercorpus
chapter_num7
chapter_titleSystem Boot and Process Management
governed_byCORPUS
constitutional_citationCONSTITUTION
local graph

Chapter 7 — System Boot and Process Management

Section titled “Chapter 7 — System Boot and Process Management”

When a SUSE Linux system starts, many components work together to initialize hardware, load the kernel, start background services, and prepare the user environment. Understanding how the boot process works and how to control system services is essential for both troubleshooting and performance tuning.

This chapter covers:

  • GRUB2 bootloader
  • Boot sequence and systemd
  • System targets (runlevels model)
  • Service control and process management
  • Viewing and interpreting system logs
  • Troubleshooting system boot failures

By the end, you will know how to bring a system up, down, and back to a working state even under failure conditions.

GRUB2 is the bootloader SUSE uses to load the Linux kernel.

Key GRUB files:

/boot/grub2/grub.cfg Main configuration
/etc/default/grub Default settings to regenerate config

Important: Do not edit grub.cfg directly. Modify /etc/default/grub and rebuild configuration:

Terminal window
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Edit:

Terminal window
sudo nano /etc/default/grub

Modify:

GRUB_TIMEOUT=5

Rebuild GRUB config:

Terminal window
sudo grub2-mkconfig -o /boot/grub2/grub.cfg

Reboot and confirm:

Terminal window
sudo reboot

GRUB control is vital when rescuing broken or misconfigured systems.

SUSE boot flow:

  1. Firmware (BIOS or UEFI)
  2. GRUB2 (loads kernel and initramfs)
  3. Kernel initializes hardware
  4. systemd starts services and targets
  5. Login screen or shell appears

The key component here is systemd.

systemd is the service and process manager used in modern Linux systems.

Check system status:

Terminal window
systemctl status

Start a service:

Terminal window
sudo systemctl start service_name

Stop a service:

Terminal window
sudo systemctl stop service_name

Enable service to start at boot:

Terminal window
sudo systemctl enable service_name

Disable service:

Terminal window
sudo systemctl disable service_name

Check service status:

Terminal window
systemctl status service_name

Examples:

Terminal window
sudo systemctl restart sshd
systemctl status network

Exam hint: SCA expects you to know these commands confidently.

Targets are groups of services that define system states.

Common targets:

TargetPurpose
graphical.targetGUI enabled system
multi-user.targetMulti-user, command-line system
rescue.targetMinimal system for recovery
emergency.targetBare shell, used for manual rescue

Check current target:

Terminal window
systemctl get-default

Change target:

Terminal window
sudo systemctl set-default multi-user.target
sudo reboot

Temporarily switch target (without reboot):

Terminal window
sudo systemctl isolate rescue.target

This skill is critical during system recovery.

List running processes:

Terminal window
ps aux

Interactive system view:

Terminal window
top

A more modern tool:

Terminal window
htop

Kill a process:

Terminal window
kill PID

Force kill:

Terminal window
kill -9 PID

Find PID by name:

Terminal window
pgrep service_name

systemd uses journalctl to manage logs.

View all system logs:

Terminal window
journalctl

View logs for a specific service:

Terminal window
journalctl -u service_name

View logs since last boot:

Terminal window
journalctl -b

Follow logs live (useful for debugging):

Terminal window
journalctl -f

Exam tip: journalctl flags are frequently tested.


If the system fails to boot, choose Advanced Options in GRUB menu and select:

  • Older kernel
  • Rescue mode

To enter emergency mode manually:

Add systemd.unit=emergency.target to the kernel line in GRUB edit mode.

In emergency mode:

Terminal window
mount -o remount,rw /

Then fix:

  • fstab issues
  • Driver or module errors
  • Misconfigured boot settings

A server stopped booting after an admin mistakenly added an incorrect entry to /etc/fstab.

This caused the mount process to fail.

Fix:

  1. Enter emergency mode: Boot with:

  2. systemd.unit=emergency.target

  3. Remount root filesystem read-write:

  4. mount -o remount,rw /

  5. Edit fstab:

  6. nano /etc/fstab

  7. Comment out faulty entry.

  8. Reboot normally.

This scenario appears commonly in production environments.

To manage services, remember:

S T E D Start Stop Enable Disable

And associate them with:

Terminal window
systemctl start
systemctl stop
systemctl enable
systemctl disable

For logs, remember:

journalctl -u service_name

This will solve most troubleshooting questions.


  1. Check your current boot target:
Terminal window
systemctl get-default
  1. Change to multi-user mode:
Terminal window
sudo systemctl set-default multi-user.target

Reboot and observe.

  1. Change back to graphical mode:
Terminal window
sudo systemctl set-default graphical.target
sudo reboot
  1. Practice logs:
Terminal window
journalctl -u sshd
journalctl -f
  1. Restart and verify a service:
Terminal window
sudo systemctl restart cron
systemctl status cron

Document:

  • What changed
  • What each command revealed
  1. Why is GRUB rarely edited directly, and what is modified instead?
  2. What is the difference between a target and a service?
  3. When would you use rescue.target instead of emergency.target?
  4. Why are logs essential during troubleshooting?

Your answers indicate your operational maturity.

In this chapter, you learned:

  • The role of GRUB2 during system boot
  • How systemd manages services and boot targets
  • How to start, stop, enable, and disable services
  • How to interpret system logs using journalctl
  • How to troubleshoot system boot failures safely and confidently

You now have the knowledge to maintain stable and recoverable SUSE systems.