Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my Ubuntu, I can't switch to console through Ctrl+Alt+Fx using my own compiled kernel, and a black screen appears.

I can switch back through Ctrl+Alt+F7. Using the default Ubuntu kernel, I can switch normally. dmesg has no message about this.

How can I fix this?

share|improve this question

migrated from stackoverflow.com Feb 27 '12 at 13:42

This question came from our site for professional and enthusiast programmers.

Add both kernel versions and your graphic card and driver. Can you see the console during boot? – Banthar Feb 27 '12 at 12:26
kernel-2.6.34 ,nvidia Gforce 9300GS,and the graphic card driver seems has some problem(resolution is low),so I want to switch to console to install mannually. I Can login X successfully,and during boot console didn't displayed(just ubuntu's purple screen). Even can't get to console through recovery mode! when boot through recovery mode, it get stuck in a ubuntu purple screen with: Loading Linux-2.6.34... Loading initial ramdisk... – hello.wjx Feb 27 '12 at 14:39
Do you have your own kernel running under the same Ubuntu installation, or do you have your own configuration for the own kernel. – user unknown Apr 29 '12 at 20:18
@hello.wjx How do you know that dmesg has no message about your tty switching issue? Where have you been searching for? – Pro Backup Mar 12 '14 at 17:57

Have you created and populated your /etc/inittab appropriately? In particular you'll want these:

# Run gettys in standard runlevels
1:2345:respawn:/sbin/getty tty1
2:2345:respawn:/sbin/getty tty2
3:2345:respawn:/sbin/getty tty3
4:2345:respawn:/sbin/getty tty4
5:2345:respawn:/sbin/getty tty5
6:2345:respawn:/sbin/getty tty6
share|improve this answer
There is no /etc/inittab by default in ubuntu,I added it following your advice,but it doesn't work, :-( there is no corresponding info in /var/log/messages – hello.wjx Mar 9 '12 at 2:49
@hello Hmm. IIRC, Ubuntu switched to upstart some time ago, perhaps that's the problem. I'll look into how to configure upstart. – Kevin Mar 9 '12 at 3:00
it's switched to upstart,but /etc/inittab should still works because /etc/init/rc-sysinit.conf will read that. It should be a kernel specific issue because ubuntu default kernel is ok on my machine.Maybe some module gets wrong? – hello.wjx Mar 10 '12 at 3:58

In Ubuntu, I find tty-configuration/commands in:


    # tty1 - getty
    # This service maintains a getty on tty1 from the point the system is
    exec /sbin/getty 38400 tty1

    # tty1 - getty
    # This service maintains a getty on tty1 from the point the system is
    exec /sbin/getty -8 38400 tty1

I don't know how they depend on each other and what to do about them, but suspect, that the setup is managed there.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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