Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Main Support Categories > Apple Users
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Apple Users
Discussions for users who are using Apple Intel or PPC based systems with Ubuntu.

 
Thread Tools Display Modes
Old June 27th, 2009   #1
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Question refit for triple boot - remove legacy os from boot menu

Hello,
I've successfuly installed a triple boot of OSX, WinXP and Ubuntu Jaunty on my Mac Pro (the OSX is on it's own HD in the first drive bay, and the XP and Ubuntu are on a drive in the last bay)
When I boot up using rEFIt, I get all three options, and they all boot fine, but I also get 2 extra options to "boot legacy OS from HD" which both boot XP when I select them. It's not a big deal, as I am able to use all three OSs I wanted to, but I'd love to get rid of those other two options in the boot menu since they are redundant.

Any ideas would be appreciated
thanks

- I've discovered that when removing the storage drive from bay 3, one of the legacy OS options disappears. The other one appears to be coming from the HD in bay one that also has OSX on it. Is it possible that there is something in the formatting of these drives that somehow looks like an operating system to rEFIt even though none exists?

Last edited by drewjurecka; June 27th, 2009 at 06:01 PM.. Reason: more info
drewjurecka is offline   Reply With Quote
Old June 27th, 2009   #2
Richardcavell
A Carafe of Ubuntu
 
Join Date: May 2009
Location: Melbourne, Australia
Beans: 105
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to Richardcavell Send a message via Skype™ to Richardcavell
Re: refit for triple boot - remove legacy os from boot menu

Hi.

Can you tell us what partitions you have on each of the drives? And do any of those partitions have a /boot directory?

It seems to me that you might have a boot loader such as GRUB installed on some spare partitions.

Richard
Richardcavell is offline   Reply With Quote
Old June 28th, 2009   #3
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Re: refit for triple boot - remove legacy os from boot menu

is there a terminal command I can use to output a comprehensive list of drive partitions?
drewjurecka is offline   Reply With Quote
Old June 28th, 2009   #4
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Re: refit for triple boot - remove legacy os from boot menu

okay, here's what I found in gparted:

drive in bay 1: /dev/sda 596.17 GB (with OSX installed on it - this drive does seem to contain one of the legacy os rEFIt is picking up)
Partition: /dev/sda1
File System: fat32
Label: EFI
Size: 200mb
Used: 18.1mb
Flags: boot

Partition: /dev/sda2
File System: hfs+
Label: OSX
Size: 595.73gb
Used: 364.00gb

and there's 253.51 MB of unallocated space

The other drive that it seems to think there's a legacy os on is /dev/sdc (bay 3 - no OS installed on it. It's just used as a storage drive)

Partition: /dev/sdc1
File System: fat32
Label: EFI
Size: 200mb
Used: 3.09mb
Flags: boot

Partition: /dev/sdc2
File System: hfs+
Label: Storage
Size: 931.19gb
Used: 318.96gb

and there's 125.53 MB of unallocated space

is this enough info?

is the problem caused by the EFI partition? if so, can I safely delete it from the storage drive without screwing up the drive?

Thanks!
drewjurecka is offline   Reply With Quote
Old June 28th, 2009   #5
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Re: refit for triple boot - remove legacy os from boot menu

I can't seem to find a /boot folder on my OSX disk.

Last edited by drewjurecka; June 28th, 2009 at 03:48 AM..
drewjurecka is offline   Reply With Quote
Old June 28th, 2009   #6
Richardcavell
A Carafe of Ubuntu
 
Join Date: May 2009
Location: Melbourne, Australia
Beans: 105
Ubuntu 9.04 Jaunty Jackalope
Send a message via MSN to Richardcavell Send a message via Skype™ to Richardcavell
Re: refit for triple boot - remove legacy os from boot menu

Drewjurecka,

Can you go into OS X and get a Terminal and type "bless --info", and post the output here?

With the configuration that you've just listed, what exactly do you see on the rEFIt boot screen? Do you have a drive in bay 2? Where are XP and Ubuntu installed?

