The boot sequence of a bare metal server

Knowing what happens between pressing Reboot and the first SSH prompt makes most start-up failures quick to diagnose.

What happens when I press Reboot in the console?

The machine restarts its hardware and then reads its boot setting: either the installed system on the drives or the network rescue system. On disk boot the firmware hands over to the boot loader on the drives, which loads the Linux kernel and a small initial filesystem, which in turn finds the real root filesystem and starts systemd. A server class board spends 60 to 180 seconds in its own hardware checks before any of that, so a two to four minute gap before SSH answers is normal.

Which stage does what?

StageJobWhere to look when it fails
Firmware (UEFI or legacy BIOS)Tests memory, finds disks and network cards, picks a boot deviceMemory or disk faults: open a ticket
Boot loader (GRUB)Reads grub.cfg, loads kernel and initramfsMissing EFI partition, broken grub.cfg
KernelStarts the processor cores, loads built-in driversKernel panic text in the previous boot's journal
InitramfsLoads storage drivers, assembles RAID, mounts rootRoot device not found, degraded array
systemdMounts /etc/fstab, brings up the network, starts servicesjournalctl -b, failed units

How does UEFI find the system on a mirrored pair?

Through a small FAT partition, the EFI System Partition, at the start of each drive. The firmware reads a boot entry from its own memory that points to a file on that partition, typically \EFI\debian\shimx64.efi or the equivalent for your distribution. Because firmware cannot read software RAID, our installer gives each drive its own copy of that partition, so the machine still starts when one drive is gone. The UEFI boot on software RAID guide shows how to keep the copies in step after updates.

efibootmgr -v
lsblk -o NAME,SIZE,FSTYPE,PARTTYPENAME,MOUNTPOINTS

What does the initramfs do on a RAID server?

It assembles the arrays before the real system exists. The kernel cannot mount a root filesystem that lives on /dev/md2 until mdadm has put the members together, so the initramfs carries mdadm and a copy of /etc/mdadm/mdadm.conf. If you change an array, rebuild the initramfs, or the next boot may wait for a device name that no longer exists.

mdadm --detail --scan | tee -a /etc/mdadm/mdadm.conf
update-initramfs -u -k all      # Debian and Ubuntu
dracut --regenerate-all --force # AlmaLinux, Rocky Linux and Fedora

How do I read the log of a boot that failed?

Ask the journal for the previous boot once the machine is back. Persistent journalling is on by default in current Ubuntu, Debian and Enterprise Linux releases; if /var/log/journal is missing, create it so the logs survive restarts.

journalctl --list-boots | tail -n 3
journalctl -b -1 -p warning --no-pager | tail -n 60
systemctl --failed

Typical findings are an /etc/fstab line pointing at a UUID that changed, a network configuration with a typo, or a service that blocks the boot while it waits for a mount. Adding nofail to non-essential mounts stops one missing data disk from holding the whole server at the emergency shell.

What is different about a rescue boot?

A rescue boot loads a small Linux system over the network instead of your drives. Choosing Boot in rescue mode in the console changes the boot setting and restarts the machine; a new root password for the rescue system appears in the console. Your drives are left untouched and can be mounted, checked and repaired. When the work is done, choose Boot from hard disk and the next restart goes back to the installed system. Our IPMI and rescue mode article explains why this network system takes the place of a remote screen.

Why does the server not answer after a kernel update?

Usually because the new kernel or initramfs cannot find the root device, or the network interface name changed. Boot rescue mode, mount the root filesystem, enter it with chroot and either rebuild the initramfs or select the previous kernel as default. Keeping at least two kernels installed, which every supported distribution does by default, means there is always a known-good entry to fall back on.

mount /dev/md2 /mnt && mount /dev/md1 /mnt/boot
for d in dev proc sys run; do mount --rbind /$d /mnt/$d; done
chroot /mnt /bin/bash
grub-set-default 1 && update-grub

How long should a normal restart take?

From the console button to a working SSH prompt, three to five minutes on most of our machines. Larger boards such as the Enterprise line with many memory modules take longer in firmware tests, and Storage machines with 16 or 24 drives spend extra time initialising each one. Wait at least ten minutes before deciding a reboot has failed, then check the console status before you open a ticket.

Machines with short and long firmware start-up

ModelProcessorCoresMemoryDrivesPortPer month
ESSENTIAL-2Intel Xeon-E 2388G832 GB2x 512 GB SSD NVMe1 Gbps unmetered$43.20
BUSINESS-1 2024AMD EPYC 4244P632 GB2x 960 GB SSD NVMe3 Gbps unmetered$81.60
STORAGE-3 2024Intel Xeon Gold 6554S36128 GB2x 960 GB SSD NVMe + 24x 22 TB HDD SAS10 Gbps unmetered$1,037.40
ENTERPRISE-a4 2026AMD EPYC TURIN 945548128 GB2x 1.92 TB SSD NVMe5 Gbps unmetered$510.00

Related pages

Change the root password

Set a new root password on a running server, or reset a forgotten one from the rescue system, and decide whether root needs a password at all.

Read more

UEFI boot on software RAID

Make a mirrored server start from either drive: one EFI partition per disk, boot entries for both, and a hook that keeps the copies in sync.

Read more

IPMI and rescue mode

What out-of-band management is, and how console power control, reinstall and rescue boot cover the same needs on our machines.

Read more

Debian

Debian 13 or 12: a lean, conservative base that stays out of the way on machines you want to forget about.

Read more

Questions and answers

How long does a dedicated server take to reboot?

Usually three to five minutes from the console button to SSH. Machines with many memory modules or drives spend longer in firmware tests.

Do your servers boot with UEFI?

Our installer creates an EFI System Partition on each drive of a mirrored pair, so the machine can start from either drive.

Where are the logs of a boot that failed?

Run journalctl -b -1 after the next successful start to read the previous boot. Rescue mode lets you read the journal files directly if the system never starts.

What does Boot from hard disk mean in the console?

It switches the boot setting back from the network rescue system to the installed system on your drives. The next restart uses it.

Can I watch the boot screen remotely?

A remote screen console is not part of the service. The console offers reboot, power, reinstall and rescue boot, and the journal of the previous boot shows what happened.