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 01-08-2004, 07:01 PM   #1
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
Upgraded Windows partition - now grub is gone


... and this machine doesn't have a floppy drive, so I don't have a boot disk.

How canI get grub back?

I tried booting with the RH CD to upgrade the boot loader, but:
1. It no longer has a current configuration to upgrade and
2. If I try to create a new bootloader config, it says that I didn't install any kernel packages, so it couldn't use the new bootloader.

I tried running "linux rescue" off of the RH CD (at boot time). I can get to a shell, but I can't run grub-install because of the way linux rescue mounts the system drive.

am I stuck?
 
Old 01-08-2004, 07:04 PM   #2
drknow
Member
 
Registered: Jan 2004
Distribution: Shrike (RH9)
Posts: 73

Rep: Reputation: 15
Yes, I had the same problem. Just upgrade redhat, and when it asks you what packages you want to install, select the kernal you want to use. Then you will be able to make a new GRUB configuration.
Hope this helps ,
Thad Blankenship
 
Old 01-08-2004, 07:57 PM   #3
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by drknow
Yes, I had the same problem. Just upgrade redhat, and when it asks you what packages you want to install, select the kernal you want to use. Then you will be able to make a new GRUB configuration.
Hope this helps ,
Thad Blankenship
Well, that didn't work, so I must have done something wrong.

When I boot from the RH CD, choose "upgrade" then choose to select the packages to upgrade, but when the package list comes up, the kernel is not listed. kernel-smp, kernel-source, kernel-utils, kernel-boot, & kernel-pcmcia are there, but none of them seem to do the trick.

Any other ideas? I'm running RH 7.3

Thanks
 
Old 01-08-2004, 08:41 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
When you boot the RH CD it will mount the root partition to /mnt/sysimage
then:
chroot /mnt/sysimage
Now try reinstalling grub
grub-install
 
Old 01-08-2004, 08:50 PM   #5
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by michaelk
When you boot the RH CD it will mount the root partition to /mnt/sysimage
then:
chroot /mnt/sysimage
Now try reinstalling grub
grub-install
tried that (as it says in my original post). grub-install is a script that looks for various other scripts that aren't where they are supposed to be because the original file system now starts at /mnt/sysimage as opposed to /.
 
Old 01-08-2004, 09:02 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,701

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Did you you use the chroot command?
The chroot command will chang / to be /mnt/sysimage.
See:
http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?chroot+1
 
Old 01-08-2004, 09:21 PM   #7
BrianK
Senior Member
 
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Original Poster
Rep: Reputation: 51
Quote:
Originally posted by michaelk
Did you you use the chroot command?
The chroot command will chang / to be /mnt/sysimage.
See:
http://www.mcsr.olemiss.edu/cgi-bin/man-cgi?chroot+1
awesome! back up!

you rule.

thanks.
 
Old 01-08-2004, 09:26 PM   #8
wingjumper
LQ Newbie
 
Registered: May 2003
Location: Wisconsin, USA
Distribution: Fedora Core 4
Posts: 6

Rep: Reputation: 0
I had that problem a while back when I reinstalled ME, I have my C(hda) with 2 partitions, and my D(hdb) has Redhat9, grub was installed on the C drive( where windoze is) in place where the mbr would be.
after grub was trashed by Windoze I could still get to my Redhat with its boot floppy.
Once in Linux I opened a terminal as SU and type "/sbin/grub-install /dev/hda".
It worked for me. found my answers here in the forum.
 
  


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
remove GRUB from windows partition boot record Krun Linux - Newbie 3 09-13-2007 04:51 PM
Using GRUB to trick Windows to fit on a different partition? fyhuang Linux - General 4 07-12-2005 04:31 PM
Grub not booting windows XP with Suse 9.2 partition perl21 Linux - General 8 03-14-2005 06:25 PM
grub to see windows partition? skylinewrx Linux - Software 5 05-07-2004 11:38 AM
In desperate need... Grub wont detect my windows partition... psyklops Linux - General 4 08-20-2003 12:34 AM

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

All times are GMT -5. The time now is 04: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
Open Source Consulting | Domain Registration