LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   restoring bootloader (https://www.linuxquestions.org/questions/linux-newbie-8/restoring-bootloader-458237/)

pcandpc 06-25-2006 04:55 PM

[solved] restoring bootloader
 
Hello?

I am trying to restore a GRUB
bootloader to a partition in
the following manner:

grub-install /dev/partition

However, the /dev/partition reports
as not having any corresponding BIOS
drive error.

What is going on?

Thanks.

[solved]
The /dev/partition had been gone
completely in my fiddling with
partitions.

Just reinstalled the distro.

bigrigdriver 06-25-2006 06:25 PM

Don't know what's going on. Don't know which distro you are having this problem with. Don't know the contents of your grub.conf (or menu.lst, whichever your distro uses). Don't know the contents of your fstab. Don't know if the error is in your grub.conf, your fstab, or both.

Just don't know.

How about a little more info?

Pravab 07-04-2006 10:48 AM

U do not have to reinstall linux if your grub is lost especially due to windows installation.

just follow these easy STEPS and hope u will recover:

step 1: Insert bootable cd-I or DVD of your linux
step 2: Type: linux rescue
step 3: Follow instructions for keyboard and language settings

Then you will see the shell prompt

step 4: Type: chroot /mnt/sysimage
step 5: Type: grub

now you will get the grub prompt as grub>

step 6: Type: root (hd0,5) // hd0 means harddisk 1. if you have on HDD 2 you need to type hd1 and so on. later number (5) implies partition of selected harddisk where you have linux installed previously. It varies with machine enter the partition where you have your linux partition.
step 7: setup (hd0) // same HDD as before, its hd1 if your linux is in 2nd harddisk

now exit from the grub and from the shell too. After restarting your grub gets recovered, hopefully .


All times are GMT -5. The time now is 12:24 AM.