Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Grub with USB drive

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help!
View previous topic :: View next topic  
Author Message
gmport



Joined: Fri Jan 20, 2012 3:16 pm
Posts: 17

PostPosted: Wed Jan 23, 2013 9:15 am    Post subject: Grub with USB drive Reply with quote

Hi,

I have been using Linux almost exclusively for over 3 years now using various versions of Ubuntu and Mint and am now using Mint 14.1 (Cinnamon) dual booting with Windows XP; I only keep Windows for AutoCAD. Good though Mint is, I often feel like trying something a bit different.

Using mostly my HP laptop, trying a new distro on live discs is ok, but doesn't give a true feel for the distro being tested. Virtualbox is ok, but again is not like running the 'real thing'. So I have taken to installing the distro to be tested on a USB drive – it runs faster and I get a better impression of what the new distro is really like.

The problem I have is what the new installation does with Grub. I always select manually partition set-up and select to install the boot manager to '/dev/sdb'. However, some installers put the Grub boot menu on sdb, but remove the original menu from sda. Consequently, I can only boot from my main installation on sda when the USB drive (sdb) is connected.

Other installers don't seem to install Grub at all leaving me with the Grub recovery prompt when I boot.

I have tried using the 'System Recovery CD' from LXF162, but this seems very complicated. I have also scoured LXF answers for advice – there are several questions on Grub problems, but I can't find anything that covers my particular circumstances using a removable drive.

Could someone tell me a method for replacing/re-installing Grub (in simple terms please, I'm getting on a bit!) so that I can boot my original installation on sda when the USB drive (sdb) is not connected or boot from the USB drive when it is.

Regards gmport
Back to top
View user's profile Send private message
gmport



Joined: Fri Jan 20, 2012 3:16 pm
Posts: 17

PostPosted: Wed Jan 23, 2013 7:51 pm    Post subject: Reply with quote

Update...

It's always the same, I've been looking for a solution for days and then hours after posting the above, I stumble across “Grub2/installing” at:
https://help.ubuntu.com/community/Grub2/Installing.

It explains how to do just about amything with Grub. From these instructions I booted into Mint with the USB drive connected and in a terminal entered:

Code:
sudo grub-install /dev/sda


After re-booting I had the Grub menu back, but the USB drive was not included. So I then entered:

Code:
sudo update-grub


Success everything worked correctly!!! Without the USB drive connected, I could boot Mint or Windows. With USB connected, I could boot into Mint, Windows or the new openSuse 12.2.

This was all ok until I re-booted after installed all the updates – instead of the Grub menu, there was an error message about the kernel.

So I did:

Code:
sudo update-grub


again and all is well again.

Regards gmport
Back to top
View user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Help! All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast