LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-03-2013, 03:50 PM   #1
Codger
LQ Newbie
 
Registered: May 2009
Posts: 6

Rep: Reputation: 0
Grub fails to install (Ubuntu 12.04)


Cards on the table - Ubuntu is one of my least favourite distros. Yet my favourite distro, Mint is a derivative. However, I decided to give Ubuntu a try simply to experience the Unity desktop and see if I could learn to love it!

My machines are multi-boot and for reasons that are not up for discussion here, Grub is installed in the root partition of each distro. This rarely causes any difficulty (unless Ubiquity is involved). Anyway, installation seemed to go ok until the very end when it popped up a fatal warning that it could not install Grub to the designated partition - sdb13 (sdb because it sees its own usb stick as sda),

Is there a way/utility to force Grub where I want it for this install?

[I'm not a Ubuntu forum member but looked at registering only to discover that to do so looks unnecessarily complicated now - especially as Ubuntu is not yet installed on any machine!]

Last edited by Codger; 08-03-2013 at 03:51 PM.
 
Old 08-03-2013, 04:14 PM   #2
Doc CPU
Senior Member
 
Registered: Jun 2011
Location: Stuttgart, Germany
Distribution: Mint, Debian, Gentoo, Win 2k/XP
Posts: 1,099

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Hi there,

Quote:
Originally Posted by Codger View Post
Cards on the table - Ubuntu is one of my least favourite distros. Yet my favourite distro, Mint is a derivative.
same here. I liked Ubuntu for some time - until 10.10 (maverick). After that, they switched to Unity or Gnome3, neither of which I really liked. So I stuck with 10.10 until support expired, and then discovered Linux Mint featuring the MATE desktop (a fork of Gnome2), which is my favorite now. However, getting tired of re-installign the system every few months when support expires, I'm seriously thinking about switching to LMDE (Linux Mint Debian Edition).

Quote:
Originally Posted by Codger View Post
However, I decided to give Ubuntu a try simply to experience the Unity desktop and see if I could learn to love it!
Well, I tried, but I couldn't.

Quote:
Originally Posted by Codger View Post
My machines are multi-boot and for reasons that are not up for discussion here, Grub is installed in the root partition of each distro.
That means you must have another "master" boot manager in the MBR. Weird, but that's up to you.

Quote:
Originally Posted by Codger View Post
This rarely causes any difficulty (unless Ubiquity is involved).
There you have me. I never bothered to ask but now I finally do: What the hell is Ubiquity?

Quote:
Originally Posted by Codger View Post
Anyway, installation seemed to go ok until the very end when it popped up a fatal warning that it could not install Grub to the designated partition - sdb13 (sdb because it sees its own usb stick as sda)
Wow, you seem to have an awful lot of partitions there! Have you ever thought of installing your abundance of distros in virtual machines?
Anyway: What's the problem? What is the actual error condition?

Quote:
Originally Posted by Codger View Post
Is there a way/utility to force Grub where I want it for this install?
Code:
sudo grub-install /dev/sdb13
That should do the trick ...

[X] Doc CPU
 
Old 08-03-2013, 04:32 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
DOC CPU: Ubiquity is the Ubuntu installer.
Codger. Boot the Ubuntu CD, Try without installing, open a terminal and type each of the commands below consecutively. Make sure the partition you want is actually sdb13, can't check that too often.

Quote:
sudo mkdir /mnt/sdb13
sudo mount -t ext4 /dev/sdb13 /mnt/sdb13
sudo grub-install --root-directory=/mnt/sdb13 /dev/sdb13
If that doesn't work, it gets a little more complicated. Again boot thee Ubuntu CD and from a terminal run each of these commands:

Quote:
sudo mkdir /mnt/sdb13
sudo mount -t ext4 -o rw /dev/sdb13 /mnt/sdb13
sudo mount -t proc none /mnt/sdb13/proc
sudo mount -o bind /dev /mnt/sdb13/dev
sudo mount -o bind /sys /mnt/sdb13/sys
sudo mount -t devpts devpts /mnt/sdb13/dev/pts
sudo chroot /mnt/sdb13
sudo grub-install --force --root-directory=/mnt/sdb13 /dev/sdb13
sudo update-grub
Of course, you will still need to configure whatever bootloader you have in the mbr to boot Ubuntu by placing an entry in the proper file.
 
Old 08-03-2013, 05:19 PM   #4
Codger
LQ Newbie
 
Registered: May 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for your replies.

Doc CPU

Quote:
That means you must have another "master" boot manager in the MBR. Weird, but that's up to you
and

Quote:
Wow, you seem to have an awful lot of partitions there! Have you ever thought of installing your abundance of distros in virtual machines?
I did indicate "not for discussion" but anyway not wierd to me. My Windows installs are permanent and accessed via EasyBCD which also links to Grub in each Linux partition. There are also several ntfs/fat32 data partitions which are accessible to all.

Quote:
There you have me. I never bothered to ask but now I finally do: What the hell is Ubiquity?
Answered by yancek

Quote:
Anyway: What's the problem? What is the actual error condition?
Described in OP. Subsequently it wants to report the error then has the impertinence to tell me it won't because it's not cosher despite being downloaded from their own site (and md5 checked)!

Code:
sudo grub-install /dev/sdb13
If only it were that simple - especially viewing yanceks suggestion!

yancek

Its actually a liveusb not cd but that shouldn't make any difference.

Presumably you're both suggesting doing that from terminal in Ubuntu live session? (BTW trying the initial install from live session results in bombing to text screen then scrambled graphics - though live session itself ok - so have to select Install option).

Could it be done from one of the other Linux installs - perhaps Mint 13 which is based on Ubuntu 12.04?

Anyway, it may be irrelevant as the subsequent live session of Unity experience was awful. Something like a very bad Android implementation without the touch screen! (I recently saw a better attempt at that sort interface - was it Mandriva 2011 or Mageia or some such?). Never having been convinced by Ubuntu but this is truly dreadful - give me Mint, PCLos or Mepis every time.

[PS DocCPU - Mint 13 is LTS 'til 2017 and even Mepis 8 (and earlier) is still supported. PCLos is a rolling release so get as you want it quickly or keep updating]

EDIT Just added Cinnamon to Mint13 Xfce (+Compiz) and guess what - it also installs Unity! So none of this matters...!

Last edited by Codger; 08-03-2013 at 06:09 PM.
 
Old 08-03-2013, 10:20 PM   #5
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,510

Rep: Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491Reputation: 2491
Quote:
Could it be done from one of the other Linux installs - perhaps Mint 13 which is based on Ubuntu 12.04?
Yes that should work and they should have the same Grub version. If you can't get the basics to work on the Live CD/flash, it probably will not do well installed.
 
Old 08-04-2013, 07:41 AM   #6
Codger
LQ Newbie
 
Registered: May 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks - I'll bear it in mind as a fall back position...!
 
  


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
grub fails to install grimx Slackware 4 05-18-2013 12:58 AM
Grub Fails to Install on Ubuntu 12,10 floweringmind Linux - Hardware 2 11-18-2012 07:46 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM
GRUB fails to install on sata disk with Ubuntu 5.04 nonutopia Linux - Software 5 08-16-2005 03:09 AM
Dual-booting Ubuntu using Grub fails tsalem Linux - Newbie 10 01-25-2005 09:47 PM

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

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