Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to shutdown and restart (one, next time) in single user runlevel 1 ?

29 views
Skip to first unread message

Peter Hanke

unread,
Nov 18, 2012, 8:38:22 AM11/18/12
to
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

0 new messages