Richard
Richardcavell is offline   Reply With Quote
Old June 29th, 2009   #7
_mario_
Gee! These Aren't Roasted!
 
_mario_'s Avatar
 
Join Date: Jul 2008
Beans: 208
Ubuntu 9.10 Karmic Koala
Re: refit for triple boot - remove legacy os from boot menu

Quote:
Originally Posted by drewjurecka View Post
..., but I also get 2 extra options to "boot legacy OS from HD" which both boot XP when I select them. It's not a big deal, as I am able to use all three OSs I wanted to, but I'd love to get rid of those other two options in the boot menu since they are redundant.

Any ideas would be appreciated
looks like windows XP and/or linux installed boot code into the disks' MBR. this is not needed as long as all OSes have their boot code on their partition (recommended, and seems to work). so just clear the MBRs' boot codes by running:
Code:
dd if=/dev/zero of=/dev/sda bs=440 count=1
from within OSX or Ubuntu.

Quote:
Originally Posted by drewjurecka View Post
is the problem caused by the EFI partition? if so, can I safely delete it from the storage drive without screwing up the drive?
no. yes.

ciao,
Mario

Last edited by _mario_; June 29th, 2009 at 09:55 AM..
_mario_ is offline   Reply With Quote
Old June 30th, 2009   #8
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Re: refit for triple boot - remove legacy os from boot menu

Here's the output of the "bless --info" terminal command:

finderinfo[0]: 149 => Blessed System Folder is /System/Library/CoreServices
finderinfo[1]: 549303 => Blessed System File is /System/Library/CoreServices/boot.efi
finderinfo[2]: 0 => Open-folder linked list empty
finderinfo[3]: 0 => No OS 9 + X blessed 9 folder
finderinfo[4]: 0 => Unused field unset
finderinfo[5]: 149 => OS X blessed folder is /System/Library/CoreServices
64-bit VSDB volume id: 0x347ADA2BF9D63B0A

I have 4 drives installed:
have figured out which ones cause rEFIt to see Legacy OSs by starting up the computer with various drives removed until I figured out which ones made a difference:

*Drive in Bay 1: OSX, also causes one Legacy OS to appear on rEFIt menu
Drive in Bay 2: storage, seems to have no effect on rEFIt menu
*Drive in Bay 3: storage, seems to cause one Legacy OS to appear in rEFIt menu
Drive in Bay 4: 2 partitions, one contains Ubuntu Linux, the other XP

Thanks
Drew
drewjurecka is offline   Reply With Quote
Old July 1st, 2009   #9
drewjurecka
5 Cups of Ubuntu
 
Join Date: May 2009
Location: Toronto, Canada
Beans: 16
Ubuntu 9.04 Jaunty Jackalope
Re: refit for triple boot - remove legacy os from boot menu

Hi Mario,
When I ran the script you sent me, I got the following message: "dd: /dev/sda: Operation not supported"

what was supposed to happen and how can I fix it?

thanks
Drew
drewjurecka is offline   Reply With Quote
Old July 3rd, 2009   #10
_mario_
Gee! These Aren't Roasted!
 
_mario_'s Avatar
 
Join Date: Jul 2008
Beans: 208
Ubuntu 9.10 Karmic Koala
Re: refit for triple boot - remove legacy os from boot menu

Quote:
Originally Posted by drewjurecka View Post
Hi Mario,
When I ran the script you sent me, I got the following message: "dd: /dev/sda: Operation not supported"
what was supposed to happen and how can I fix it?
you'll need to run it using sudo:
Code:
sudo dd if=/dev/zero of=/dev/sda bs=440 count=1
Quote:
Originally Posted by drewjurecka View Post
is there some way I can check to see if any unnecessary boot codes are installed?
the only way i know of is reading the boot code to a file:
Code:
sudo dd if=/dev/sda of=some-file bs=440 count=1
and using a hex editor to check whether the content is something other than completely zero.

ciao,
Mario
_mario_ is offline   Reply With Quote

Bookmarks

Tags
boot menu, legacy, osx, refit, triple-boot

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 01:00 AM.


vBulletin ©2000 - 2010, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry