LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 07-07-2005, 07:50 AM   #1
ilyushin
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
Problem in recovering GRUB


Hi, I'm writing this for my friend. I had installed FC3 in his system, dual booting with Win XP. Recently, he had to reinstall his XP. It was pretty difficult, as the setup would freeze when trying to detect hardware (probably due to the presence of the 'alien' EXT3 partitions). Finally, he had to format his primary partition with Partition Magic and installed Win98 in it. He then upgraded it to XP. Now he wanted to recover his FC3. I followed the standard procedure to recover his GRUB with the FC3 install CD. I noticed that his partition names had changed. The 'root' partition which was hda9 had become hda7, and 'boot' had changed from hda8 to hda6. But I made the necessary changes in 'fstab' and 'grub.conf'. Following the procedure, the root partition was mounted under /mnt/sysimage without errors. I gave the 'chroot /mnt/sysimage' command and then gave 'grub-install /dev/hda'. But the following error was displayed:

"/dev/hda does not have any corresponding BIOS drive."

I tried to install grub in the boot partition i.e. /dev/hda6. Still the same error.

"/dev/hda6 does not have any corresponding BIOS drive."

I then tried to upgrade his FC3 to install GRUB. Then the setup recognized the previous installation and installed some additional packages. It then reported that bootloader was not installed and that a new bootloader configuration was needed. When it came to the installation of bootloader, the setup reported that GRUB cannot be installed as I had not installed the kernel packages. Well, I had'nt.

Now, what is to be done to recover his GRUB? I suspect that the Partition Magic has done something nasty. But the Linux file systems are intact (only the designations have changed) and the old grub.conf is still present. Therefore, it should be possible to reinstall GRUB throught the standard recovery procedure, is'nt it?

His system is an Athlon XP 2000. I would be most thankful for any little help and guidance as I'm still a newbie.

Thanks,
Ilyushin
 
Old 07-08-2005, 12:55 AM   #2
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 58
post the grub.conf here
and also when u run
grub-install
post the O/P of
df
and
fdisk -l

regards
 
  


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
recovering from grub-install /dev/hda1 deleting windows XP boot loader Steve Mading Linux - Software 7 02-22-2010 08:53 PM
Problem in recovering deleted files (error : bad magic number) anamika123 Linux - Software 11 09-20-2004 05:55 AM
problem in recovering deleted files bad magic number anamika123 Linux - General 1 09-19-2004 03:09 PM
Grub setup problem (/boot/grub/stage1 not found) davidas Debian 2 04-28-2004 09:13 PM
Lilo config or recovering Grub....??? avols143 Linux - Newbie 5 03-03-2004 08:03 AM


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