LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-30-2004, 09:12 AM   #1
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Rep: Reputation: 16
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

Last edited by dave37; 11-30-2004 at 09:46 AM.
 
Old 11-30-2004, 11:15 AM   #2
jiawj
Member
 
Registered: Jul 2004
Location: Beijing, China
Distribution: Slackware,Redhat
Posts: 121

Rep: Reputation: 15
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!
 
Old 12-01-2004, 06:23 AM   #3
dave37
Member
 
Registered: Sep 2003
Location: Ottawa, Canada
Distribution: Ubuntu Dapper
Posts: 70

Original Poster
Rep: Reputation: 16
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!
 
  


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
doubt in editing "grub.conf" in multi distro machine b0nd Linux - Newbie 6 08-06-2005 09:46 AM
Help with editing rc.conf in single user mode Fredstar *BSD 1 07-17-2005 12:26 AM
Editing grub.conf Richlw Linux - Newbie 5 04-28-2005 03:05 PM
Need assistance with grub.conf editing genepooldesign Fedora 6 12-05-2004 11:28 AM
editing grub.conf dave37 Linux - Newbie 7 09-30-2003 07:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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