LinuxQuestions.org
Review your favorite Linux distribution.
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-09-2004, 02:16 AM   #1
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Rep: Reputation: 0
How Do Linux Itslef?


I used to have a harddrive (on secondary, slave) running a RedHat AS. But recently something happened and it couldnt boot up, it just loop around on the Login then blank sequence. After awhile, it stopped and then claimed the Xserver config was corrupted. First it said it was the missing r128 driver, so I looked around and download the ATI driver and installed.

After the re-installation, it now just stuck on the login sequence.

After a few days, I decided to give up to get the drive to work. Instead, I got another drive and put it on the system as primary slave, and installed another Linux on it. I gathered once I get the new one running, then I could copy the XFree86 config over to the old drive and hope to resurrect it.

But something happened that puzzles me. Regradless of how I started the system by selecting the new drive (via the pc's BIOS settings or select bootup sequence), the system always boots upusing the linux on the old drive.

Is there a reason the sytem behaving this way? As I could not get into the old drive to change any boot config, is there a way out?

TIA.
 
Old 07-09-2004, 03:06 AM   #2
JediMasterTux
Member
 
Registered: Jun 2004
Location: Melbourne, Australia
Distribution: Gentoo 2004.2
Posts: 64

Rep: Reputation: 15
Is there any data u dont want to loose?
If not:
You could try to do a freh install using some boot manager that lets you boot of a cd or if u got a dos boot floppy u could format the drive and start again.
 
Old 07-09-2004, 03:07 AM   #3
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 377Reputation: 377Reputation: 377Reputation: 377
sounds like a bootloader issue... what bootloader are you using? where is it installed?
 
Old 07-09-2004, 03:15 AM   #4
TigerOC
Senior Member
 
Registered: Jan 2003
Location: Devon, UK
Distribution: Debian Etc/kernel 2.6.18-4K7
Posts: 2,380

Rep: Reputation: 49
Firstly the /etc/X11/XF86Config-4 has a problem and its kicking you back into the command line. (it's not a boot failure) You need to establish why its failing which can be determined from the log files - do cat /var/log/XFree86.0.log | less. If you cannot figure out what the error is and how to correct it and want to post the log then do cat /var/log/XFree86.0.log > /home/my_user_name/XFree86.0.log.txt. With regard to the boot loader it has written it to the primary drive boot sector and it sounds like the secondary has no valid boot loader so its looking at the primary drive.
 
Old 07-09-2004, 10:31 AM   #5
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Now that you folk mentioned about the boot loader, and I realize that I am not using one. When I did the installation, I do it separately with only the drive is on the system as I don't want the mess up my primary drive (which is the WinXP). I mostly boot up using the bios, i.e. hitting the ESC while the system boots up and then select the drive I want to boot from. However, it still does not explain why it keeps going to the bad linux drive that I am having problem with.

I took JediMater's adive and burn myself a bootable CD (using the SuSe Live 9.0 CD, ), now I could see the contents of the bad OS. By the way, I would like to keep the data if I could.

So this is the last part of the XFree86.0.log:

(==) R128(0): Write-combining range (0xc8000000,0x2000000)
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
drmOpenDevice: minor is 0
drmOpenDevice: node name is /dev/dri/card0
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: open result is -1, (No such device)
drmOpenDevice: Open failed
[drm] failed to load kernel module "r128"
(II) R128(0): [drm] drmOpen failed
(EE) R128(0): [dri] DRIScreenInit failed. Disabling DRI.
(II) R128(0): Memory manager initialized to (0,0) (1024,8191)
(II) R128(0): Reserved area from (0,768) to (1024,770)
(II) R128(0): Largest offscreen area available: 1024 x 7421

It appears it is failing to load the the r128 driver. I checked the /usr/X11R6/lib/modules/drivers folder and the r128_drv.o file is there, but there is no /dev/dri/card0 file, only the card1, card2 and card3. Also, the /dev/dri/cardx are not regular files (they have a the following format:
rwxr-xr-x 2 root root 4096 2004-07-08 19:43 .
drwxr-xr-x 21 root root 118784 2004-07-08 20:04 ..
crw------- 1 root root 226, 1 2003-09-15 06:02 card1
crw------- 1 root root 226, 2 2003-09-15 06:02 card2
crw------- 1 root root 226, 3 2003-09-15 06:02 card3

On the SuSe folder (where I boot from), it has the following
crw-rw---- 1 root video 226, 0 2003-09-23 11:01 card0
crw-rw---- 1 root video 226, 1 2003-09-23 11:01 card1

So how do I create the /dev/dri/card0 in order to fix the problem?

Finally, you guys are great.
 
Old 07-09-2004, 11:28 AM   #6
mnopq
LQ Newbie
 
Registered: Jul 2004
Posts: 19

Original Poster
Rep: Reputation: 0
Hi All,

I finally fixed the problem.

I boot up the system using the SuSe 9.0 live, then remove the whole /usr/X11R6 folder, then replaced it with the one from the newly installed (good one). And presto, it is up.

By the way, I think my problem might have caused by my disk (6.4G) ruuning out of disk space.

Thanks a lot guys, you are a good bunch. I am going to stick around here for a long time just to learn stuff.
 
  


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
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 11:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 11:40 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 03:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:47 PM.

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