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

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Other Community Discussions > Tutorials & Tips
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Tutorials & Tips
The place to find Ubuntu related Tips & Tricks.

 
Thread Tools Display Modes
Old August 9th, 2006   #1
Entity
A Carafe of Ubuntu
 
Join Date: Mar 2005
Location: Paris
Beans: 123
The Feisty Fawn Testing
Talking HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

We will delete Mac OS X as we don't use it often enough and install Ubuntu its partitions in order to take advantage of the entire disk's space. This is not a multi boot setup.

You will be able to boot Mac OS X and/or Windows XP from an external hard drive (with a GUID Partition Table) in order to update your hardware firmwares, etc. (Not covered here for the moment)

You will need :

- MacBook Mac OS X Install Disc 1 (Might not be necessary after all, see hereunder for more details)
- Ubuntu 6.06 LTS (aka Dapper Drake)
- The MacBook itself (duh!)
- A patched version of the GRUB boot loader (provided here)

***

1) First you will boot using the MacBook Mac OS X Install Disc 1. Press C on system startup.

You will then launch the Disk Utility and select you hard drive. You will click on the Options button and change GPT (GUID Partition Table) to the MS-DOS partition table. We save the change (We don't care about the partition setup for now, the default is OK).

Update: This first step might not be mandatory as you can convert the partition table to MD-DOS type from gparted using the Ubuntu Dapper Drake LiveCD. It would need to be tested. If it doesn't work restart from step #1.

2) Restart the computer and now you will boot using the Ubuntu LiveCD. Press C on system startup.

In Ubuntu, simply launch the Installer as you would do in a normal installation. Partition your drive as you wish and there is no need to keep your HFS volume.

Since we change the partition table to an ms-dos type we won't get any error and the installation process will complete normaly (GREAT!)

3) When finished, set the active partition. You can use parted :

Code:
sudo parted

print (no flag?)
set (enter the partition number)
boot
on
print (check the boot flag!)
quit
4) Now you need to install the patched version of GRUB or else the boot process will hang on stage2. Let's chroot our root partition.

Code:
sudo mkdir /mnt/ubuntu
sudo mount /dev/sda1 /mnt/ubuntu/
sudo mount -t proc none /mnt/ubuntu/proc
sudo mount -o bind /dev /mnt/ubuntu/dev
sudo chroot /mnt/ubuntu
Now install the package after unzipping it.

Code:
unzip grub_0.97-1ubuntu10_i386.zip
dpkg -i grub_0.97-1ubuntu10_i386.deb
Just to be sure...

Code:
grub-install /dev/sda
Voilà! You can now restart the computer and wait for GRUB to do its job. The only difference you will note, is that you will not see the apple logo on startup anymore but a folder with a question mark instead. I would love to replace it by the Ubuntu logo!

FYI, I guess it would be possible to install Mac OS X on an external drive that has a GPT partition table but I can't test it tonight!

Also note, the patch was taken from there. And I applied this patch to the package myself using the Ubuntu source package and this simple but great howto. It was my first time doing so! Use at your own risk.
Attached Files
File Type: zip grub_0.97-1ubuntu10_i386.zip (354.0 KB, 783 views)

Last edited by Entity; August 15th, 2006 at 05:50 AM..
Entity is offline   Reply With Quote
Old August 10th, 2006   #2
Jukey
Just Give Me the Beans!
 
Jukey's Avatar
 
Join Date: Jan 2006
Beans: 63
Send a message via Skype™ to Jukey
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

Sounds really cool but its destructive to OSX. That's fine if you only want ubutnu but the OSX environment is also really cool.
Jukey is offline   Reply With Quote
Old August 11th, 2006   #3
incubii
5 Cups of Ubuntu
 
incubii's Avatar
 
Join Date: Apr 2005
Location: Sydney
Beans: 26
Hardy Heron (Ubuntu Development)
Wont let me download the file

For some reason i cant download that file at all. Keeps saying im not logged in. :/
incubii is offline   Reply With Quote
Old August 14th, 2006   #4
incubii
5 Cups of Ubuntu
 
incubii's Avatar
 
Join Date: Apr 2005
Location: Sydney
Beans: 26
Hardy Heron (Ubuntu Development)
Re: Wont let me download the file

Quote:
Originally Posted by incubii View Post
For some reason i cant download that file at all. Keeps saying im not logged in. :/
Never mind i got the file.

