Installation of Mint 17: Grub written on USB instead of HD

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post please read this

Installation of Mint 17: Grub written on USB instead of HD

Postby Relaxo on Sun Jun 22, 2014 1:13 pm

Hi together.

Yesterday I installed Mint 17 Cinnamon edition /32bit.
My configuration before was:
sda1: Windows 7
sda2: Mint 13
sda3: Swap

I booted my laptop using a live USB stick (YUMI multiboot) and installed Mint 17, during partitioning I formatted sda2 with Mint 13 on it.
The result was, that Grub was written on my USB stick, if I boot the laptop without it inserted, I get "Grub_rescue" and cannot boot.
Also, I can no longer use the bootloader which was on the USB drive, but booting from it shows Grub with Windows 7 and Mint 17.

I guess that this is not the way it's meant to be, is it?

A search only lead me to pages with instructions about grub rescue, but I find this to be really unintuitive (eg the drive names are different, so I'm afraid I'll mess everything up).

I'd be glad it there would be some easy way of solving this.

Cheers
Ricki
Relaxo
Level 1
Level 1
 
Posts: 5
Joined: Sun Jun 22, 2014 12:56 pm

Linux Mint is funded by ads and donations.
 

Re: Installation of Mint 17: Grub written on USB instead of

Postby jungle_boy on Sun Jun 22, 2014 3:46 pm

Reinstall LM, probability, your USB stick is sdb and your HD is sda, and be sure to choose sda1 to install GRUB.
LM17 Cinnamon (PC and Notebook) with AMD Catalyst
HP Pavilion g4-1316br, AMD Quad Core, 1,5 GHz, Radeon 6520G/7450M,
Image
Linuxcounter Registered User #506065 (2008)
User avatar
jungle_boy
Level 6
Level 6
 
Posts: 1215
Joined: Thu Aug 19, 2010 2:51 pm
Location: Amazon Rain Forest, Brazil

Re: Installation of Mint 17: Grub written on USB instead of

Postby Relaxo on Sun Jun 22, 2014 5:08 pm

Thanks. Well, I already did quite a lot of updates and installations, so a complete new installation of Mint would be rather unpleasant.

Can I just install Grub again after booting into Mint? Or could this cause any more issues?
Relaxo
Level 1
Level 1
 
Posts: 5
Joined: Sun Jun 22, 2014 12:56 pm

Re: Installation of Mint 17: Grub written on USB instead of

Postby martywd on Sun Jun 22, 2014 5:28 pm

Relaxo wrote:Thanks. Well, I already did quite a lot of updates and installations, so a complete new installation of Mint would be rather unpleasant.

Can I just install Grub again after booting into Mint? Or could this cause any more issues?


If you can still boot into LM17 with the 'USB stick's' grub menu, do so? Once logged into LM17. Open a Terminal window. Run this command:

Code: Select all
sudo grub-install --recheck /dev/sda


You should see a 'Installation finished. No error reported.' message?

Next, also from the Terminal window run:

Code: Select all
sudo update-grub


Unmount your 'USB stick'. Remove 'USB stick'. Reboot.

More info here ==> https://help.ubuntu.com/community/Grub2 ... ing_System
.
Last edited by martywd on Mon Jun 23, 2014 1:06 pm, edited 1 time in total.
martywd
Level 3
Level 3
 
Posts: 119
Joined: Sun May 08, 2011 10:35 am
Location: Texas

Re: Installation of Mint 17: Grub written on USB instead of

Postby martywd on Mon Jun 23, 2014 12:35 am

.
Redundant post remove by 'The Department of Redundancy Department'! (martywd) ... :-0
.
Last edited by martywd on Mon Jun 23, 2014 1:09 pm, edited 1 time in total.
martywd
Level 3
Level 3
 
Posts: 119
Joined: Sun May 08, 2011 10:35 am
Location: Texas

Re: Installation of Mint 17: Grub written on USB instead of

Postby Relaxo on Mon Jun 23, 2014 6:44 am

Hi,

Code: Select all
sudo grub-install --recheck /dev/sda
worked only when the USB drive was inserted. Then I received the message 'Installation finished. No error reported.'
However after updating Grub and rebooting, the problem remained. Grub rescue.

I'll read through your link and try reinstalling Grub in the evening.
Thanks.
Relaxo
Level 1
Level 1
 
Posts: 5
Joined: Sun Jun 22, 2014 12:56 pm

Re: Installation of Mint 17: Grub written on USB instead of

Postby eanfrid on Mon Jun 23, 2014 6:53 am

Relaxo wrote:
Code: Select all
sudo grub-install --recheck /dev/sda
worked only when the USB drive was inserted. Then I received the message 'Installation finished. No error reported.'
However after updating Grub and rebooting, the problem remained. Grub rescue.

And what does tell you
Code: Select all
lsblk

maybe your HDD is not sda at this moment, but sdb instead. If this is the case
Code: Select all
sudo grub-install /dev/sdb
will probably solve the problem
Main desktop: Debian GNU/Linux Wheezy 64bit w/custom 3.14 longterm kernel - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
True private storage on SpiderOak
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1773
Joined: Mon Apr 30, 2012 2:49 am
Location: => ~

Re: Installation of Mint 17: Grub written on USB instead of

Postby jsalpha2 on Mon Jun 23, 2014 9:07 am

Code: Select all
gksu mousepad /etc/fstab

