LinuxQuestions.org
Review your favorite Linux distribution.
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 06-12-2008, 07:06 PM   #1
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Rep: Reputation: 0
Exclamation Help - Installed Ubuntu on USB disk now my XP will not boot from the internal


I just installed Ubuntu 7.10 onto a USB Hard Drive - which went smoothly - However now I cant boot the XP that is installed on the internal HD - if I unplug the USB Drive I get grub error 21 if I leave it in then I can get to the point where I select the OS - I choose XP and it goes through the xp start-up screen then flashes the blue screen of death and starts the boot process over again. HOW DO I FIX THIS?
I cant delete XP and start fresh (although I would like to) since it has my work files and programs.

Oh plus I need to have this fixed before 7 am tomorrow HAHA - but seriously - any help is greatly apreciated
 
Old 06-12-2008, 07:14 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
A windows xp disk and in the repair mode at the command prompt type 'FIXMBR' without the prompts and hit enter.
 
Old 06-12-2008, 07:18 PM   #3
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
A windows xp disk and in the repair mode at the command prompt type 'FIXMBR' without the prompts and hit enter.
Great Thanks

But will this problem arise again when I boot the external next time?
 
Old 06-12-2008, 09:13 PM   #4
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thumbs down No Go

Quote:
Originally Posted by Larry Webb View Post
A windows xp disk and in the repair mode at the command prompt type 'FIXMBR' without the prompts and hit enter.
OK the FIXMBR was a no go with the external unpluged the XP recovery didnt even see the internal HD but with the external plugged in it sees it - so I did the mbr and rebooted first without the external HD and I got the same thing as before Grub Error 21 soI I plug the EXternal back in and I get the pick OS screen and XP does the same thing as before gets to its start-up screen and goes back to boot. However now I cant even boot the external HD, so I log onto the LiveCD to get the net.
 
Old 06-12-2008, 09:32 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You should be able to unplug the external hd, make sure your cd player is first boot in the bios boot order. Insert your windows cd and reboot the computer. Now the rest comes from memory so I may miss something but after the boot a screen will tell you there is a copy of windows and what do you want to do (installation) or (repair). Select the repair.

Last edited by Larry Webb; 06-12-2008 at 09:33 PM.
 
Old 06-12-2008, 09:50 PM   #6
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
You should be able to unplug the external hd, make sure your cd player is first boot in the bios boot order. Insert your windows cd and reboot the computer. Now the rest comes from memory so I may miss something but after the boot a screen will tell you there is a copy of windows and what do you want to do (installation) or (repair). Select the repair.
yes accept if I unplug the external then the recovery does not detect a hard drive?
 
Old 06-13-2008, 04:57 AM   #7
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I presume your windows is on an internal drive. If you ubuntu will boot from the usb drive in terminal give us the results of 'fdisk -l' without the quotes.
 
Old 06-13-2008, 06:18 AM   #8
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
I presume your windows is on an internal drive. If you ubuntu will boot from the usb drive in terminal give us the results of 'fdisk -l' without the quotes.
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8b21f3d3

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9728 78140128+ 7 HPFS/NTFS

Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x83f820fb

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 90835 729632106 83 Linux
/dev/sdb2 90836 91201 2939895 5 Extended
/dev/sdb5 90836 91201 2939863+ 82 Linux swap / Solaris

with the USB unpluged sda1 only shows up
 
Old 06-13-2008, 06:38 AM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
If you have a good windows xp cd and your cd is first in the boot order you should be able to fix the mbr to boot windows xp. First lets figure out how you will be using this, do you plan on leaving the external drive installed full time or will you be disconnecting it. If you will be disconnecting it or adding more distros I will suggest setting up an indirect method of booting. If this is a permanent setup then we will fix what you should have now.
 
