PDA

View Full Version : [SOLVED] 3 os



lloux
August 2nd, 2010, 04:48 PM
I have three OS on my system (Windows 7, Ubuntu 10.4 & Mac OS X retail), I installed Mac and Ubuntu 10.4 on my second hard drive after removing my windows 7 drive first. I can boot to windows 7 automatically and if I want to get to grub to select my Ubuntu or Mac installation, I have to select my second drive at boot up with F12

Afterward I updated grub, however grub sees the windows 7 bootloader but it won’t boot it.

Is there a way to fix this? Do I have to install grub to /dev/sda2?

Here is my HDD setup:
HDD1: Model: ATA ST31500341AS (scsi)
Disk /dev/sda: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 17.2GB 17.2GB primary ntfs
2 17.2GB 17.3GB 105MB primary ntfs boot
3 17.3GB 1500GB 1483GB primary ntfs

HDD2: Model: ATA MDT MD5000AAKS-0 (scsi)
Disk /dev/sdb: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 20.5kB 210MB 210MB fat32 EFI System Partition boot
2 210MB 300GB 300GB hfs+ Snow Leopard
3 300GB 300GB 1049kB bios_grub
4 300GB 492GB 192GB ext4
5 492GB 500GB 8154MB linux-swap(v1)

According to grub, it's installed on /dev/sdb4

Thanks

lloux
August 3rd, 2010, 06:07 PM
Attached is my setup after running the script.
If I decide to install grub2 to windows MBR, do I just run the following code from the live CD?
sudo fdisk –l
sudo mount /dev/sdb4 /mnt (where Grub is installed)
sudo grub-install –root-directory=/mnt/ /dev/sda or should it be sda2?
Thanks

Mark Phelps
August 3rd, 2010, 08:33 PM
It's not a guarantee, but I've seen it often enough to say that if you install GRUB to the Win7 volume, there's a very good chance it will no longer boot.

If Win7 launches when you boot from that drive, it's not a problem with the Win7 boot loader -- which IS the problem in nearly all of these cases.

Sorry, but have no experience with OSX, so can't tell you what else to check.

lloux
August 4th, 2010, 03:16 PM
Thank you for the reply
I solved my problem by following the instructions in this link:
https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/604743
Now I can boot up all three OS’s with Grub2