Take a look in here. Post your results. Be careful about making changes.
jsalpha2
Level 2
Level 2
 
Posts: 79
Joined: Wed May 08, 2013 8:56 am

Re: Installation of Mint 17: Grub written on USB instead of

Postby eanfrid on Mon Jun 23, 2014 10:19 am

jsalpha2 wrote:
Code: Select all
gksu mousepad /etc/fstab

Take a look in here. Post your results. Be careful about making changes.
:shock:
Code: Select all
cat /etc/fstab
will be enough :)
Main desktop: Debian GNU/Linux Wheezy 64bit w/custom 3.14 longterm kernel - MATE 1.8.1
(i5 2400@3.7GHz - 16GB DDR3 - HD6770 w/radeon driver - SSD+RAID1)
True private storage on SpiderOak
User avatar
eanfrid
Level 7
Level 7
 
Posts: 1773
Joined: Mon Apr 30, 2012 2:49 am
Location: => ~

Re: Installation of Mint 17: Grub written on USB instead of

Postby austin.texas on Mon Jun 23, 2014 11:38 am

Relaxo wrote:
Code: Select all
sudo grub-install --recheck /dev/sda
worked only when the USB drive was inserted. Then I received the message 'Installation finished. No error reported.' However after updating Grub and rebooting, the problem remained. Grub rescue.

It sounds like you are booting the USB drive first. Go into your BIOS settings and set the BIOS to boot sda first. (or unplug the USB drive)
martywd's instructions should work fine.
Mint 17 Cinnamon (64 bit), Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI
Microsoft-free environment since 1996

To help Linux Mint with a donation, please visit http://www.linuxmint.com/donors.php
User avatar
austin.texas
Level 9
Level 9
 
Posts: 2828
Joined: Tue Nov 17, 2009 3:57 pm
Location: at /home

Re: Installation of Mint 17: Grub written on USB instead of

Postby jungle_boy on Mon Jun 23, 2014 5:32 pm

Sorry; but the correct command would not be?:
Code: Select all
sudo grub-install /dev/sda
LM17 Cinnamon (PC and Notebook) with AMD Catalyst
HP Pavilion g4-1316br, AMD Quad Core, 1,5 GHz, Radeon 6520G/7450M,
Image
Linuxcounter Registered User #506065 (2008)
User avatar
jungle_boy
Level 6
Level 6
 
Posts: 1215
Joined: Thu Aug 19, 2010 2:51 pm
Location: Amazon Rain Forest, Brazil

Re: Installation of Mint 17: Grub written on USB instead of

Postby Relaxo on Mon Jun 23, 2014 6:00 pm

austin.texas wrote:It sounds like you are booting the USB drive first. Go into your BIOS settings and set the BIOS to boot sda first. (or unplug the USB drive)
martywd's instructions should work fine.

As said, I need to boot from USB manually to get my standard Grub menu. If I boot from HD, I only get "Grub repair". The whole boot menu I had before and need again has been written onto the USB drive.

Code: Select all
lsblk
gave me this

Code: Select all
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465,8G  0 disk
├─sda1   8:1    0 225,4G  0 part
├─sda2   8:2    0   236G  0 part /
└─sda3   8:3    0   4,3G  0 part [SWAP]
sdb      8:16   1   7,5G  0 disk
└─sdb1   8:17   1   7,5G  0 part /media/ricki/MULTIBOOT
sr0     11:0    1  1024M  0 rom 


The drives haven't changed, I had exactly this configuration before. sda1 is Windows7, sda2 is Linux Mint. Maybe the reason of all this is, that before reinstalling Mint, I formatted sda2, where Grub was located. Who knows...


Code: Select all
cat /etc/fstab
showed this:

Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sdb2 during installation
UUID=8276b805-270f-4cfd-af72-c4a74b42ec89 /               ext3    errors=remount-ro 0       1
# swap was on /dev/sdb3 during installation
UUID=e5bd0006-96c8-49b6-813b-45d3034a205f none            swap    sw              0       0

Relaxo
Level 1
Level 1
 
Posts: 5
Joined: Sun Jun 22, 2014 12:56 pm

Re: Installation of Mint 17: Grub written on USB instead of

Postby Relaxo on Mon Jun 23, 2014 6:26 pm

jungle_boy wrote:Sorry; but the correct command would not be?:
Code: Select all
sudo grub-install /dev/sda


Erm, yes. This kinda did the trick. Thanks a lot! :D
I should have guessed.
Relaxo
Level 1
Level 1
 
Posts: 5
Joined: Sun Jun 22, 2014 12:56 pm

Re: Installation of Mint 17: Grub written on USB instead of

Postby jungle_boy on Wed Jun 25, 2014 1:09 pm

I'm glad to have helped you. Welcome to the world of Linux Mint!
LM17 Cinnamon (PC and Notebook) with AMD Catalyst
HP Pavilion g4-1316br, AMD Quad Core, 1,5 GHz, Radeon 6520G/7450M,
Image
Linuxcounter Registered User #506065 (2008)
User avatar
jungle_boy
Level 6
Level 6
 
Posts: 1215
Joined: Thu Aug 19, 2010 2:51 pm
Location: Amazon Rain Forest, Brazil

Linux Mint is funded by ads and donations.
 

Return to Installation & Boot

Who is online

Users browsing this forum: Google [Bot] and 13 guests