How to get in Maintenance Mode/Rescue mode in QubesOS

Original forum link
https://forum.qubes-os.org/t/17387
Original poster
quququbebebe
Editors
deeplow
Created at
2023-03-13 13:36:32
Last wiki edit
2023-09-07 05:27:46
Revisions
1 revision
Posts count
3
Likes count
1

I messed up something on some config file in dom0, and so QubesOS would crash on boot.

So I had to find a way to start it in rescue mode/maintenance mode/init 1/single user mode, and from what I saw on the QubesOS website and this forum, nothing help me much.

So here is what I did if someone found it useful (or for me later if I messed up again) and can confirm it works well with Qubesos :

From the GRUB boot prompt, press the E button to edit the first boot option.

Find the kernel line starting with linux and change ro to rw init=/sysroot/bin/sh.