LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 01-02-2011, 06:43 PM   #1
dasoberdick
Member
 
Registered: Aug 2004
Location: Michigan
Distribution: redhat 9.0
Posts: 99

Rep: Reputation: 15
triple boot Ubuntu/Windows7/WindowsXP problem


I have been running dual boot Windows XP and Slackware for years but I recently changed things up a bit a "broke" something.

Windows XP is on it's own 250GB HDD. I installed Windows 7 on a seperate 74GB HDD but it appears that it installed the bootloader over top of the Windows XP bootloader on the 250GB HDD. Both OS's booted fine and that point. Then I partitioned the 250GB HDD into 150GB and 100GB leaving me 100GB to install Ubuntu. I told Ubuntu to stick it's bootloader on the 250GB HDD thinking everything would work like magic although there appears to have been a little bit too much magic. Normally Slackware will allow you to manually edit your Lilo config file during installation and add all your OS's but this didn't happen with the Ubuntu install.

After the install there were 5 options in the bootloader menu (at this point I am not even sure what bootloader it was using). Ubuntu, Ubuntu ("safe mode?"), memtest, more memtest, and Windows 7 (bootloader? it wasn't just called windows 7 but something like Windows 7 bootloader, I have only booted once and I am writing this from Ubuntu right now). I tried selecting Windows 7 at that point hoping that it would bring me to the Windows bootloader which would allow me to select from Windows 7 and Windows XP but the screen just went blank for a second or two and then sent me back to the same screen I was just at.

So a quick Google of Ubuntu bootloader led me to believe I was using Grub and I needed to look for the /boot/grub/menu.lst file and edit that but the file wasn't there. Then I tried running grub but I was informed it wasn't even installed. I thought maybe I would have better luck with Lilo but that wasn't installed either. So I installed Lilo and ran liloconfig but I was told that fstab gave a UUID that led Lilo to belive I wasn't using an ordinary block device and I should go fix that and come back afterwards. In fact the only thing in fstab was the ext4 partition with Ubuntu and the swap partition even though I have 4 sata drives installed with 6 separate partitions.

At this point I am pretty lost. Most of my Linux work is done in Parallels now on a Macbook so I haven't had to mess with the bootloader in years and when I did it was all on Slackware which to me is set up quite a bit differently than Ubuntu. I would be pretty sick if I screwed up and took out 3 OS's with it.

Any help would be much appreciated. I am particularly curious to know how Grub will handle booting both Windows OS's when Windows appears to be doing it with one bootloader.
 
Old 01-02-2011, 06:59 PM   #2
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
From Ubuntu
Grub2(grub-pc) is simpler
It also doesn't have grub menu.list.
If you have sudo priviledges and grub2
"sudo os-prober"
"sudo update-grub"

Last edited by EDDY1; 01-02-2011 at 07:01 PM.
 
Old 01-02-2011, 07:14 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Well that wasn't a very helpful post EDDY1 - obviously grub2 was already installed and had done the os-prober.
The fact that it isn't correct is unsurprising - for either Ubuntu or grub2.

Quote:
I installed Windows 7 on a seperate 74GB HDD but it appears that it installed the bootloader over top of the Windows XP bootloader on the 250GB HDD. Both OS's booted fine and that point.
That is working as "designed" for Windows - laughingly called "dual boot". Later versions (since Vista , maybe Win2k) replace the prior version - in the partition of the prior release. So you continue to boot that. With both grub and lilo you merely chainload to that and let the Windoze loader handle things.
Looks like grub2 is trying to chainload to the wrong partition.

Do you have a boot-able system at all - and if so, what is in the MBR, lilo or grub ?.

Last edited by syg00; 01-02-2011 at 07:15 PM. Reason: typo
 
Old 01-02-2011, 07:28 PM   #4
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,841

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
This led me to believe he had lilo:

Quote:
So a quick Google of Ubuntu bootloader led me to believe I was using Grub and I needed to look for the /boot/grub/menu.lst file and edit that but the file wasn't there. Then I tried running grub but I was informed it wasn't even installed. I thought maybe I would have better luck with Lilo but that wasn't installed either. So I installed Lilo and ran liloconfig but I was told that fstab gave a UUID that led Lilo to belive I wasn't using an ordinary block device and I should go fix that and come back afterwards.
This is reason I suggested grub2.

Quote:
I thought maybe I would have better luck with Lilo but that wasn't installed either.
 
Old 01-02-2011, 07:31 PM   #5
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
I am curious, is your Slackware on a separate hd or on the hd with XP?

Last edited by Larry Webb; 01-02-2011 at 08:45 PM.
 
Old 01-02-2011, 08:16 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,348

Rep: Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589Reputation: 1589
To get windows 7 to boot will need to add an entry similar to this to your /etc/grub.d/40_custom file and rerun sudo update-grub. This is what my entry looks like.

Quote:
menuentry "Windows xp (loader) (on /dev/sda2)"{
insmod ntfs
set root='(hd0,2)'
chainloader +1
}
Windows 7 usually creates two partitions during installation. The first partition is the boot partition and the second is the system partition. My windows paritions are on the second and third partitions of my first hard drive. I don't know which drive/partitions windows7 is on in your setup so /dev/sda2 maybe /dev/sdb1 and (hd0,2) maybe (hd1,1) or some other variation.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[Triple Boot] Problem with Windows 7, Ubuntu 10.04 Development, and Slackware 13 zine92Linux Linux - General 9 06-06-2010 06:46 AM
dual boot problem: windows7 and ubuntu baxzius Linux - Newbie 2 02-03-2010 04:33 PM
Grub problem 13 triple boot Linux machine Fedora, Ubuntu & Arch kmacphail Linux - General 2 06-21-2009 04:48 PM
XP, Ubuntu, FreeBSD triple boot problem mistertylersmith Linux - Software 8 04-27-2009 06:13 PM
Triple boot problem XP - Suse - Ubuntu eeenigma Linux - Distributions 5 07-10-2006 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:09 AM.

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