LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-11-2013, 12:07 AM   #1
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Rep: Reputation: Disabled
grub installation problem


Hi guys, I recently installed Linux mint 15 cinnamon 32-bit on my 40GB external hard drive. I used an 8GB flash as a live CD, and install onto the external. the installation works just fine, but it will only boot when the 8Gb is also present at boot. from the error messages I think it is looking to boot from sdc1 at boot, but if the 8GB isn't plugged in the externals /dev/ path changes and therefore grub looks in the wrong place to boot. is there any way to edit the grub config file to make it look at the Linux installation even if other devices are removed or inserted?
side note: this problem is because of the something else partition thing during installation. I installed the boot loader on the same external hard drive, which is correct. if there is any info that can help just ask me for it..
thanks in advance
 
Old 10-11-2013, 03:38 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,304

Rep: Reputation: 65
you can probably change the boot order in your bios to make it map the flash drive as later than the install partition.
 
Old 10-11-2013, 03:43 AM   #3
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
No it is nothing to do with the bios whatsoever, it is only to do with grub. it should be noted that I also have a mint installation on the internal hard drive
 
Old 10-11-2013, 05:06 AM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
With flash drive connected, mount all partitions on sda, then run
Quote:
update-grub
that should find your other mint partition, Reboot into other mint, unmount & remove flash & issue command
Quote:
grub-install /dev/sda

Last edited by EDDY1; 10-11-2013 at 05:08 AM.
 
1 members found this post helpful.
Old 10-11-2013, 07:31 AM   #5
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by EDDY1 View Post
With flash drive connected, mount all partitions on sda, then run that should find your other mint partition, Reboot into other mint, unmount & remove flash & issue command
Thanks for the reply, let me describe what gets mounted at /dev/
sda is the internal hard drive of the PC
sdb is the 8GB usb "live CD" that i used to install LM15 on my external
sdc is my 40GB external hard drive that has LM15 on it

can I not just update grub and execute
Code:
grub-install /dev/sda
on the external?
I want the external to be able to boot without the necessity of my live CD usb being plugged in.
ie. even in a computer that has no internal hard drives
 
Old 10-11-2013, 09:05 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Quote:
can I not just update grub and execute
Code:
grub-install /dev/sda
No

What I believe you want is to have the bootloader on the external drive

if sda is internal then leave the flash connected but try

Code:
sudo grub-install /dev/sdc
2) Now bios becomes important from your last request
as not all bios allow usb boots

modern ones do
but if you have an old one,
you can download plop as a cd which will give you usb drivers
or download UBCD which contains plop

YMMV

but before doing so, check that external has grub2 files on it pls

Last edited by aus9; 10-11-2013 at 09:07 AM.
 
1 members found this post helpful.
Old 10-11-2013, 11:27 AM   #7
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by aus9 View Post
No

What I believe you want is to have the bootloader on the external drive

if sda is internal then leave the flash connected but try

Code:
sudo grub-install /dev/sdc
2) Now bios becomes important from your last request
as not all bios allow usb boots

modern ones do
but if you have an old one,
you can download plop as a cd which will give you usb drivers
or download UBCD which contains plop

YMMV

but before doing so, check that external has grub2 files on it pls
no worries about old motherboard, it supports usb boot, i have grub2 files located in:
/boot/grub
/etc/grub.d
/etc/default/grub

the bootloader was installed to sdc TOSHIBA 40GB at time of installation. that is my external HD

Last edited by The_Jinxer; 10-11-2013 at 11:29 AM.
 
Old 10-11-2013, 07:32 PM   #8
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Let's see some hard data - boot the external, go get and run bootinfoscript (may even be installed in Mint by default).
Post the RESULTS.txt it generates.
 
Old 10-11-2013, 07:47 PM   #9
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:
the boot loader was installed to sdc TOSHIBA 40GB at time of installation
You may have told the installer to install grub to sdc but installers tend to get confused at times and incorrectly install grub. That is why LQ has so many threads about grub not booting correctly after instalation. If you boot your external Mint drive, do fdisk -l to get the dev number of the external drive then do grub-install /dev/<dev number of external mint drive> should fix grub.
 
Old 10-12-2013, 02:32 AM   #10
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by colorpurple21859 View Post
You may have told the installer to install grub to sdc but installers tend to get confused at times and incorrectly install grub. That is why LQ has so many threads about grub not booting correctly after instalation. If you boot your external Mint drive, do fdisk -l to get the dev number of the external drive then do grub-install /dev/<dev number of external mint drive> should fix grub.
technically grub is installed to the correct place, the external hard drive which was sdc1 at the time, and if the 8GB is not present at boot,then i presume that it looks for sdc1 which is actually then sdb1.
 
Old 10-12-2013, 02:36 AM   #11
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
redacted - my apologies for being impatient.

Last edited by syg00; 10-12-2013 at 03:11 AM.
 
Old 10-12-2013, 02:43 AM   #12
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Let's see some hard data - boot the external, go get and run bootinfoscript (may even be installed in Mint by default).
Post the RESULTS.txt it generates.
here is the results file
Attached Files
File Type: txt RESULTS.txt (16.9 KB, 25 views)
 
Old 10-12-2013, 03:57 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Hence my request for hard data - I see Mint is no longer on the internal disk.

That looks pretty lame - Ubuntu (hence Mint) disavowed the use of /dev device addresses years ago. I don't use Ubuntu (I have a Mint somewhere, so I'll go check), but I find that grub.cfg odd. The hardcoded "root=/dev/hdc1" (on the "linux" line) is the reason you need the USB in place to successfully boot the external.
Were you to change it to "root=UUID=ff5e1218-a92c-4e50-ad54-a377b057d91f", you'd probably be o.k. - but you shouldn't have to. Raise a bug against Mint.

Any particular reason you are using ext2 ?.

Last edited by syg00; 10-12-2013 at 04:11 AM. Reason: s/Where/Were/
 
1 members found this post helpful.
Old 10-12-2013, 09:29 AM   #14
The_Jinxer
LQ Newbie
 
Registered: Oct 2013
Location: Cape Town, South Africa
Distribution: Linux Mint 15
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by syg00 View Post
Hence my request for hard data - I see Mint is no longer on the internal disk.

That looks pretty lame - Ubuntu (hence Mint) disavowed the use of /dev device addresses years ago. I don't use Ubuntu (I have a Mint somewhere, so I'll go check), but I find that grub.cfg odd. The hardcoded "root=/dev/hdc1" (on the "linux" line) is the reason you need the USB in place to successfully boot the external.
Were you to change it to "root=UUID=ff5e1218-a92c-4e50-ad54-a377b057d91f", you'd probably be o.k. - but you shouldn't have to. Raise a bug against Mint.

Any particular reason you are using ext2 ?.
well the results file posted is from another computer- now before you tell me that it makes a big difference, this is the school's computer lab, in which all the pcs are identical- the internal mint is on the pc i use. but that isnt the point.
i use ext2 because it was the easiest option, and i do not think the installer had an option to make a ext3 filesystem.
so how would i go about fixing the need for the 8GB in grub.cfg?
 
Old 10-12-2013, 10:11 AM   #15
Shadow_7
Senior Member
 
Registered: Feb 2003
Distribution: debian
Posts: 4,137
Blog Entries: 1

Rep: Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874Reputation: 874
You probably need to rerun the grub-install manually. Just because all the grub bits exist in /boot/grub doesn't mean that it's installed on the MBR or installed correctly on the MBR of the drive you're intending to boot grub from. And be sure to use UUIDs instead of /dev names. Double check the grub.cfg after update-grub to make sure it's right.
 
1 members found this post helpful.
  


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 problem after installation. a_minor Linux - General 4 01-06-2012 02:53 PM
RHEL 6 grub installation problem. rahulvishwakarma Linux - Software 2 10-29-2011 03:54 PM
grub installation problem in ubuntu 10.10 networkguru Ubuntu 5 02-20-2011 04:28 PM
Problem in GRUB installation Pramoda.M.A Linux - Desktop 3 05-14-2010 01:32 AM
SuSE 9.1 Installation Problem (kicks to GRUB) dj1s Linux - Distributions 11 07-14-2004 08:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:47 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