LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-19-2007, 03:15 PM   #1
dun3141
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Rep: Reputation: 0
Argh! Dual boot Vista / Ubuntu


I'm trying to set up a dual boot. I have Windows Vista installed, and last night I installed Ubuntu 7.10 (at least I think it's 7.10).

I have 3 hard disks. My main disk has the Vista partition, and then I created another one for Ubuntu. So after Ubuntu installed, I rebooted, and it said "No operating system found". I coudln't find a way around this, so finally had to pop in the Vista CD and repair the MBR using the recovery console, just so that something would load up.

Now, on startup, it goes straight to Windows (as expected at this point). My next idea was to simply reinstall grub, and then configure it. Everything I've read says to do something like the following:

Code:
sudo grub
find /boot/grub/stage1
root (hd1,1)
setup (hd0)
quit
So I put in the live CD and did just that. It said it was successful, so I rebooted my computer.

That didn't work. It still goes straight to Windows. I'm at my wit's end here, and if someone could offer some advice, I would greatly appreciate it!

I have a feeling it either has to do with how my partitions are set up, or with the fact that I'm using the live-cd rather than the actual installation.


Thanks in advance.
 
Old 10-19-2007, 03:21 PM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,908

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Start with this:
1) boot the Ubuntu liveCD.
2) get the output of 'fdisk -l /dev/hdx' or 'fdisk -l /dev/sdx' where x represents the disk you think you installed Ubuntu.
3) copy /etc/fstab (the part about the partitions and their mount points.
4) mount the Ubuntu partition (if fdisk says it's there) and copy /boot/grub/menu.lst (grub.conf on some distros).

Report your findings here. We might be able to work it out from that info.
 
Old 10-19-2007, 05:00 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Much better to use "fdisk -l" - leave the device off.
The more data the better.
 
Old 10-19-2007, 05:26 PM   #4
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
If you are using the livecd, you may be looking at a bug. I found that there was simply no way that I could get it to install GRUB on my system. Fortunately, I already had a GRUB and was able to boot into Ubuntu by adding the entry manually. Of course, if you have multiple disks, it might be interesting to put Ubuntu on a different one. That will save you the hassle of recreating the windows MBR if anything goes wrong.
 
Old 10-19-2007, 07:33 PM   #5
dun3141
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks for your help, guys, but I think this problem may have resolved itself almost on its own.

I read a lot of other websites, and I found out how to mount my installation from the livecd. So I did that and ran the grub installation script. It worked, and I saw the grub screen when I rebooted. Problem is, all of the ubuntu listings said "no such partition" whereas all the windows listings said "can't find NTLDR". So I rebuilt the MBR from the Vista CD again.

Then I tried downloading EasyBCD, and adding ubuntu to the listing that way. Same problem occured - it said "no such partition" (but this time I could still boot up windows). So I played around a bit more, and decided to add a listing for every single partition EasyBCD detected. I had 6 total. I just kept rebooting and selecting the next OS in line. Finally one of them worked. I don't know how or why.

The one that worked was for "hd1,2" which is the partition that showed up as "Extended". I assumed I should point it at my main 10GB linux partition, but I guess not.

Somehow it works now. I am curious as to why it works with a seemingly wrong partition, but right now I'm just happy that I can boot into either OS.
 
Old 10-19-2007, 07:46 PM   #6
dun3141
LQ Newbie
 
Registered: Oct 2007
Posts: 3

Original Poster
Rep: Reputation: 0
One more interesting thing to note:

First of all, the way it works is the Windows bootloader comes up, and asks me if I want to load Vista or ubuntu. Then if I select ubuntu, grub comes up and asks which specific thing I want to boot. So it's quite a chain of events here.

When I select Ubuntu from the Vista Bootloader, it spouts off some text, and then it says it can't boot from hard disk, and it tells me to insert a system disc and then press a key. Naturally, I pressed the key anyway, because I don't have a system disk to insert. Then grub came up, and I booted normally. Something's weird here.
 
Old 10-19-2007, 08:07 PM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
There have been some people having issues with EasyBCD, but I found it o.k.

To get the bootsector record built correctly, you need to install grub to a partition, not the MBR. This is what the Vista loader needs.
And yes, you will always have to load the grub menu after that - you can set the timeout short, and hide it, if you really want.

Let's see that "sudo fdisk -l" (needs sudo, else you get no output - blame the Ubuntu devs).
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu install/dual-boot Vista SuperSenshi100 Linux - Newbie 2 08-25-2007 08:56 PM
dual boot: ubuntu, vista danfou Ubuntu 9 07-07-2007 09:48 PM
Vista and Ubuntu dual boot glore2002 Linux - Software 13 05-08-2007 09:02 AM
how to dual boot vista and ubuntu? bojox Linux - Newbie 2 01-28-2007 01:10 AM
Dual-Boot: Ubuntu now, Vista Later? leiavoia Ubuntu 1 08-27-2006 09:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:26 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
Open Source Consulting | Domain Registration