LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
LinkBack Search this Thread
Old 06-23-2008, 11:03 AM   #1
ufmale
Member
 
Registered: Feb 2007
Posts: 385

Rep: Reputation: 30
how to boot linux in text mode?


How to boot linux (fedora) in a text mode? Is there a parameter in grub to do so?

I did use "init 3" command line to reboot in text mode successfully, but just wonder if there is a grub parameter to get to the text mode?
 
Old 06-23-2008, 11:11 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You select the entry you want to boot, press 'e' to edit it and then select the "kernel" line. Press 'e' to edit that line and add a 3 to the end of it (you need a space between the 3 and the last word already there). Then you just hit 'b' to boot.
 
Old 06-23-2008, 12:52 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Not sure if Nylex solution is a permanent one (I don't have much experience with grub). The default runlevel is (or at least used to be) defined in /etc/inittab.

Look for initdefault in the above file and change the 2 to 3 to make it permanent (and independent from the bootloader).
Code:
# The default runlevel.
id:2:initdefault:
 
1 members found this post helpful.
Old 06-23-2008, 12:53 PM   #4
billymayday
Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 120Reputation: 120
If you want to always boot to the cli, edit /etc/inittab, and change
Code:
id:5:initdefault:
to
Code:
id:3:initdefault:
Edit - in Fedora, you'll find the gui is runlevel 5

Last edited by billymayday; 06-23-2008 at 12:54 PM. Reason: Clarification
 
Old 06-23-2008, 01:31 PM   #5
elliott678
Member
 
Registered: Mar 2005
Location: North Carolina
Distribution: Arch
Posts: 977

Rep: Reputation: 72
Quote:
Originally Posted by Wim Sturkenboom View Post
Not sure if Nylex solution is a permanent one (I don't have much experience with grub).
It is permanent if you edit the menu.lst file, changing it as Nylex described will only work once.

I like to add a second Grub entry, leaving runlevel 5 as the default, but with a second entry that will boot into runlevel 3 when necessary.
 
Old 06-24-2008, 02:50 AM   #6
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
Wink

Just check out for the different Run levels - -
Run level 0 :shutdown
Run level 1 :Single user modes
Run level 2 :multi user mode without NFS
Run level 3 :Full multi user mode with Networking
Run level 4 :user definable
Run level 5 :GUI
Run level 6 :Reboot

If you want to always boot to the cli, edit /etc/inittab, and change
Code:

id:5:initdefault:

to
Code:

id:3:initdefault:
 
Old 06-24-2008, 03:09 AM   #7
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
As far as Grub is concerned press the "c" key should drop the system from the graphic to the text mode. This should work with all Fedora, as far as I know.

There are only a few programs that inhibit text mode, notably gfxmenu and hiddenmenu.

If there are present they can be disabled by preceding a "#" in front of the line.

Fedora only uses a splash image to make the screen look better and users can opt for the text mode by pressing the "c" key.

Grub in text mode allows any install PC system to be booted manually. It is unbelievably powerful.
 
Old 06-24-2008, 03:20 AM   #8
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 302
Blog Entries: 1

Rep: Reputation: 34
kernel /vmlinuz-2.6.18-8.el5 ro root=LABEL=/ rhgb quiet 3

after quiet you can define your runlevel.
 
Old 06-24-2008, 06:32 AM   #9
sahil.jammu
Member
 
Registered: Jun 2008
Distribution: Ubuntu
Posts: 83

Rep: Reputation: 15
Just check out for the different available Run levels

Run level 0 :shutdown
Run level 1 :Single user modes
Run level 2 :multi user mode without NFS
Run level 3 :Full multi user mode with Networking
Run level 4 :user definable
Run level 5 :GUI
Run level 6 :Reboot


Commands ~
init 0 -shutdown
init 1
init 2
init 3
init 4
init 5
init 6 -restart


If you want to always boot to the command line interface,
edit /etc/inittab, and change

Code:
id:5:initdefault:

to
Code:

id:3:initdefault:

Save and exit the inittab file.

use init 6
Now your system will boot in text mode.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How change text color using linux in text mode only runlevel 3? Xavius Linux - General 7 05-07-2009 02:19 AM
LXer: Howto Boot debian in text mode instead of graphical mode (GUI) LXer Syndicated Linux News 0 09-09-2007 07:41 PM
convert text mode linux OS to graphical mode csaju Linux - Newbie 1 10-09-2006 05:18 AM
Don't know how to boot in a non-text mode leefarrant Linux - Newbie 10 11-15-2003 07:35 AM
How to boot without X (Text mode)??? Jefklak Red Hat 5 10-16-2003 03:10 PM


All times are GMT -5. The time now is 01:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration