LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 01-16-2009, 04:54 PM   #16
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,406

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716

Look at your output from the fdisk -l command above. It shows sda as a 160GB drive. Is that your internal drive? It also shows sdb as a 500GB drive. Is that your external drive? You have Linux partitions on sda1 and sdb5 which in Grub would be (hd0,0) and (hd1,4) respectively. You ran the commands below to install Grub to the mbr and have it pointing to (hd0,0) which is sda1 and is the Ubuntu you are now able to boot, right?

sudo grub
root (hd0,0)
setup (hd0)
quit

Look at your menu.lst posting. Toward the bottom you will see this line:

Quote:
### END DEBIAN AUTOMAGIC KERNELS LIST
Just below that line you will see the following:

Quote:
This entry automatically added by the Debian installer for an existing
# linux installation on /dev/sda1.
The entries below that are for an "existing installation" so the menu.lst you have posted is the second one you installed which should be the external.

Did you run the commands I suggested in earlier post "sudo mkdir /mnt/sdb5...? Did you get any errors when you did this? If you did not get any errors or have any problems with the commands, you should be in the external menu.lst. I don't know what else you may have done but if you put the entry I suggested in the internal drive Ubuntu /boot/grub/menu.lst file and it is not right, the external just won't boot and we'll try something else.

Also, I didn't mean "quit", if you look at your menu.lst file, what I posted is just a title entry I copied from it.

Also, if you want to have just Ubuntu on the external drive and have it be able to boot when set to first boot priority on another computer, you will then need to put Grub in the mbr of the external drive. Not sure how you want to do this??

Last edited by yancek; 01-16-2009 at 05:00 PM.
 
Old 01-17-2009, 02:00 AM   #17
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Original Poster
Rep: Reputation: 15
Ok I did it. And it works smootley

Thanks everyone for all the help!
 
Old 01-17-2009, 02:34 AM   #18
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Original Poster
Rep: Reputation: 15
So that everyne understands: when my ext is plugged in I still boot my internal automaticly. But when I press escape I can choose. And thats just what I wanted.

But I'm not yet able to boot froma windows pc. how can I change that?

Thanks!
 
Old 01-17-2009, 10:15 AM   #19
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,406

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
Quote:
But I'm not yet able to boot from a windows pc. how can I change that?
Are you talking about connecting your external hard drive to another windows only pc to boot the external with Linux/Ubuntu? As I indicated in my last post, if you want to be able to do that, you will need to install Grub stage1 to the mbr of that external hard drive. Then when you connect it to another computer, you will have to have whatever drive number your external drive is set first in boot priority on that machine.
 
Old 01-19-2009, 03:09 AM   #20
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Original Poster
Rep: Reputation: 15
Exactly what I'm talking about. So how do I install grub stage 1 to mbr? But I allready know how to make my disk the primary boot.
 
Old 01-19-2009, 02:45 PM   #21
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,387

Rep: Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581Reputation: 581
Quote:
Originally Posted by Vanostaajen View Post

how do I install grub stage 1 to mbr?
Boot into the Linux partition which contains the copy of grub that you want to use. Log in as root (or use sudo) and issue the grub-install command. See:

man grub-install

--------------------
Steve Stites
 
Old 01-20-2009, 03:36 AM   #22
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Original Poster
Rep: Reputation: 15
Ok, i did the command, but it doesn't tell me how to install grub to the mbr. So could someone please tell me how?

Thanks!

Last edited by Vanostaajen; 01-20-2009 at 05:15 AM.
 
Old 01-20-2009, 08:32 AM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 11,406

Rep: Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716Reputation: 2716
If you haven't made any changes since the last post to your bootloader, you should be able to install Grub to the mbr of the external by booting into the Ubuntu on the external and issuing commands:

sudo grub
root (hd1,4)
setup (hd1)
quit
 
Old 01-20-2009, 09:59 AM   #24
Vanostaajen
LQ Newbie
 
Registered: Jan 2009
Distribution: Ubuntu 8.10
Posts: 25

Original Poster
Rep: Reputation: 15
Thanks alot,
That was all I needed:-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Ubuntu: Installed to external hard drive; boot to primary hard drive gives error 22 dcorb62 Linux - General 7 09-04-2007 11:28 PM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 09:03 AM
accidentally installed linux on external hard drive oneferna Linux - General 2 01-28-2006 03:53 PM
External Hard drive + ubuntu yayd Linux - Newbie 9 01-15-2006 08:30 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM

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

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