LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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
  Search this Thread
Old 07-11-2003, 12:14 PM   #1
Baklan
LQ Newbie
 
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11

Rep: Reputation: 0
Edit file in Grub


I have RH9 and it loads into init 5 by default but im having problems with video drivers and it freezes when it loads.

I need to change intittab from 5 to 3 and as i understand the only way to do it is in grub.

Someone please advise. If there's any other way to fix this problem feel free to comment.
 
Old 07-11-2003, 12:32 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
there are plenty of ways to change. in x normal x session run "init 3" as root for example. you would do it via grub by pressing e to edit and adding "init 3" to the command line before you run it.
 
Old 07-11-2003, 12:39 PM   #3
Baklan
LQ Newbie
 
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11

Original Poster
Rep: Reputation: 0
I cant load X, i have to do it in grub.
in grub i have the following load line:

kerenel /boot/vmlinuz-2.4.20-8 ro root=LABEL=/

where do i add init 3 line? when i press enter it exits the edit. How do i do it?
 
Old 07-11-2003, 12:50 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
anywhere, the end will be fine. grub should show you instructinos on the screen at the time.
 
Old 07-11-2003, 12:50 PM   #5
Baklan
LQ Newbie
 
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11

Original Poster
Rep: Reputation: 0
actually i have the following lines in grub:

root (hd0,1)
kernek /boot/vmlinuz-2.4.20-8 ro root=LABEL=/
initrd /boot/initrd-2.4.20-8.img

I tried adding another line:
init 3

but when i boot it says unrecognized command
 
Old 07-11-2003, 12:57 PM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
I think it may be init=3.
The online manual may help you.
http://www.gnu.org/manual/grub/html_mono/grub.html
 
Old 07-11-2003, 01:00 PM   #7
emence
Member
 
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81

Rep: Reputation: 15
Jesus christ this guy is a newbie and you idiots are telling him to f@ck with his grub file, yeah thats smart, here is an appifany, change the line in your /etc/inittab from:
id:5:initdefault:
to
id:3:initdefault:

and if your wondering how to boot up enogh to be able to change it, at the grub load sceen, hit e, then edit the line:
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi
to
kernel /vmlinuz-2.4.20-8 ro root=LABEL=/ hdc=ide-scsi s
then boot to singe and edit the above mentioned /etc/innittab file.
 
Old 07-11-2003, 01:04 PM   #8
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Thumbs up

To boot into Single User mode

Add the word "single" at the end of the kernel line and press ENTER.

You will be returned to the GRUB screen with the kernel information. Press the [b] key to boot the system.
 
Old 07-11-2003, 01:08 PM   #9
Baklan
LQ Newbie
 
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11

Original Poster
Rep: Reputation: 0
Thank you, emence, it worked
What does "s" mean anyway? How come it didnt load up to the point when it asks me for user/pass?
 
Old 07-11-2003, 01:14 PM   #10
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
s means Single User mode.

Single User mode (init 1 or runlevel 1) is similar to Safe Mode in Windows. It never requires a username and password.

Use it to fix problems with your system, to change your root password if you forget it, etc...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
I cannot edit grub.conf file!! Azzath Linux - Software 3 03-23-2005 03:00 PM
How to edit grub.conf file? hnash53 Linux - Software 1 12-12-2003 01:33 AM
Trying to edit my grub mranderson Red Hat 1 11-25-2003 10:07 PM
edit grub digital bots Linux - Newbie 5 11-09-2002 01:09 AM
GRUB edit? walid97 Linux - Newbie 2 10-04-2002 01:07 PM


All times are GMT -5. The time now is 04:41 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration