Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).


  Search this Thread
Old 07-29-2008, 09:12 PM   #1
LQ Newbie
Registered: Jul 2008
Posts: 4

Rep: Reputation: 0
MBR Problem: Ubuntu installed to a FLASH DRIVE

I installed UBUNTU 8 to an external drive... a Memorex FLASH drive, not a HD. I do not recall being asked by the install whether or not I wanted to install GRUB to the HD MBR... it just did it automatically! Now I MUST have the flash drive inserted at bootup or grub just hangs.

I'm well acquainted with deleting/resizing/moving partititions (Partition Magic) and have NOT done that yet to my flash drive pending advice about MBR restoration.

I gather from other posts that I should boot to XP (with the flash drive inserted...see above), then use the "run" (or old DOS like window) and enter fdisk /mbr to restore the MBR. I think that's right, right?

My question: If I do that, does XP keep all my other settings, partitions, registry, etc. intact? I don't want to have to restore the whole installation from the original discs and start all over!

Please advise then: 1. is the command correct? "fdisk /mbr" w/o the quotes, and... 2. will that leave the XP installation "as is" without destroying any files or settings?

If this works, I'd still like to re-install to a flash drive without altering XP's MBR. I'd like to ONLY run GRUB's menu of boot choices when the flash drive is present at bootup, and have the whole GRUB/UBUNTU OS disappear when the flash drive is NOT present at bootup, so I guess that's question #3.

Thank you all for your help... buncha' very helpful generous folks on this site, and it's much appreciated!

Old 07-29-2008, 10:19 PM   #2
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,286

Rep: Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384Reputation: 1384
I haven't installed Ubuntu for quite a while but, usually with any Linux install you get a choice about installing to mbr. Not giving you the choice would be an un-Linux like thing to do. That being said, install to mbr is the default.

According to Microsoft, the fdisk /mbr command will only work on the first drive so if you only have one drive, you should be alright. You can also use your xp install CD, you should have an option for Recovery/Restore. Choose that option and enter command 'fixmbr', if that doesn't work you can try 'fixboot'. Any of these commands SHOULD simply restore your windows mbr without changing anything else, and this will simply overwrite the GRUB part of your bootloader and revert to windows ntldr.

If you want to be able to boot Ubuntu from xp when you have the disk attached you can do that by modifying the boot.ini file or you can change the boot order in BIOS when booting to the flash drive.

Last edited by yancek; 07-29-2008 at 10:20 PM.
Old 07-29-2008, 10:34 PM   #3
Registered: Apr 2003
Location: Wisconsin
Distribution: Switched to regualr Ubuntu, because I don't like KDE4, at all. Looks like vista on crack.....
Posts: 675

Rep: Reputation: 31
I would use this.....

To fix your mbr to XP only, then change the bios to boot from the flash drive first. That should work exactly as you want it too, as long as your bios allows you to boot from a flash drive.

Let us know how it goes.....

Old 08-07-2008, 09:21 PM   #4
LQ Newbie
Registered: Jul 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks to all... Problem solved.

Hi, all..

Well, fdisk /mbr didn't work. Booted to XP thru GRUB, both regular boot and "safe mode", went into command prompt (I use the windowed version (like a DOS window), not the Run popup in the Start menu) and wasn't allowed. First, there was no or .exe in the usual spots... found it in a Partition Magic folder, but system rejected it. Probably, I later figgered out, 'cause it's a laptop and something's different, as you said, about the disk. There's only one physical disk, but multiple partitions. It seems that C: isn't the first parttition?

Anyway, saved my ass, but I had to make the partition Active. I tried so many things that didn't work, so I can't detail in what order I did what. Musta' rebooted 30 or 40 times.

Bottom line: I'm back to normal (for me, hehehe) and will later try to reinstall Ubuntu to that flash drive without screwing up my HDD's MBR.

Thank you all for your help.



grub, mbr, ubuntu, xp

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
Ubuntu OS installed on USB Flash Drive BOOT PROBLEM mogrady Ubuntu 0 07-31-2008 10:20 PM
installing the boatloader on a flash drive instead of mbr safrout Linux - General 9 05-14-2007 06:15 PM
Installed FC5> Wrote over Ubuntu MBR: How do i add Ubuntu Partition to Grub Loader Free_beer Ubuntu 4 10-02-2006 06:11 PM
Installed USB 512MB flash drive(Permission Problem) Balarabay1 SUSE / openSUSE 17 04-12-2006 08:06 AM
Grub in MBR no Linux installed can't access hard drive bookmonger Linux - Software 13 02-14-2006 07:06 AM > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 07:31 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration