LinuxQuestions.org
Help answer threads with 0 replies.
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 07-21-2010, 05:33 PM   #1
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Rep: Reputation: 0
Unhappy Can't start the box unless external hard drive attached !


I had installed Ubuntu 10.04 onto an external hard drive connected by USB to my laptop:
  • sdd partition
Windoze still resides on the box's internal hard drive:
  • sda2 partition
I also partitioned the internal hard drive so that I have a repository where my documents etc can be accessed by either linux or windoze:
  • sda3 partition (FAT32)
I'm assuming that Grub is on the external drive somewhere - as is probably now the Windoze MBR.

I'd like to be able to give my wife the ability to start the box (and boot into Windoze) when the external drive is not attached (so that she doesn't have to take the latter with her when she needs to be mobile with the computer).

What do I need to do to move grub and the MBR back onto the laptop's internal drive
? Or, I suppose: What do I need to do to obtain the functionality that I'm looking for?

I'm getting somewhat more comfortable with the command line but, I still need a bit of hand-holding
 
Old 07-21-2010, 06:23 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,842

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
IMHO best to keep things separate.
From Ubuntu, run "grub-install /dev/sdb" (presuming the external is sdb) - that will make the external bootable in it's own right. Next pull it out and boot the Windows CD/DVD. Get into recovery console and depending on Windoze version run:
fixmbr (XP)
bootrec.exe /fixmbr (Vista, Win7)
 
Old 07-22-2010, 05:22 PM   #3
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
GRUB

Hi.. to find where GRUB is now type at a prompt GRUB and observe this
GRUB> then type find /boot/grub/stage1

GRUB> setup (hd0) sets it up in the MBR

GRUB> setup (hd0,*) whatever partition

Don,t forget that GRUB counts from 0

Probably good to type grub man or is it man grub try and see.
Alternativly use the GRUB that you can find on the UBCD or most distros and install it...my last box had six GRUB's on it,I,m getting the hang of it so I only have two for learning,legacy 0.97 and 0.98 0.97 is the easiest to configure.,0.98 is a bit more difficult to set up.
Hope this helps a bit...
 
Old 07-22-2010, 08:50 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,388

Rep: Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199Reputation: 2199
What you maybe should have done was to set usb as the first boot option choice in bios. It may have shown up as usb or a real hard drive. Most show up as hard drive. Then you could have installed linux to the usb and left the original system for wife. To select linux change boot order.

You can fix it by either making it as above or simply leave the boot order as internal and edit what ever loader (on internal) to see both but default to xp.
 
Old 07-29-2010, 11:59 AM   #5
heviiguy
LQ Newbie
 
Registered: Jul 2010
Distribution: Ubuntu 10.04
Posts: 19

Original Poster
Rep: Reputation: 0
I'm a rude Newbie; I didn't thank everybody for their contributions (I've been away for over a week).

... Thank-you very much. It's great to have such a fantastic community of generous experts to call upon when one finds oneself stuck up to the arm pits in the mire!
 
  


Reply

Tags
boot, cant, external, grub, hdd, mbr


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
I installed Ubuntu to a external hard drive, now I can't start windows without it. garryonapc Linux - Desktop 10 03-16-2010 05:30 AM
can't boot if external usb drive not attached SKelem Linux - Hardware 4 01-23-2009 12:09 AM
ubuntu installed on external hard drive, can't startup without external hard drive. Vanostaajen Linux - Software 23 01-20-2009 10:59 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
External storage for Linux/Windows: Samba or USB 2.0 attached Hard Drive? SparceMatrix Linux - Hardware 1 02-04-2005 03:33 PM


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