LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 06-25-2006, 05:55 PM   #1
pcandpc
Member
 
Registered: Apr 2005
Posts: 241

Rep: Reputation: 30
[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.

Last edited by pcandpc; 07-01-2006 at 08:13 PM.
 
Old 06-25-2006, 07:25 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,877

Rep: Reputation: 350Reputation: 350Reputation: 350Reputation: 350
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?
 
Old 07-04-2006, 11:48 AM   #3
Pravab
Member
 
Registered: Apr 2006
Location: Dharan,Nepal
Distribution: FC5
Posts: 63

Rep: Reputation: 15
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 .
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
Restoring Windows with a GRUB bootloader Lee Barker Linux - Newbie 11 11-18-2005 11:33 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM
restoring fedora 3 bootloader pcandpc Linux - Newbie 8 05-16-2005 11:18 PM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 01:22 PM


All times are GMT -5. The time now is 10:41 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration