Grub won't (re)install properly

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read how to get help
Post Reply
marcadler
Level 1
Level 1
Posts: 3
Joined: Sat Sep 22, 2012 1:28 am

Grub won't (re)install properly

Post by marcadler » Sat Sep 22, 2012 1:37 am

I've searched all over but only found replies that apply to situations where someone wants a dual partition. I do not want that.

I installed 13 on a Cretaceous-era Dell Dimension 4550 with two HDDs that had Windows XP on it. I initially selected the "help with installation" option because I was trying to install via USB (which failed). I got a CD and did a clean (100% wipe) install of 13. However, the little partition-selector-boot-loader thingy that the initial "help with installation" thing created has made it impossible to boot without the CD.

I even reinstalled from within the new 13 (which boots fine from the CD), and the same problem persists. I tried mounting /dev/sda1 and installing grub etc. etc. ad nauseum (I've been at this for the past two hours).

I can't understand why a completely clean install results in this. Shouldn't it totally wipe out any record of what came before?

Thanks in advance.

User avatar
kc1di
Level 14
Level 14
Posts: 5481
Joined: Mon Sep 08, 2008 8:44 pm
Location: Maine USA

Re: Grub won't (re)install properly

Post by kc1di » Sat Sep 22, 2012 6:50 am

Hi marcadler and welcome to Mint,

Sounds like the bootloader is not being installed in the MBR for some reason.
here's what I would try first go to this page and down load and run boot-repair it should fix it.
if it does not then there is a log that is created that can be of help in figuring out what is going on.
here's the page for Boot-repair it has instructions on how you use it.

https://help.ubuntu.com/community/Boot-Repair
Easy tips : https://easylinuxtipsproject.blogspot.com/ Pjotr's Great Linux projects page.
Linux Mint Installation Guide: http://linuxmint-installation-guide.rea ... en/latest/
Registered Linux User #462608

HughT
Level 5
Level 5
Posts: 627
Joined: Thu Oct 20, 2011 1:54 pm
Location: England

Re: Grub won't (re)install properly

Post by HughT » Sat Sep 22, 2012 6:54 am

hi marcadler, yes, it looks like the bootloader is installed at the wrong location, try from a live CD or USB

Code: Select all

sudo mount /dev/sdXY /mnt
replace X and Y with the appropriate drive and partition for Mint boot.

Code: Select all

sudo grub-install --root-directory=/mnt /dev/sdX
note - there's a gap between =/mnt and /dev, and no partition number after sdX, regards
Please Edit your post title and add [SOLVED] once your question is resolved.

marcadler
Level 1
Level 1
Posts: 3
Joined: Sat Sep 22, 2012 1:28 am

Re: Grub won't (re)install properly

Post by marcadler » Sat Sep 22, 2012 8:58 am

kc1di: Thanks, and I'll try that.

HughT: That's what I tried. It didn't work. I used Gparted and fdisk to identify the correct part etc., but nothing worked.

User avatar
Flemur
Level 17
Level 17
Posts: 7370
Joined: Mon Aug 20, 2012 9:41 pm
Location: Potemkin Village

Re: Grub won't (re)install properly

Post by Flemur » Sat Sep 22, 2012 9:08 am

Check out where the installer is trying to put the bootloader/MBR when you're at disk selecting/formating step; it's in a little text box where it's easy to miss: when I installed from USB it defaulted to writing it to the USB drive I was installing from, rather than the HD I was installing to. FWIW, if you have two HDs it'd probably be a good idea to physically disconnect the one you're not installing to, then reconnect it after the OS is installed.
Please edit your original post title to include [SOLVED] if/when it is solved!
Your data and OS are backed up....right?

marcadler
Level 1
Level 1
Posts: 3
Joined: Sat Sep 22, 2012 1:28 am

Re: Grub won't (re)install properly

Post by marcadler » Sat Sep 22, 2012 7:44 pm

Flemur - I hadn't thought about that.

I'll try that next, but either way it didn't work, and here's the pasted text.

http://paste.ubuntu.com/1221514/

Can anyone make sense of that?

I really appreciate all the help everyone has given me so far.

User avatar
oobetimer
Level 7
Level 7
Posts: 1878
Joined: Tue Jun 01, 2010 12:53 pm
Location: Finland / above the Arctic Circle
Contact:

Re: Grub won't (re)install properly

Post by oobetimer » Sun Sep 23, 2012 5:19 am

You can boot Mint via XP´s bootloader also.
http://forums.linuxmint.com/viewtopic.p ... in#p595336

Basically grub should re-install using command sudo grub-install --boot-directory=/mnt/boot /dev/sdx instead of sudo grub-install --root-directory=/mnt /dev/sdx

Post Reply

Return to “Installation & Boot”