LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   editing grub.conf in recovery mode (https://www.linuxquestions.org/questions/red-hat-31/editing-grub-conf-in-recovery-mode-260924/)

dave37 11-30-2004 09:12 AM

editing grub.conf in recovery mode
 
After a problem that required me to restore from a backup, but a backup in which one of the logical drives can't be reloaded due to archive corruption, I need to restore/edit grub. I'm running dual boot xp and redhat 9, xp boots fine, but I just get a grub prompt if I select Linux. I have a boot partition for linux and that is where I installed grub during my original setup.

I know I'm going to have to edit grub.conf to point to the correct drives now that the drive locations have changed, how do I do that from the grub prompt or from recovery from the redhat cd??

Also, how can I list how the hard drive is laid out at the grub> prompt? when booting from a boot floppy. I have read to use the df command, but can't figure out how, is there a different command?

Thanks

jiawj 11-30-2004 11:15 AM

suggest to boot up from RH9 CD1 and into RESCUE mode
after run command: chroot , your system environment as same as before, you can try to restore grub.conf by manual.
good luck!

dave37 12-01-2004 06:23 AM

Thanks for the tip, I ended up using a linux boot floppy, guessed at my boot hda, found linux root=/dev/hda9 got me in to graphical linux, and from there I edited the fstab and grub.conf files to get back up and running.

Thanks!


All times are GMT -5. The time now is 02:07 AM.