UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi. I decided that I wanted to "play" with Ubuntu and install it on an external hard drive. Unfortunately, the installation process overwrote the MBR on my internal hard drive and now I cannot boot into Windows XP, which was loaded on my internal hard drive. I had Ubuntu partition the external hard drive thinking it would only install there. Does grub store the MBR anywhere before overwriting the MBR or is there a way to get my original MBR back? Thanks!!
Use your xp Installation CD, enter "R" (for recovery?) in setup, enter FIXMBR, if that doesn't work enter "FIXBOOT"
The above should restore the xp mbr on the internal. Make sure you are pointing to the correct drive.
Default for Ubuntu is to install to mbr of first drive in boot priority. Haven't installed Ubuntu recently but most distributions have an 'Advanced' tab during the bootloader installation and if you click on that, it gives an option to install to partition rather than mbr. You will then have to install Grub to the mbr of your external drive. Suggest you get partition information and post here so someone can give you command to use to do that. To get partition info, open a terminal and enter: sudo fdisk - (that's a lower case Letter L).
Last edited by yancek; 03-17-2009 at 10:30 PM.
Reason: had wrong web site
After you fix Windows MBR you can reinstall grub to the root partition of Ubuntu on external drive from the Ubuntu live CD like this: http://users.bigpond.net.au/hermanzo...b_with_Live_CD
First, run the command "sudo fdisk -l" from the live CD to identify the Ubuntu root partition on the external drive. If you only have 1 internal drive then Ubuntu's root partition will most likely be /dev/sdb1. So set the root command in that tutorial to (hd1,0) instead of (hd0,1) as it is in that tutorial. Then the setup command will be (hd1). Then type quit.
Now set the external hard drive to be the first boot device in the computer's BIOS. You will have the option to boot Ubuntu or Windows without altering the Windows MBR.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.