APLawrence.com -  Resources for Unix and Linux Systems, Bloggers and the self-employed

How to use multiple consoles in Single User mode


Some material is very old and may be incorrect today

© September 2009 Anthony Lawrence

Single user mode (init 1, init S) is sometimes necessary but inconvenient. By default, you only get one console. Why not have tty2 (or any other tty) available to use with the console Alt-Function keys?

On the old SCO systems, I could just do "init 4" and that would enable all the virtual consoles. Linux systems don't provide this capability so directly, but it's easy enough to get what you want.

Ubuntu Upstart

Newer Ubuntu systems use "Upstart" instead of inittab. For these systems, a simple"start tty2" will do the job. After typing that, you can hold "Alt" and press F2 to login there and of course Alt-F1 will bring you back to where you started.

Centos inittab

Centos and other systems that still use inittab require a different approach. You'd think you could just do "/sbin/mingetty tty2 &", but that won't work. Nor will "/bin/login tty2 &" or trying to start bash with input and output directed to another tty. What WILL work is sulogin: "/sbin/sulogin tty2 &". Switch to Alt-F2, give the root password and you have another terminal to work in.

It's certainly possible that another distro may require another way or may work with something that didn't work on Centos.


If you found something useful today, please consider a small donation.



Got something to add? Send me email.





(OLDER)    <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

->
-> Use multiple consoles in Single User mode (Linux)

2 comments


Inexpensive and informative Apple related e-books:

Take Control of Numbers

Take Control of iCloud, Fifth Edition

Take Control of iCloud

Take Control of OS X Server

Take Control of Automating Your Mac





More Articles by © Anthony Lawrence







Sat Sep 15 23:55:17 2012: 11321   jmb

gravatar


Typically the full tty pathname would be required for sulogin:
/sbin/sulogin /dev/tty1 &




Sun Sep 16 00:59:17 2012: 11322   TonyLawrence

gravatar


Sure about that?

------------------------


Printer Friendly Version

Have you tried Searching this site?

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us


Printer Friendly Version





It has become appallingly obvious that our technology has exceeded our humanity. (Albert Einstein)




Linux posts

Troubleshooting posts


This post tagged:

Linux



Unix/Linux Consultants

Skills Tests

Unix/Linux Book Reviews

My Unix/Linux Troubleshooting Book

This site runs on Linode