Ubuntu This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
04-20-2007, 05:02 PM
|
#1
|
Member
Registered: Jan 2006
Location: North Carolina
Distribution: Ubuntu
Posts: 51
Rep:
|
Grub problem with Ubuntu 7.04
I have a minor problem that, at first, I thought was a disaster. I have an HP nc6400 Core 2 Duo laptop with an 80GB internal drive with my IT corporate WinXP load on it. I added another 80GB drive in the Multibay II where the DVD is normally and have the DVD connected via USB. I partitioned the MBII drive into 40GB for a non-IT WinXP and the remaining 40GB for Linux. I was looking for the Linux that would support the most feature out of the box. CentOS 5 didn't work with the display, but I could get GRUB only to mess with the MBII drive and leave my IT load alone.
I got Ubuntu 7.04 to boot and work with everything on the laptop so I decided to install it. I was careful to manually partition the 40GB on the MBII drive as the only place to load Ubuntu. It installed fine except that the boot record was modified on the internal IT drive leaving the menu.lst file on the Ubuntu partition. As long as I have the internal drive boot first, I see the Grub boot menu and can pick Ubuntu, or either of the 2 WinXP loads.
The problem is that I want to pull out the MBII drive sometimes and just use the internal drive for business that only needs my WinXP IT load. I can't do that because the menu.lst is not present if the MBII drive is pulled.
I'd like to fix the internal drive back to normal where WinXP boots with no options. Then have the MBII drive with the boot record modified so it uses Grub when it's booted. That way the IT load is the default boot unless the MBII drive is inserted, then I get the Grub menu just for the Ubuntu and the non-WinXP options.
Can one of you smart folks tell me how to pull myself out of this one??
Jim A.
|
|
|
04-20-2007, 07:32 PM
|
#2
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,378
|
I did up a nice long response to this, but thinking about it, the easiest is to set the BIOS boot order as "USB (DVD) > MBII > Internal disk", and do the install again. It'll see the MBII as disk zero, and all should just fall into place.
You could just try doing grub, but fstab will be wrong unless you use UUID.
After you're happy everything works as advertised, change the BIOS boot order back, and boot the XP CD - hit <r> to get into recovery console, and run fixmbr.
Reboot.
|
|
|
04-21-2007, 09:35 AM
|
#3
|
Member
Registered: Jan 2006
Location: North Carolina
Distribution: Ubuntu
Posts: 51
Original Poster
Rep:
|
Thanks,
Thanks for your help. I got the MBR fixed, but I think this is going to require some more experimenting.
Jim A
|
|
|
04-21-2007, 08:49 PM
|
#4
|
Senior Member
Registered: Mar 2002
Location: Oklahoma
Posts: 1,154
Rep: 
|
i hate UUID, i think Ubuntu screwed up implementing that in their distro...
|
|
|
04-22-2007, 05:09 AM
|
#5
|
Senior Member
Registered: Aug 2003
Location: Indpls
Distribution: Laptops: Debian Jessie XFCE, NAS: OpenMediaVault 3.0
Posts: 1,355
Rep:
|
Quote:
Originally Posted by jfaberna
Thanks for your help. I got the MBR fixed, but I think this is going to require some more experimenting.
Jim A
|
Since it appears you can boot from your USB DVD drive, install grub to a blank CDR/DVDR(or if you have an internal floppy drive on your laptop, you could do it to floppy). This will keep you from messing around with the *company's* OS and mbr.
If you want to boot Linux, you simply hook up your Linux MBII disk, boot the grub disk you made (floppy or CDR), choose Linux, and run it. In the event you don't need access to grub, and want to go "straight to Windows".. You simply don't boot the disk, and thus Grub never gets loaded.
Only issue I could see doing it this way, is if you have a kernel upgrade, you'll have to manually point to it on your disk.
http://www.linuxjournal.com/article/4622
IGF
|
|
|
04-23-2007, 05:19 PM
|
#6
|
Member
Registered: Jan 2006
Location: North Carolina
Distribution: Ubuntu
Posts: 51
Original Poster
Rep:
|
another solution
This morning I tried another way. I pulled my internal drive and installed Ubuntu 7.04 from the USB DVD to the Mutlibay II 80GB drive in the "normal DVD position".
Once that was complete, I reinstalled my internal drive. I have the internal drive boot first for normal use, and use the F9 boot selector when I want Ubuntu.
Jim A
|
|
|
All times are GMT -5. The time now is 02:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|