LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-28-2004, 08:41 AM   #1
shashikanth
LQ Newbie
 
Registered: May 2004
Location: india
Distribution: fedora core2
Posts: 8

Rep: Reputation: 0
grub reinstall from rescue CD


Hii,

I'm new to linux and in trouble.

I installed XP and it has removed my GRUB and I can't boot linux.
I tried to reinstall GRUB using the Fedora Core2 install CD. But it did not install it, saying something like "no Kernel files are modified. Setup did not modify the bootloader".

Now I need to re install GRUB from the linux rescue CD. How do I do that??
I'm a newbee, distressed by Microsoft.

thnx and regards
shashi
 
Old 06-28-2004, 04:06 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"Now I need to re install GRUB from the linux rescue CD. How do I do that??"

Boot the rescue CD.
mount your Linux / partition, for example:
mkdir /beanbag
mount -t ext3 /dev/hda3 /beanbag

Do whatever editing is necessary to /beanbag/boot/grub/grub.conf
chroot to your / partition:
chroot /beanbag

install grub:
grub-install /dev/hda

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites

Last edited by jailbait; 06-28-2004 at 04:09 PM.
 
Old 06-29-2004, 11:55 AM   #3
shashikanth
LQ Newbie
 
Registered: May 2004
Location: india
Distribution: fedora core2
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up

Thanx Steve,

I got back my linux without a scratch
 
Old 06-29-2004, 01:39 PM   #4
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Which one is the rescue CD?
 
Old 07-11-2004, 10:36 PM   #5
Tangz
LQ Newbie
 
Registered: Jul 2004
Location: Deland, FL
Posts: 26

Rep: Reputation: 15
I know this is somwhat of an old topic but....

JAILBAIT....I would greatly appreciate your help in this matter...

http://www.linuxquestions.org/questi...hreadid=203909

I have almost the same exact issue but for some reason when I tried what you posted here...

I am able to mkdir /beanbag
unable to mount with "mount -t ext3 /dev/hdg3 /beanbag"
Linux drive is hdg
It says that/dev/hdg3 is not a valid block device... please help me by posting in the topic above...thank you very much!!

Tangz
 
Old 07-15-2004, 02:19 AM   #6
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Did the /beanbag thing, chroot to /dev/hda10 (automounted by slack liveCD) and ran the grub install /dev/hda.

Now when I reboot I get a grub prompt?!
Code:
grub >
What did I do wrong? What should I type to get back into my system?
 
Old 07-18-2004, 10:31 AM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
It occurred tome that the problem might be derived from the fact that I have a separate /boot partition, so that when I chroot /boot is still not available. Would copying /boot under the root partition do the trick or should I do anything else?
 
Old 07-18-2004, 10:52 AM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"It occurred tome that the problem might be derived from the fact that I have a separate /boot partition, so that when I chroot /boot is still not available. Would copying /boot under the root partition do the trick or should I do anything else?"

You should mount /boot between the chroot and grub-install commands.

"Did the /beanbag thing, chroot to /dev/hda10 (automounted by slack liveCD) and ran the grub install /dev/hda."

If /boot is a separate partition then you should have got an error message when you did grub-install because grub-install cannot find grub.conf.

---------------------------
Steve Stites

Last edited by jailbait; 07-18-2004 at 11:55 AM.
 
1 members found this post helpful.
Old 07-18-2004, 03:04 PM   #9
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Didn't get that error message(??).

So how do I mount boot properly? (It's mounted alright, but not as /boot)
 
Old 07-18-2004, 03:32 PM   #10
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
"So how do I mount boot properly? (It's mounted alright, but not as /boot)"

I don't see how it could be already mounted. What is it mounted as?

Suppose that /boot is /dev/hda1 and is an ext3 file system. Then the
commands to straighten out /boot are:
umount /dev/hda1
mount -t ext3 /dev/hda1 /boot

-----------------
Steve Stites
 
Old 07-18-2004, 03:36 PM   #11
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Right, that's what I meant: it is mounted as a regular partition (hda?).

So I umount it and mount it again as /boot ... let's see if that does it for me or if there's still something else
 
Old 08-05-2004, 02:36 AM   #12
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
It appears theproblem might be I don't have a grub.conf file. I've written one but grub doesn't recognise/find it. Where should it be located (remember I have a seperate /boot partition - dunno if that changes anything)
 
Old 08-22-2004, 04:40 AM   #13
fred22
Member
 
Registered: Apr 2004
Posts: 42

Rep: Reputation: 15
To add to this I have done the simlar things.

1> Installed xp over a previous version of win2000(which was running harmoniously with fedora core 2)

2> Ran the fedora rescue disk and mounted fedora core 2 on /mnt/sysimage

3> chroot /mnt/sysimage

4> grub-install /dev/hda (tried running su before as well)

Now at boot time grub starts(sort of) a blinking cursor, with some blind navigation I found a fedora selection and pressed enter..............
Grub now claims that it cannot find the specified kernel image!? I believe hence why I get a blinking cursor, because the splash image is on the partition with the kernel.

I might add these notes as well
linux is installed in /dev/hda8 xp in /dev/hda1.
Also linux is broken up into several partitions.
/
/usr
/home
/tmp

helpppp....!!

Thanks heaps.

-M@

Last edited by fred22; 08-22-2004 at 04:46 AM.
 
  


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
Restoring GRUB using a rescue cd aus9 Linux - Software 7 05-13-2013 01:31 AM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
reinstall windows, reinstall GRUB too? leupi Linux - Software 1 05-07-2005 10:50 AM
reinstalling grub on rescue mode mabus92920 Linux - Newbie 3 01-15-2005 05:04 AM
Why is it so difficult to reinstall RH9's Boot loader using the Linux Rescue mode? Seph64 Linux - Distributions 10 10-04-2003 08:24 PM


All times are GMT -5. The time now is 09:17 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration