Is it possible to restart only the userspace? Like shutdown everything up to the kernel and then restart from PID 1?

I would like to snapshot my root btrfs filesystem and quickly boot on that snapsnot.

  • Pressing ctrl-alt-backspace will reboot the GUI. Get you to a login prompt in less than a second. Next you have to restart any services that are running outdated code. – ctrl-alt-delor Oct 2 '20 at 18:02
  • But I want to reboot the whole userspace on another partition/subvolume and restart everything there including systemd. – Francois Oct 2 '20 at 18:36
  • Basically change root= from CMDLINE – Francois Oct 2 '20 at 18:37

Remember what you're running (to be honest it doesn't actually tell you what you're really running, for that refer to systemd : how to get the running target

systemctl get-default 

Switch to single-user mode:

systemctl isolate rescue.target

You may want to kill some remaining processes.

Switch back to whatever mode you had in the beginning (normally it's graphical.target):

systemctl isolate graphical.target

You may also use init 1 and then init 5 which are still supported.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.