LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-20-2011, 10:32 AM   #1
networkguru
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 0
grub installation problem in ubuntu 10.10


I have ubuntu 10.10 installed in a partition. But after re-installing windows7(ultimate 32-bit) , my grub got deleted.

Now as I boot from ubuntu 10.10 live usb and try the command
$sudo grub-install --root-directory=/media/56e44c2d-b1fd-4a76-a1d4-b0203a41875f /dev/sda8

I get an error

/usr/sbin/grub-setup: warn: Attempting to install GRUB to a partition instead of the MBR. This is a BAD idea..
/usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
/usr/sbin/grub-setup: error: if you really want blocklists, use --force.


Even when I force using the --force option, it does not install properly.
Can any please help ??
Thanks in advance

Last edited by networkguru; 02-20-2011 at 10:37 AM.
 
Old 02-20-2011, 10:41 AM   #2
fordeck
Member
 
Registered: Oct 2006
Location: Utah
Posts: 520

Rep: Reputation: 61
Have you tried installing it to your MBR instead of the /dev/sda8 partition? A tip you might want to use when messing with your MBR would be to back it up before trying anything. You can backup your MBR as follows:

Code:
dd if=/dev/sda of=mbr_backup bs=512 count=1
The above of course assumes that sda is the drive that contains your MBR. Also mbr_backup is just a name, you could use any path/name you want.

To restore it you would do the following:

Code:
dd if=mbr_backup of=/dev/sda
Regards,

Fordeck
 
Old 02-20-2011, 11:15 AM   #3
firbolg
LQ Newbie
 
Registered: Jun 2010
Posts: 17

Rep: Reputation: 3
Quote:
sudo grub-install --root-directory=/media/56e44c2d-b1fd-4a76-a1d4-b0203a41875f /dev/sda8
should be

Code:
sudo grub-install --root-directory=/media/56e44c2d-b1fd-4a76-a1d4-b0203a41875f /dev/sda
Assuming you want to install to the mbr.

https://help.ubuntu.com/community/Gr...ing%20GRUB%202
 
Old 02-20-2011, 02:29 PM   #4
networkguru
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 0
but I want my grub to be installed on the linux partition /dev/sda8 . how can I do that ?
 
Old 02-20-2011, 02:51 PM   #5
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,346

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
Quote:
but I want my grub to be installed on the linux partition /dev/sda8 . how can I do that ?
You can't, not without some sort of boot loader in the MBR that will chainload to the grub boot loader installed on the partition. The stock windows boot loader that replaced whatever boot loader you had in the MBR doesn't allow for chainloading. There are programs that allow booting linux from windows, but that is a whole other subject.
 
Old 02-20-2011, 04:28 PM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I need more information

How many operating systems do you have?

What is on partition sda8?

What is the size of the partition?

Do you want a separate boot partition?

If you make grub boot you will have to chainload windows. (No problem)

Post the results of fdisk -l (small L)
 
  


Reply



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
[SOLVED] grub installation order in Ubuntu 10.10 et. al. lissa374 Debian 2 02-17-2011 06:18 AM
Problem in GRUB installation Pramoda.M.A Linux - Desktop 3 05-14-2010 01:32 AM
GRUB - my Ubuntu 9.1 installation will not boot joelhbreger Linux - Newbie 4 12-17-2009 06:46 AM
Ubuntu 8.04 Installation: Grub Error no15 sroych Ubuntu 4 09-07-2008 08:03 AM
Ubuntu Linux Live cd Grub re-Installation problem monami Linux - Newbie 1 07-27-2006 12:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 02:04 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
Open Source Consulting | Domain Registration