LinuxQuestions.org
Visit Jeremy's Blog.
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 11-07-2009, 06:49 PM   #1
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Question GRUB configuration question...


Can I install the GRUB bootloader to my primary hard disk's MBR and boot into Linux from an external hard drive when connected, and when it is not to automatically boot into Windows?
 
Old 11-07-2009, 08:10 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
let me get this straight. you want to boot from an external drive with grub. well I would install Linux on the external drive and put the grub there then ask bios to boot from your external drive. the problem with grub booting to external drive is it needs to load drivers just to see the drive. I believe grub2 has been working on that. some systems have a choice at start up when you press F10. then it asks you what hard drive or device to boot from.
some systems you must go into bios and set it up to boot that device.
Then you have isolinux to boot from also that is another way.

what grub does is run on the mbr it is a small program that reads bios. this is how it finds the drives. since there are so many different drives today it will need the USB interface driver to load then load a driver to make the device work. this is done at the kernel level. not at the grub level.
so what I did was make sure my bios will boot from USB and then installed to the external drive. then boot from external drive.
so why can bios boot the drive? Because it will be seen to bios as a DOS {disk operating system} then bios will search for the first sector on the drive. MBR and that is where grub is.
you will find using a live cd to install with will make things easier because the drive will be loaded as scsi device sd device
good luck
 
Old 11-07-2009, 08:47 PM   #3
lupusarcanus
Senior Member
 
Registered: Mar 2009
Location: USA
Distribution: Arch
Posts: 1,022

Original Poster
Blog Entries: 19

Rep: Reputation: 146Reputation: 146
Thank you, Drakeo.

When I installed Ubuntu to the drive, it would not boot unless I restarted my computer. When I shut it down and cold booted the computer, it would not load grub. But if I restarted the computer (Linux, Windows, BIOS, whatever), it would work.

Long story short, I do not want to have to annoyingly restart the computer anytime I want to boot Linux. I want to find a way to fix this, and I am thinking if i can configure GRUB to be on the primary MBR, BIOS will find Linux.

Please help figure this out. Nobody is helping me ):

Last edited by lupusarcanus; 11-07-2009 at 08:48 PM. Reason: oopsy
 
Old 11-07-2009, 09:16 PM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
If you must have linux on a external drive then put your grub there on the external grub. and now boot from the drive. your grub should now be able to point to the windows. Here is the problem I could care less about windows I have not used it in 14 years. except at hotels.
the problem is your usb drive will be seen as sda so the grub must point to windows drive partition and that would be sdb now.
 
  


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
GRUB question. I want to delete the partition of the distro that installed GRUB... brjoon1021 Linux - General 2 09-29-2009 11:14 AM
Bootloader (Grub) configuration question praveen_2003 Linux - Software 5 11-29-2008 10:50 AM
Grub Configuration khaleel5000 Linux - Software 4 04-12-2006 08:59 AM
Dual boot. Grub configuration question. patufet99 Linux - Hardware 6 12-04-2005 10:47 AM
GRUB splashimage configuration / update GRUB rudL Linux - Software 1 05-10-2004 07:16 AM

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

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