Old 06-13-2008, 07:32 AM   #10
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Larry Webb View Post
If you have a good windows xp cd and your cd is first in the boot order you should be able to fix the mbr to boot windows xp. First lets figure out how you will be using this, do you plan on leaving the external drive installed full time or will you be disconnecting it. If you will be disconnecting it or adding more distros I will suggest setting up an indirect method of booting. If this is a permanent setup then we will fix what you should have now.
the external will not be pluged back in normally - I ran the recovery from my XP disk and did the fixmbr command but I could only access the internal hard drive with the usb pluged in with it unplugged the XP disk could not find any hard drive
 
Old 06-13-2008, 08:43 AM   #11
Duck2006
Member
 
Registered: Sep 2006
Distribution: Ubuntu 8.04 Hardy Heron LST
Posts: 346

Rep: Reputation: 33
Some reading on ubuntu and a usb hard drive that may help.

http://www.pendrivelinux.com/2008/04...drive-install/
 
Old 06-13-2008, 09:29 AM   #12
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
You will not see another drive, XP does not like ubuntu's file system. You need to change the mbr and there are a couple of options. One is to change and boot from the XP boot loader in which I have never done. One other is to put a small partition (200 meg)on sda and install grub root there and then when you unplug your hd you will still be able to boot windows. Another is to get a grub super disk or your ubuntu disk and use it to boot ubuntu everytime you use it and when you unplug your external it still should boot XP. Before making any fast decisions checkout these options and if I can not help, I am sure some one can.
 
Old 06-13-2008, 09:34 AM   #13
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by Duck2006 View Post
Some reading on ubuntu and a usb hard drive that may help.

http://www.pendrivelinux.com/2008/04...drive-install/
Yeah I had initially no problem with booting Ubuntu from the USB Drive it was when I tried to boot my XP from the internal that I had issues - I then preformed fixmbr from the XP CD recovery and now I cant boot to either HD I can only use the Live CD
 
Old 06-13-2008, 09:42 AM   #14
yancek
Senior Member
 
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,820

Rep: Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748Reputation: 748
When you installed Ubuntu you were given an option as to where to install Grub, the mbr or /boot directory. Did you install to the mbr? Of which drive? External where Ubuntu is, or the internal with windows? Your 'fdisk -l' output shows the 80GB drive as first drive Iw/xp)which is where your bootloader needs to be (Grub stage1 if you use Grub). The rest of the Grub bootloader files are in the /boot/grub directory of sdb1. If you have Ubuntu on the external disk and you don't expect to have it plugged in you won't be able to boot with Grub. Grub has several files as part of the bootloader and the only one in the mbr is stage1.
 
Old 06-13-2008, 09:58 AM   #15
Festiva_tunner
LQ Newbie
 
Registered: Jun 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by yancek View Post
When you installed Ubuntu you were given an option as to where to install Grub, the mbr or /boot directory. Did you install to the mbr? Of which drive? External where Ubuntu is, or the internal with windows? Your 'fdisk -l' output shows the 80GB drive as first drive Iw/xp)which is where your bootloader needs to be (Grub stage1 if you use Grub). The rest of the Grub bootloader files are in the /boot/grub directory of sdb1. If you have Ubuntu on the external disk and you don't expect to have it plugged in you won't be able to boot with Grub. Grub has several files as part of the bootloader and the only one in the mbr is stage1.
I selected to put them on the USB after following a trouble shooting guide - is there a way to but them on the internal?
 
  


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
What size USB disk is boot rescue disk? Lufbery Slackware - Installation 11 12-02-2007 02:36 PM
Will this dynex internal usb memory card reader be supported by ubuntu? jilloper Linux - Hardware 1 09-04-2007 02:44 AM
Boot Loader issue : Installed to USB Hard disk :( chittu Linux - Newbie 5 05-15-2007 09:34 AM
Cannot boot already installed ubuntu on newly installed win xp abhi_337 Ubuntu 1 07-13-2006 03:33 AM
Boot disk for F2/F1 installed acidblue Fedora - Installation 1 07-31-2004 02:35 PM


All times are GMT -5. The time now is 10:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration