Skip to main content

Why does the installer pick a different disk than I expected, and how do root-device hints work?

Syself support For release

On Hetzner bare metal, the installer writes the OS to the disk whose WWN you set in rootDeviceHints on the HetznerBareMetalHost. If it picked a different disk than you expected, that WWN belongs to another disk than you thought. A WWN (World Wide Name) is a fixed ID of the disk itself. Device names like /dev/nvme0n1 can change between boots, so the disk is always selected by WWN. The field is spec.rootDeviceHints.wwn.

To find the WWN, boot the server into the Hetzner rescue system and list the disks by ID:

plaintext
				ls -l /dev/disk/by-id/ | grep -E 'wwn|nvme'
			

You can also register the host without rootDeviceHints. When a pool claims the host, the hardware check runs and the host stops with an error. kubectl describe hetznerbaremetalhost <name> then lists every disk with its WWN. A WWN that matches no disk in the server stops the host with an error in the same way. Nothing is written until the hint is right.

The disk you name is overwritten completely. More on that in Can Syself be installed on a partition, or can we use the rest of the OS disk for data? On a server with more than one disk, take the smallest disk for the OS and keep the larger ones for data.

A complete host manifest with the hint is in Add bare-metal servers. For the checks the installer runs before it writes to the disk, see Order and prepare a Robot server.

Still stuck?

Prepare your case, then email us.