LinuxQuestions.org
Review your favorite Linux distribution.
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 02-05-2011, 11:37 AM   #1
leyo
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Rep: Reputation: 0
Reinstalling GRUB?


Hi,

On my netbook I dual boot windows xp home and Ubuntu 10 netbook edition. I just used Partition Master to readjust my windows partitions and when rebooting I got the following error:

Quote:
error: unknown filesystem
grub rescue >
Using this

https://help.ubuntu.com/community/Grub2#Rescue Mode

I managed to boot into Ubuntu, but I'm stuck on reinstalling GRUB. The help page says use this command line:

Quote:
sudo grub-install /dev/sdX
I got error messages saying it was a bad idea to install GRUB to a partition instead of the MBR.

Confused! Any explanation/guidance appreciated, I don't really understand how it all works.

thanks in advance
 
Old 02-05-2011, 02:54 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian Jessie 8.4
Posts: 5,873

Rep: Reputation: 348Reputation: 348Reputation: 348Reputation: 348
Quote:
I just used Partition Master to readjust my windows partitions
In what way did you "readjust"? Did you remove one or more partitions? That would change the partition numbers that follow the removed one and would send grub into a fit.

Quote:
sudo grub-install /dev/sdX
I got error messages saying it was a bad idea to install GRUB to a partition instead of the MBR.
The instructions in the link you provided clearly state that you must not specify a partition number in the "sudo grub-install" command. So, assuming your hard drive is /dev/sda, and Ubuntu in installed in the third partition (/dev/sda3), then the correct command is "sudo grub-install /dev/sda", and not "sudo grub-install /dev/sda3" which would install grub in the partition instead of the MBR.

In the link you provided, did you scroll down to "METHOD 3 - CHROOT" and follow the instructions step by step? They should allow you to get grub working properly again after readjusting your partitions.
 
Old 02-05-2011, 04:56 PM   #3
leyo
LQ Newbie
 
Registered: Feb 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks very much for the reply! I'd actually managed to figure it out myself just now (with some more reading around) but it's really helpful to understand what went wrong. I did remove a windows partition, which I see is what screwed up grub.

Learning curve...
 
  


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
after reinstalling grub, grub comes in command prompt mode daudiam Linux - General 17 05-24-2010 04:54 AM
Reinstalling grub. imagine_me2 Linux - Newbie 2 04-28-2010 06:34 PM
reinstalling grub raphtor Linux - Laptop and Netbook 3 01-16-2010 03:22 AM
[SOLVED] Reinstalling GRUB without Reinstalling my Distro MBA Whore Linux - Newbie 8 03-15-2008 09:39 PM
Need help reinstalling grub randell6564 Ubuntu 19 08-25-2006 06:33 PM


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

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