?
Solved

Edit boot grub

Posted on 2011-09-03
11
Medium Priority
?
383 Views
Last Modified: 2012-05-12
Hi,

I want to edit the grub.cfg file in boot so that it is in text mode. Which line do i edit ?

To physically do it, I press 'e', write text to the line and then ctr-x. But how do i do it from the grub.conf? Is it similar ?

Thanks.



0
Comment
Question by:zizi21
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
11 Comments
 
LVL 21

Expert Comment

by:Papertrip
ID: 36479231
To make this permanent, you need to edit /etc/inittab

Find the line with "initdefault", and change the digit in that line to "3" for run-level 3.
0
 
LVL 79

Expert Comment

by:arnold
ID: 36479270
Which linux version do you have?
Debian/ubuntu have a different mechanism than the one papertrip reference. It uses the telinit <run_level> mechanism.
telinit 3
Running runlevel in the shell should tell you which runlevel it is in.
chkconfig gdm off
http://www.cyberciti.biz/faq/prevent-xorg-from-starting-in-linux/
0
 
LVL 21

Expert Comment

by:Papertrip
ID: 36479286
I had thought the grub.cfg (instead of .conf) was just a typo, but after your reply I realize that it's not a typo if the distro is Ubuntu (or possibly some other Debian variant).

Guess I won't get my first points from this one heh.
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 79

Expert Comment

by:arnold
ID: 36479292
You very well should get some points since the asker was not specific in their question and it is a valid answer to the question.
0
 

Author Comment

by:zizi21
ID: 36479299
I am using Ubuntu 10.04.2 LTS.

I did try changing the run level but i can't restart the computer after that..Someone told him they have changed the linux distrubtion, so, the run level would not work.
0
 

Author Comment

by:zizi21
ID: 36479301
I prefer using grub as I could the variables anytime i want to..i don't want it to be permanent..
0
 

Author Comment

by:zizi21
ID: 36479303
Any help is appreciated. Thanks.
0
 
LVL 79

Expert Comment

by:arnold
ID: 36479312
e
single
to boot in single user mode at which point you can use telinit to reset to level 3/2. Or revert the changes you made.

I do not know whether using e and then putting 2 will let you boot the system or whether Single is the only parameter (special Case)

0
 

Author Comment

by:zizi21
ID: 36479328
I am able to log into the computer now after installing linux again (sometime back). That's the reason I am hesitating to change the run level..Can I do it with boot grub ? I am able to do it when I am physically at the computer. But, I want to change the script so that I don't need to physcially be at the computer. I could ssh anywhere and change it..
0
 
LVL 79

Accepted Solution

by:
arnold earned 2000 total points
ID: 36479330
disable  GDM (/sbin/chkconfig GDM off) which is the Gnome Desktop Manager.

When the system boots normally, what is the output from running /sbin/runlevel?
N 3, N 4, N 5?

Disabling the GDM service as outlined above, will maintain the same runlevel, but without starting the graphical display which is what you want.


0
 

Author Comment

by:zizi21
ID: 36480115
Thanks. I am trying it now.
0

Featured Post

Will your db performance match your db growth?

In Percona’s white paper “Performance at Scale: Keeping Your Database on Its Toes,” we take a high-level approach to what you need to think about when planning for database scalability.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Suggested Courses

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question