LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-11-2003, 08:47 PM   #1
Ckret_01
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Rep: Reputation: 0
linux keeps rebooting?


(Red Hat 9.0)
Well, I start linux and all the checks go fine but right before I get the login and password(non GUI) it goes black and then goes back to the login and password. I tried typing fast enough to get the login and password with no luck. It goes by too fast.
How can I break the loop?

I rebooted many times=same thing

Is there any way to stop it?

(it is not dual booted)

Last edited by Ckret_01; 12-11-2003 at 08:49 PM.
 
Old 12-11-2003, 08:54 PM   #2
Ckret_01
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Well, this is my buddies PC..
What he did was this Trying to create a boot disk)
dd if=/boot/vmlinuz-2.4.20-8

I wrote it to the floppy and rebooted..then the login and password keep looping....
 
Old 12-11-2003, 09:04 PM   #3
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
At the lilo boot prompt type
linux single
It sounds like it is trying to do a boot into X and autologin or something and failing.
Look in /etc/inittab and change the line with initdefault to 3 if it is set to 5 like this:
id:3:initdefault:

If that doesn't work make a new boot disk like this:

mkbootdisk /dev/fd0 2.4.20-8
 
Old 12-11-2003, 09:09 PM   #4
Ckret_01
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for the quick reply.. but he has grub.
He can see the grug boot loader but beyond that...nothing ...he can get to the boot screen but it keeps repeating itself (Example Login & Password..then goes black and comes back)

He can get to the boot command line...
 
Old 12-11-2003, 09:11 PM   #5
Ckret_01
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
it says cannot load w/o Kernal..
maybe when he entered this command
dd if=/boot/vmlinuz-2.4.20-8
he copied the kernal to the disk?

I check to see what is on the floppy and it says
mkfs.ex2: bad blocks count - /dev/fd0

Last edited by Ckret_01; 12-11-2003 at 09:25 PM.
 
Old 12-11-2003, 09:46 PM   #6
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
Nopes,
if only reads from a file it would output the file to stdout, the screen.
It's kernel not kernal
Can't help with anything else as I've never used a graphical logon utility.
 
Old 12-13-2003, 03:22 AM   #7
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
What's happening (as suggested above) is that it's trying to boot into a graphical login screen, but X is failing to load for some reason.

The first step to fix this is to get into a non-graphical login prompt.

Using grub, you shouldbe able to hit c or e to get into command-line mode. then add the paramater after the boot command "single"

That should do it.

If single doesn't do it, try init3

-Shade
 
Old 12-13-2003, 07:39 AM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Now it sounds like when you login you are automatically trying to startx. This could be in ~/.bashrc or ~/.bash_profile. There could be a line in one of those file like startx or X or .xinitrc or something like that.

Use shade's method to get to bash$ prompt. Linux single does not require login. Then look in the above files for any reference to startx, X or .xinitrc. You could even create a new user then try logging in as new user to see if the problem is with the one user.
 
Old 12-13-2003, 12:13 PM   #9
gruntwerk
Member
 
Registered: Dec 2003
Location: PA
Distribution: fc9
Posts: 89

Rep: Reputation: 15
Try CTRL-ALT-F1 to get to text mode. . .
login,
configure X- XF86config or edit files and then
reboot. . .
 
Old 12-13-2003, 12:32 PM   #10
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
CTRL-ALT-F1 Won't work if the machine is booting into runlevel 5 and X is failing...
That would be the easiest thing, but unfortunately won't work.

Once you get into the bash prompt, I'd suggest that you edit /etc/inittab and change the default runlevel from 5 to 3.

That way to get into X you just use the command "startx" and you'll be able to debug a little bit and re-run some X configuration scripts.

-Shade
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux box keeps rebooting!! Ext3 Linux - Software 6 10-25-2005 10:22 PM
linux + rebooting = null; nadroj Linux - General 3 03-17-2005 01:54 PM
Rebooting Locked up Linux Machine? matt80 Linux - General 6 05-19-2004 10:35 AM
Rebooting Linux soda Linux - General 16 11-29-2002 07:13 PM
linux machine rebooting begeek Linux - General 0 04-24-2002 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 06:39 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