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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-11-2003, 12:14 PM
|
#1
|
LQ Newbie
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11
Rep:
|
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.
|
|
|
07-11-2003, 12:32 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
07-11-2003, 12:39 PM
|
#3
|
LQ Newbie
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11
Original Poster
Rep:
|
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?
|
|
|
07-11-2003, 12:50 PM
|
#4
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
anywhere, the end will be fine. grub should show you instructinos on the screen at the time.
|
|
|
07-11-2003, 12:50 PM
|
#5
|
LQ Newbie
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11
Original Poster
Rep:
|
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
|
|
|
07-11-2003, 01:00 PM
|
#7
|
Member
Registered: Jun 2003
Location: Springfield, MO
Distribution: RedHat/Slackware
Posts: 81
Rep:
|
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.
|
|
|
07-11-2003, 01:04 PM
|
#8
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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.
|
|
|
07-11-2003, 01:08 PM
|
#9
|
LQ Newbie
Registered: Jul 2003
Location: Miami
Distribution: RedHat 9
Posts: 11
Original Poster
Rep:
|
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?
|
|
|
07-11-2003, 01:14 PM
|
#10
|
Senior Member
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403
Rep:
|
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...
|
|
|
All times are GMT -5. The time now is 01:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|