LinuxSir.cn,穿越时空的Linuxsir!

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

在grub下使用什么命令 可以引导系统 直接到 文本登陆的屏幕!!

[复制链接]
发表于 2006-11-14 19:05:22 | 显示全部楼层 |阅读模式
如体!!就是那个黑品\屏
发表于 2006-11-15 05:42:27 | 显示全部楼层
进入X之后,ctrl+alt+F2切换控制台即可,+F5切回来
回复 支持 反对

使用道具 举报

发表于 2006-11-15 10:35:07 | 显示全部楼层
是指Linux启动以后,不进入X,只进入字符界面么?
那么,在起动器的内核参数后面添加init 3就可以。
如原先
kernel (hd0,6)/boot/vmlinuz-xxx.xxx.xxx ro root=LABEL=/ quiet rhgb
改为
kernel (hd0,6)/boot/vmlinuz-xxx.xxx.xxx ro root=LABEL=/ quiet rhgb init 3
回复 支持 反对

使用道具 举报

发表于 2006-11-17 10:39:54 | 显示全部楼层
Runlevel
A runlevel is a mode of operation that is used to group certain sets of daemons based on some purpose or restricted use. For the Fedora/Redhat based Linux systems, the primary runlevels in Fedora are:
•        runlevel 1: Single-User Mode
•        runlevel 2: Multi-User Mode
•        runlevel 3: Multi-User Mode with Networking
•        runlevel 5: X11 (runlevel 3 + X Window System "the GUI").
Typically most users run with the X-server in runlevel 5, and many servers without X-servers run in runlevel 3. Usually runlevel 1 has no services running.
To determine what runlevel you are using, run:
# /sbin/runlevel
To determing what runlevel your system will start at the next boot, run:
# cat /etc/inittab | grep :initdefault:
id:5:initdefault:
Similarily you can edit the file /etc/inittab and change the initdefault value at line ~18.
To switch runlevels, you can run the following, replace RUNLEVEL with the appropriate number (3, 5, etc.):
# /sbin/init RUNLEVEL
Note: When switching FROM runlevel 5 to another runlevel, you might accidentally kill your X-server and entire GUI. Always make sure you are at a text console (CTRL-ALT-F1,F2,F3,F4) before switching runlevels.
To force a runlevel at boot without modifying /etc/inittab, you pass a number to end of the kernel from the Grub menu. At boot, higlight the option you wish to boot and before hitting <Enter>, hit <E>. Go to the end of the kernel line and add a 3 or 5. Then hit <Enter> and boot (<B> to boot).
回复 支持 反对

使用道具 举报

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

本版积分规则

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