Assume I am currently working on a Linux-System (Ubuntu or CentOS) as a "normal" user.
Now I want to modify /etc/fstab file and need to reboot in single user mode "runlevel 1".
Sorry for this newbie question:
But how do I reboot (ONE TIME=THE NEXT TIME ONLY) in single user mode "runlevel 1" and login as root?
Yes, I know "root" password.
Do I simply have to enter in Terminal:
init 1
shutdown
? Or does Linux forget the previous runlevel which was active before reboot?
After the I modify the /etc/fstab file I want to re-restart the system as "normal/at the beginning" and
be able to login a defined non-root user.
Do I have to tell then the Linux system (how?) to forget the current runlevel 1?
Peter