LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   deleted bootloader (https://www.linuxquestions.org/questions/linux-general-1/deleted-bootloader-172608/)

billman424 04-20-2004 04:25 PM

deleted bootloader
 
im running fedora core 1

I used fdisk to remove what I thought was a useless empty partition but it had my bootloader on it now i just get a grub command prompt when I try to boot. I tried using the fedora cds to upgrade my fedora and create a new bootloader but since no packages get upgraded it refuses to create a new bootloader. can anyone help me out here?

mrcheeks 04-20-2004 04:35 PM

boot your kernel probably linux with the command prompt
use help command if you don't know what to do

billman424 04-20-2004 04:42 PM

um huh?

I am not quite following you?

Squall 04-20-2004 05:15 PM

Try using your installation CD to boot. If you go to the install part, there might be an option to boot the existing system. Then you can just create it again.

billman424 04-20-2004 05:46 PM

there isnt an option like that all i can do in setup is upgrade (which does nothing) and clean install which would require me to delete my partitions.

BrianK 04-21-2004 12:48 AM

You can find how to recreate your bootloader in the gentoo install instructions - just go to the bootloader section. Cliff's notes:

grub sees your drives as an array indexed from 0, so if /dev/hda is your first hard drive, grub sees it as hd0. If /dev/hdc is your first hard drive, grub also sees it as hd0. If /dev/hdb is a CDROM and /dev/hdc is a hard drive, again, grub sees your hard drive as hd0.

In the same way, grub sees partitions indexed from 0, so /dev/hda1 = /hd0,0

get it? ok....

so, assuming your boot partition is on the first partition of your first hard drive, at the grub prompt, you'd type something like this (grub has tab auto-completion for *everything*)

Code:

root (hd0,0)
setup (hd0)
save
reboot

*note: check the "save" command with auto-complete. It might be "write" or something like that, I forgot.

assuming you still have a grub.conf located in hd0,0 everything should be fine.

if your boot partition is anywhere else, I'm sure you can figure it out, but, say, for instance, your boot partition is on your second drive, third partition, you would do something like this:

root (hd1,2)
setup (hd1)

make sense?


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