LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Need Help, cant boot into redhat or xp?? (https://www.linuxquestions.org/questions/linux-newbie-8/need-help-cant-boot-into-redhat-or-xp-232210/)

snakeo2 09-18-2004 02:18 PM

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??

masand 09-18-2004 02:38 PM

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

snakeo2 09-18-2004 02:43 PM

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

masand 09-18-2004 02:54 PM

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

snakeo2 09-18-2004 03:01 PM

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

masand 09-18-2004 03:09 PM

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

snakeo2 09-18-2004 03:17 PM

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

masand 09-18-2004 03:20 PM

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

snakeo2 09-18-2004 03:31 PM

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

masand 09-18-2004 03:35 PM

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

snakeo2 09-18-2004 03:37 PM

thanks for answering my questions. I will try some of your suggestions

masand 09-18-2004 11:39 PM

hi there

i am back!

did u got any solution to ur problem

regards

snakeo2 09-19-2004 10:57 AM

Hey masand, i ended up re-installing the drive with FC2.

masand 09-19-2004 11:20 AM

hi

so, now i hope everything is fine..

regards

snakeo2 09-19-2004 12:00 PM

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


All times are GMT -5. The time now is 04:20 PM.