I can't change the hostname on my Raspbian Pi 64 trixie (full version).
I've tried doing it through the GUI, as well as these methods:
But the SD card is fine: if I create a file, it's still there on reboot.
I reboot using `sudo reboot` or `sudo init 6` . When using raspi-config, I let raspi-config reboot. Using `sync` and waiting a bit before rebooting doesn't help.
Any idea what's going on and how to fix it?
I'm Linux literate, as a retired software engineer, using it for 25 years, plus UNIX for 12 years before that. Amazing how quickly the neurons die, though.
I've tried doing it through the GUI, as well as these methods:
Code:
sudo vi /etc/hostname /etc/hosts # I can make the changes (with legal hostname) but they're lost on rebootsudo hostname <newname> && sudo hostnamectl set-hostname <newname> # changes are lost on rebootsudo raspbi-config # changes are lost on rebootI reboot using `sudo reboot` or `sudo init 6` . When using raspi-config, I let raspi-config reboot. Using `sync` and waiting a bit before rebooting doesn't help.
Any idea what's going on and how to fix it?
I'm Linux literate, as a retired software engineer, using it for 25 years, plus UNIX for 12 years before that. Amazing how quickly the neurons die, though.
Statistics: Posted by jlearman — Tue Dec 30, 2025 4:12 pm