LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1052|回复: 2

能进入桌面,但是无法使用tty终端,会是什么原因?

[复制链接]
发表于 2007-6-28 22:35:14 | 显示全部楼层 |阅读模式
按ctrl + alt + f1,屏幕一直停留在"loading, please wait...",没有终端提示符。从ubuntu edgy升级到feisty之后就一直存在这个问题,换了几个内核都一样,升级之前正常。但是进入桌面正常,且可以使用 konsole等虚拟终端。如果killall kdm,则黑屏。

如果不是内核的问题的话,都有哪些可能的原因?例如哪些进程没有启动或者配置有问题?

贴一个完整的inittab,大家帮我看有没有问题?


  1. # /etc/inittab: init(8) configuration.
  2. # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

  3. # The default runlevel.
  4. id:2:initdefault:

  5. # Boot-time system configuration/initialization script.
  6. # This is run first except when booting in emergency (-b) mode.
  7. si::sysinit:/etc/init.d/rcS

  8. # What to do in single-user mode.
  9. ~~:S:wait:/sbin/sulogin

  10. # /etc/init.d executes the S and K scripts upon change
  11. # of runlevel.
  12. #
  13. # Runlevel 0 is halt.
  14. # Runlevel 1 is single-user.
  15. # Runlevels 2-5 are multi-user.
  16. # Runlevel 6 is reboot.

  17. l0:0:wait:/etc/init.d/rc 0
  18. l1:1:wait:/etc/init.d/rc 1
  19. l2:2:wait:/etc/init.d/rc 2
  20. l3:3:wait:/etc/init.d/rc 3
  21. l4:4:wait:/etc/init.d/rc 4
  22. l5:5:wait:/etc/init.d/rc 5
  23. l6:6:wait:/etc/init.d/rc 6
  24. # Normally not reached, but fallthrough in case of emergency.
  25. z6:6:respawn:/sbin/sulogin

  26. # What to do when CTRL-ALT-DEL is pressed.
  27. ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now

  28. # Action on special keypress (ALT-UpArrow).
  29. #kb::kbrequest:/bin/echo "Keyboard Request--edit /etc/inittab to let this work."

  30. # What to do when the power fails/returns.
  31. pf::powerwait:/etc/init.d/powerfail start
  32. pn::powerfailnow:/etc/init.d/powerfail now
  33. po::powerokwait:/etc/init.d/powerfail stop

  34. # /sbin/getty invocations for the runlevels.
  35. #
  36. # The "id" field MUST be the same as the last
  37. # characters of the device (after "tty").
  38. #
  39. # Format:
  40. #  <id>:<runlevels>:<action>:<process>
  41. #
  42. # Note that on most Debian systems tty7 is used by the X Window System,
  43. # so if you want to add more getty's go ahead but skip tty7 if you run X.
  44. #
  45. 1:2345:respawn:/sbin/getty 38400 tty1
  46. 2:23:respawn:/sbin/getty 38400 tty2
  47. 3:23:respawn:/sbin/getty 38400 tty3
  48. 4:23:respawn:/sbin/getty 38400 tty4
  49. 5:23:respawn:/sbin/getty 38400 tty5
  50. 6:23:respawn:/sbin/getty 38400 tty6

  51. # Example how to put a getty on a serial line (for a terminal)
  52. #
  53. #T0:23:respawn:/sbin/getty -L ttyS0 9600 vt100
  54. #T1:23:respawn:/sbin/getty -L ttyS1 9600 vt100

  55. # Example how to put a getty on a modem line.
  56. #
  57. #T3:23:respawn:/sbin/mgetty -x0 -s 57600 ttyS3
复制代码


rc2.d如下:


  1. K01usplash@                   S12dbus@               S20kde-guidance@  S89cron@
  2. K74bluetooth@                 S13kdm@                S20makedev@       S90binfmt-support@
  3. K86ppp@                       S19cupsys@             S20mysql@         S91apache2@
  4. README                        S19hplip@              S20powernowd@     S99acpi-support@
  5. S05vbesave@                   S19mysql-ndb-mgm@      S20rsync@         S99rc.local@
  6. S10acpid@                     S20apmd@               S20ssh@           S99rmnologin@
  7. S10powernowd.early@           S20apport@             S21mysql-ndb@     S99stop-readahead@
  8. S10sysklogd@                  S20apt-index-watcher@  S25mdadm@
  9. S10xserver-xorg-input-wacom@  S20dirmngr@            S89anacron@
  10. S11klogd@                     S20hotkey-setup@       S89atd@
复制代码
发表于 2007-6-29 01:53:25 | 显示全部楼层
/etc/event.d/下面是tty1~6吗
回复 支持 反对

使用道具 举报

发表于 2007-6-29 13:05:25 | 显示全部楼层
按ctrl + alt + f2
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表