Also i followed your guide and it work perfectly! Hopefulyl they will add official support to ubuntu for intel macs.

I have it running on an Intel MacMini 1.666ghz
incubii is offline   Reply With Quote
Old August 15th, 2006   #5
Entity
A Carafe of Ubuntu
 
Join Date: Mar 2005
Location: Paris
Beans: 123
The Feisty Fawn Testing
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

Quote:
Originally Posted by Jukey View Post
Sounds really cool but its destructive to OSX. That's fine if you only want ubutnu but the OSX environment is also really cool.
Yes, OS X is cool. But I don't use it on a daily basis, actually after playing with it a few hours, I never booted it again.

You would still be able to boot Mac OS X and/or Windows XP from an external hard drive that has GUID Partition Table (Partionned with the OS X Disk Utility) in order to update your hardware firmwares, etc.

That is what I will do because I need those GB!
Entity is offline   Reply With Quote
Old August 24th, 2006   #6
jedsen
5 Cups of Ubuntu
 
jedsen's Avatar
 
Join Date: Mar 2006
Beans: 27
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

Edit: nevermind, you have to click on the "partition" tab, and then change the options before you partition it.

I don't know what you mean when you say in step 1 to click on the "options button" on the Apple Disk Utility. I have no option button.

Thanks, and good riddance to OS X!

Last edited by jedsen; August 24th, 2006 at 08:51 PM..
jedsen is offline   Reply With Quote
Old August 27th, 2006   #7
blot0
Spilled the Beans
 
Join Date: May 2006
Beans: 9
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

i manged to get through the whole walk thru, everything happened as it should (after hunting for the right places).
reboot.. (sorry dont have it infront of me right now.. so not 100% sure)

comes up with something about starting stage 1.5

then it comes up with GRUB installing please wait (i think thats it)
and does not move any further, was like that for a good 10min, had to leave so not sure if its still like that now. but it shouldnt take that long should it?

only thing i could think of is i ran the .deb file (because i couldnt find where it was in command line) but that came up ok, nice little installer program, and seemed to install it ok.

Last edited by blot0; August 27th, 2006 at 12:03 AM..
blot0 is offline   Reply With Quote
Old August 27th, 2006   #8
Entity
A Carafe of Ubuntu
 
Join Date: Mar 2005
Location: Paris
Beans: 123
The Feisty Fawn Testing
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

Quote:
Originally Posted by blot0 View Post
i manged to get through the whole walk thru, everything happened as it should (after hunting for the right places).
reboot.. (sorry dont have it infront of me right now.. so not 100% sure)

comes up with something about starting stage 1.5

then it comes up with GRUB installing please wait (i think thats it)
and does not move any further, was like that for a good 10min, had to leave so not sure if its still like that now. but it shouldnt take that long should it?

only thing i could think of is i ran the .deb file (because i couldnt find where it was in command line) but that came up ok, nice little installer program, and seemed to install it ok.
You have to upgrade grub or else you get this problem. What you need to do now is to boot from Live CD, then chroot your installed system and upgrade grub.
Entity is offline   Reply With Quote
Old August 27th, 2006   #9
blot0
Spilled the Beans
 
Join Date: May 2006
Beans: 9
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

yeah.. i figured out what i did wrong.
i wasnt chrooted into the hdd system when i did it.
did it over again when i got home and all works good now...
except when i reboot.. if i reboot. when it starts up again it just has a black screen rather then coming up with the grub stuff and loading linux.
i have to shutdown and then boot up for it to work.

bit strange, but not to much of a hassle, boots rather quickly.
just need to figure out how to get wifi working now.
i run a wpa network so its a little trickyer i'm reading.
and people having issues with wifi in the latest 686 kernel with SMP
blot0 is offline   Reply With Quote
Old August 28th, 2006   #10
mdmunoz
5 Cups of Ubuntu
 
Join Date: Aug 2006
Beans: 22
Re: HOWTO: Install Ubuntu on a MacBook and use GRUB to boot.

I apologize for my ignorance, but could someone explain how exactly I would "convert the partition table to MD-DOS type from gparted using the Ubuntu Dapper Drake LiveCD"?

I would really appreciate it, as I am now surviving solely on the Live CD.

On an unrelated note, it seems the installation error only occurs if I've updated GRUB. Of course not updating it makes the installation a moot point...
mdmunoz is offline   Reply With Quote

Bookmarks

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 10:24 AM.


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