Linux - Laptop and NetbookHaving 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).
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.
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!
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.
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.
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 Fdisk.com 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, http://www.supergrubdisk.org/ 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.