LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-18-2004, 02:18 PM   #1
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Rep: Reputation: 31
Arrow Need Help, cant boot into redhat or xp??


Im having a little problem right now. This was my setp up 2 weeks ago

2 HDD
DRIVE A==>XP
DRIVE B==>REDHAT9. Then I decided to go out and buy another HD and install other distros on the new drive without messing with the data i had on the drive B. So I removed Drive B and install the new drive(i'll call it C for continuity). Proceeded to install FC2, everything went fine. Today I decided to remove drive C and reinstall drive B so i can access some data on that drive. Now it boots, it comes to the screen where grub appears and just hangs there. I can boot into rescue mode but dont know what to do next. Can someone point in the right direction. I want to edit grub.conf so i have the option of xp or redhat9. thanks in advance for your help. Another questions, if and when i decided to reinstall Drive C, am I going to have the same problem??
 
Old 09-18-2004, 02:38 PM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

boot from a FC2 cd using "linux rescue" at the boot prompt

follow the instructions there

at the end
#chroot /mnt/sysimage

then do

#vi /etc/grub.conf

reboot

regards
 
Old 09-18-2004, 02:43 PM   #3
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
thanks for the reply massand, but i want to be able to boot into redhat9 which is
different hard drive than fedora core2. I want to be able to boot into rescue mode
using redhat9 cd which i did and got to the shelll prompt and typed chroot /mnt/
sysimage. I dont understand why this is happening. 'Grub is installed on botgh
drives, the one with Fedora and the one with Redhat9. what lines do i have to add to grub.conf to restore to its original default configuration?? thanks in advance
 
Old 09-18-2004, 02:54 PM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

so u have npw removed th fc2 hdd and u want to use the grub of redhat which u ere using earlier????


then boot with above procedure with a rh 9.0 CD and

after u boot into recue mode

chroot /mnt/sysimage will mount ur systeme image to present system so that u can use that environment only

to install the grub from this hdd

grub-install /dev/hda
and reboot
and post an error messages u get

regards
 
Old 09-18-2004, 03:01 PM   #5
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
hi messand, after booting into rescue mode and chroot /mnt/sysimage, is there a way to log into graphical mode??
"grub-install /dev/hda
and reboot"
will this re-install grub or re-set it to its orginal configuration??
thanks in advance
 
Old 09-18-2004, 03:09 PM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

this will read ur grub.conf from /etc/grub.conf and write according to that to ur MBR

u can edit ur grub.conf bu editing the /etc/grub.conf

also to remove grub at l;ater stage so that u can boot int windows

try this

boot from a win98 cd
at the command prompt
#fdisk /mbr
will remve grub and rewrite the windows MBR to it


or boot from a winxp/200 cd in to recovery console
and use "fixmbr"


regards
 
Old 09-18-2004, 03:17 PM   #7
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
I already followed your advise. im now at shell. it mounted the sysimage directory. how can i log into the graphical environment from this point? i tried startx and i got the following error

hostname: localhost.localdomain: unknown host
xauth: creating new authority file //.Xauthority
xauth: creating new authority file //.Xauthority
using authority file //.Xauthority
writing authority file //.Xauthority

fatal server error:
cannot open log file "/var/log/Xfree86.0.log

please advise
 
Old 09-18-2004, 03:20 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi
from the rescue mode
u CANNOT login in to graphical mode

u need to make the changes required here
and reboot and if ur linux boots up then u can login into graphical mode there

regards
 
Old 09-18-2004, 03:31 PM   #9
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
i opened my grub.conf file and everything looks ok
#boot=/dev/hde
default=1
timeout=10
splashimage=(hd1, 0)/grub/splash.xpm.gz
password*******************
title Red Hat Linux(2.4.20-6)
root (hd1,0)
kernel /vmlinuz-2.4.20-6 ro root=LABEL=/ hdb=ide-scsi
initrd /initrd-2.4.20-6.img

title DOS
rootnoverify (hd0, 0)
chainloader +1

should i make any changes?? or should re-install grub? if re-install grub, will that fix the problem?? thanks in advance
 
Old 09-18-2004, 03:35 PM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

accoriding ti what u desc. ur config. this file sems to be ok

give it a shot,it if grub fails again u can either edit it the same way or remove it if required as i mentioned above untill u get ur system working

also i am retiring to bed now its over 2 AM here
will answer u queries if any in the morning

regards
 
Old 09-18-2004, 03:37 PM   #11
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
thanks for answering my questions. I will try some of your suggestions
 
Old 09-18-2004, 11:39 PM   #12
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi there

i am back!

did u got any solution to ur problem

regards
 
Old 09-19-2004, 10:57 AM   #13
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
Hey masand, i ended up re-installing the drive with FC2.
 
Old 09-19-2004, 11:20 AM   #14
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
hi

so, now i hope everything is fine..

regards
 
Old 09-19-2004, 12:00 PM   #15
snakeo2
Member
 
Registered: Mar 2004
Location: Miami, Fl
Distribution: Red Hat 9/fedora core3/
Posts: 273

Original Poster
Rep: Reputation: 31
everything is fine now. I wasnt able to boot into redhat9 for now. I'll give it a try later on. thanks for all your help
 
  


Reply



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
problem, dual boot, xp/redhat, cdtray kept ejecting, del redhat part. wont boot a OS mraym84 Linux - General 2 08-22-2004 01:46 PM
XP Pro will not boot dual boot Redhat 9 one hard drive mamoose Linux - Newbie 10 03-29-2004 08:28 PM
Dual boot for Redhat 9 and Solaris 9 boot manager problems steve_2010 Red Hat 1 01-30-2004 09:14 PM
Redhat 9 & winxp dual boot -xp won't boot opivy Red Hat 3 01-02-2004 01:08 PM
Error after boot with REDHAT LINUX boot disk...HELP PLEASE! Creightin Linux - General 0 03-12-2001 07:38 PM

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

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