LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2009, 06:58 AM   #1
Tetebotan
LQ Newbie
 
Registered: Feb 2009
Posts: 1

Rep: Reputation: 0
Exclamation Can't boot to windows


I have installed Ubuntu Linux on my USB external Hard disk. The GRUB boot load is on the usb drive i guess. When I try to boot into windows vista without the external disk, it gives error that GRUB not found. If the external drive is connected, I can choose to boot to windows or ubuntu. Please I want to be able to boot to windows without the external drive. What I can I do?
 
Old 02-19-2009, 07:03 AM   #2
akuthia
Member
 
Registered: Oct 2007
Location: triad, nc, usa
Distribution: Ubuntu
Posts: 232

Rep: Reputation: 29
hmm, it sounds as if the boot.ini file might have been modified at the same time when you installed ubuntu. copy boot.ini and rename it something like boot.bak and see if theres a line in boot.ini about ubuntu, if so delete it and see if that fixes the problem.
 
Old 02-19-2009, 07:18 AM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Quote:
Originally Posted by akuthia View Post
hmm, it sounds as if the boot.ini file might have been modified at the same time when you installed ubuntu. copy boot.ini and rename it something like boot.bak and see if theres a line in boot.ini about ubuntu, if so delete it and see if that fixes the problem.
I doubt that this is relevant.....The normal Linux installer--including Ubuntu--does not do anything to boot.ini (or to anything else within the Windows system)


Here is what is happening:
When you put Linux on an external drive and take the default bootloader installation, the boot code (GRUB) goes on the MBR of the #1 drive, and the GRUB files go in the /boot partition of the Linux install. If the external drive is not there, GRUB cannot find its files.

There are several ways to proceed:

1. Always have the external drive connected when you boot up.

2. Put the GRUB files on a partition on the internal drive.

3. Put GRUB on the external drive and access it by changing the boot order in the BIOS.

4. As above, but set up a link from the Windows boot.ini

5. Put Linux on the internal drive. This generally requires shrinking the existing Windows partition.

Tell us more about the system and which option(s) you'd like to pursue. The "booting" link below may help, but also search here for member "saikee" and look at his links.
 
Old 02-19-2009, 07:21 AM   #4
Udi
Member
 
Registered: Jan 2009
Posts: 165

Rep: Reputation: 44
You won't find anything GRUB-related or Ubuntu-related in boot.ini, so no point in modifying it.

No question that your GRUB was installed on the first hard disk and not the external one like it should have been. You will need to:
1) Fix the MBR on the Windows hard disk. Do that by booting into Windows and running the 'fixmbr' command.
2) Reinstall GRUB on the external hard disk. Do that by booting the Live CD, mounting the Linux partition from the external drive (by double-clicking it it will be mounted automatically) and running "grub-install --root-directory=/media/disk/boot/grub /dev/sdb".

Now, if your BIOS supports booting from external USB drives, you will be able to boot Linux when the drive is connected (and Windows will load normally otherwise).
 
Old 02-19-2009, 08:32 AM   #5
monsm
Member
 
Registered: Feb 2005
Location: London, UK
Distribution: Gentoo
Posts: 568

Rep: Reputation: 37
Tetebotan, Udi is right here.

Since you are able to boot Ubuntu with your external drive attached you should be ok. You might have to modify the boot order in your bios settings so that it boot from the external drive when it is attached.

If this doesn't work, you can also add Ubuntu to the Windows boot menu specified in the boot.ini file. Here is a thread on how to do that: http://www.linuxquestions.org/questi...ows-xp-244728/

Mons
 
  


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
Wine installed a program onto my windows partition, Windows BSOD on boot. DJGCrusader Linux - Enterprise 9 08-14-2009 08:25 AM
Dual boot -fedora core 4 and windows xp- problem booting from windows xp cd r_desu Linux - Newbie 4 06-17-2007 04:33 PM
dual boot - Grub won't boot Windows on /windows/D partition biosol SUSE / openSUSE 9 04-09-2006 08:14 PM
linux/ windows dual boot. Windows XP is in portable HDD (already installed) izquierdista Linux - General 1 02-03-2006 10:23 AM
How do I dual boot Linux and Windows XP from Windows boot file andyri Linux - Newbie 4 08-04-2004 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:53 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration