LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-05-2004, 01:23 PM   #1
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Rep: Reputation: 30
Lightbulb RedHat Problem after a power loss


Today morning my house ran out of electrical power. my linux box was on and of course it turned off. Now i tried to boot up and i have a problem. it just keeps "restarting" it just loops between the login (command type) and the graphical screen. I mean when it try to recognize the graphics card (ithink) it fails and go back to the login (command type) text screen and try again. but it doe not let me type the user and pass. it does not reaches the graphical logon screen.
Any hel will be apeciated......
 
Old 06-05-2004, 01:50 PM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
You can try
Ctrl+alt+F2
but I don't think that will work. Better to do:

At the grub boot screen you have to press
e
(I don't have a computer with grub up right now)

Anyway, you need to have it boot to
linux single

This will boot to a commandline prompt with root access

Then edit the file /etc/inittab
replace
id:5:initdefault:
with
id:3:initdefault:
and reboot. This will boot into console.

Then when you login as root
redhat-config-xfree86
 
Old 06-05-2004, 04:32 PM   #3
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
i'll try

i'll try to do what you wrote. aso soon as i have somethin i'll write back.

thank you for you answer
 
Old 06-05-2004, 05:12 PM   #4
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
which command

wich command do i use to edit the file you said. i can see it wit
cat /etc/inittab
and i see where is the line i need to modify but i dont see the edit commmand
 
Old 06-06-2004, 04:13 PM   #5
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
wich command do i use to edit the file you said. i can see it wit
cat /etc/inittab
and i see where is the line i need to modify but i dont see the edit commmand
 
Old 06-06-2004, 08:09 PM   #6
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
vi /etc/inittab

To move around use the arrow keys

press the i key to edit text. When you're done editing press
ESC
then
:wq
 
Old 06-06-2004, 08:52 PM   #7
The_Nerd
Member
 
Registered: Aug 2002
Distribution: Debian
Posts: 540

Rep: Reputation: 32
I say use joe or pico to edit the file. However I had this problem once before... when I turned of to many system services! I just logged in on the text login screen fast enough, and then type 'setup'. When the setup utility was running, it didn't poo out for me, then I just reenabled the services I disabled! However, I don't think I had it enabled to boot into X on login. So you might have a little bit different thing here...
 
Old 06-07-2004, 10:39 AM   #8
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
the command vi does not work there
what else can i use????
 
Old 06-07-2004, 10:39 AM   #9
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
where do i use the Ctrl+alt+F2
 
Old 06-07-2004, 10:51 AM   #10
naren
Member
 
Registered: Feb 2004
Posts: 66

Rep: Reputation: 15
I think u have to do

:wq!

to forcibly write in to a file ...

I think

:wq

may not help
 
Old 06-07-2004, 11:17 AM   #11
Ciccio
Member
 
Registered: Nov 2002
Location: Paraguay
Distribution: Mandrake 10
Posts: 573

Rep: Reputation: 30
This should go to the newbie forum. Anyway...

Ctr+alt+F# is used to switch between virtual terminals (tty). you can use it whenever you want (unless the system is realy hanged) on a fully loaded system (X does not count).

vi MUST work. I think I've never seen a system without vi. Make sure you are not using caps. You may also try a harsh editing. not very safe though.

for example:
Code:
#mv /etc/inittab /etc/inittab.old
#cat /etc/inittab.old |grep -v id:5:initdefault: > /etc/inittab
#echo "id:3:initdefault:" >> /etc/inittab
or try
#more /etc/inittab

and while seeing the file press v (it should start vi)
 
Old 06-09-2004, 06:21 PM   #12
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
i have used vi previously , but here (in the section i pressed "e" then "c" for commnad) does not exist. it says click tab to see commands
andvi does not appear there.
 
Old 06-09-2004, 06:50 PM   #13
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
Unhappy

i cant go into the console. when it try to boot up at the graphical screen it only shows like a tv without cable. then it shows me the console mode for a second then it tries to go into the graphics again it is only looping between ths two states. please help befor i format again.....
 
Old 06-09-2004, 08:33 PM   #14
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 47
When you press "e" in grub you can't run vi from there. (I am not going to reboot to try it out.) But if you have an option to enter a boot command it is

linux single

you have to boot to a normal console to use vi.
 
Old 06-11-2004, 09:57 AM   #15
jocast
Member
 
Registered: May 2004
Location: Laredo
Distribution: FC3
Posts: 185

Original Poster
Rep: Reputation: 30
and how do i boot to a normal console????
 
  


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
Squid don't start after power loss sveinxp Linux - Networking 4 08-31-2004 03:55 PM
Power loss - disk health check - how to force? kalahari875 Mandriva 2 05-27-2004 07:12 AM
Total loss of power on HD seek ??? KendersPlace Linux - Hardware 4 04-27-2004 02:03 AM
Power loss, now no email etc Bake-SaleNet Linux - Networking 2 02-01-2004 06:26 PM
Batch Script to shutdown the system in the event of power loss scottpioso Linux - Hardware 5 03-12-2003 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:04 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
Open Source Consulting | Domain Registration