Jump to content

Dual Booting Linux with Bootcamp and lilo


agray
 Share

1 post in this topic

Recommended Posts

I just finished my install on SUSE Linux Enterprise Desktop 10. This should work with either OpenSuse 10.1 or SLED 10. Both have new enough kernels. Do this at your own risk There is potential to create a brick out of your computer.

 

Thanks to the Gentoo forum for putting a lot of these pieces together for me. I found a lot of good stuff. (Miguel Sousa Filipe and others)

 

First You need to partition your drive. Mine is setup with a 70GB OSX partition and blank space for the rest of the drive.

Install OS X. install boot camp and the firmware update.

Insert your Linux CD and reboot.

hold down the alt key.

boot from the CD.

choose installation.

create a custom partition scheme

/dev/sda3 and /dev/sda4 can be used for / and /home. You only get 4 total partitions 1 EFI (do not touch) 1 Mac and two for Linux. No extended partition support. Given that I decided to put my swap space on my filesystem instead of having it on its own.

 

Ignore the GPT messages and the swap messages in the partition scheme.

 

Install Linux. It will error out on the boot loader. Don't worry about this, just ignore it.. It will then reboot.

Next step boot from the SLED/OpenSUSE cd and choose installation. When the installer comes back up do a ctrl-fn-alt delete key.

This will kill X and cause the system to throw an error. Say Ok to the error. The choose installation. Select boot installed system from the menu. Choose /dev/sda3 for your root.

 

When you reboot you will get errors until we are finished. Ignore the iptables errors and other stuff. (it is due to kernel version mismatch on the cd and the system)

 

This will allow your installation to complete with normal options.

When the install is complete boot off the CD with rescue mode.

 

when the rescue mode starts start parted

type in unit s

then type print

write down all of the start and size info (this is critical do not make a mistake or typo)

then type in sfdisk -uS -f /dev/sda

for part1 enter: 1 409639 ee

for part2 enter: 409640 <size of OS X Partition> af

for part3 enter: <start> <size of part> 83 *

for part4 enter: <start> <size of part4> 83

 

The 83 is the filesystem type for Linux the af is apple and the ee is efi.

 

When this finishes it will give you an error about the size of the disk. Say yes.

Reboot once more with the SLED CD inserted. Boot up like you did before killing the install alt-fn-ctrl-delete and choose to boot the installed system.

Logon as root in the gui.

open a terminal and check to be sure that when you type fdisk -l /dev/sda you get something that looks similar.

agraymac:/home/agray # fdisk -l /dev/sda

 

Disk /dev/sda: 100.0 GB, 100030242816 bytes

255 heads, 63 sectors/track, 12161 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

 

Device Boot Start End Blocks Id System

/dev/sda1 1 26 204819+ ee EFI GPT

Partition 1 does not end on cylinder boundary.

/dev/sda2 26 7842 62783488 af Unknown

/dev/sda3 * 7842 9149 10493002+ 83 Linux

/dev/sda4 9149 12162 24204457 83 Linux

agraymac:/home/agray #

 

If you only see one partition you did not do the sfdisk stuff properly.

open yast2

choose system bootloader

wipe the boot info out. Delete all menu entries.

go to loader installation. Select LILO and /dev/sda

it should create new entries in section management.

If it does not go to other and propose new configuration.

Click finish.

 

go to a prompt and type in lilo -v

 

if it does not error out your are good.

 

now time to get the graphics card working properly.

install kernel-sources gcc make

then reboot. When the system reboots hold down the alt key.

Select the hard drive windows. It should boot up nicely.

When they system finishes booting logon as root.

Download the ati linux driver from the ati website. It is under the drivers and utilities

 

type the following:

 

sh ati-driver-installer-8.24.8-x86.run --buildpkg SuSE/SUSE101-IA32

rpm -Uvh fglrx_6_9_0_SUSE101-8.24.8-1.i386.rpm

SaX2 -m 0=fglrx

 

restart X

 

You are all set.

I still have to install the keyboard mapping and setup xgl (it froze on me). But other than that it you should be setup.

 

Adam Gray

 

Here are a couple pics of the finished setup.

 

 

post-35780-1146381976_thumb.jpg post-35780-1146381988_thumb.jpg post-35780-1146382003_thumb.jpg

post-35780-1146382015_thumb.jpg post-35780-1146382030_thumb.jpg post-35780-1146382042_thumb.jpg

post-35780-1146382055_thumb.jpg post-35780-1146382064_thumb.jpg post-35780-1146382083_thumb.jpg

post-35780-1146382099_thumb.jpg post-35780-1146382116_thumb.jpg post-35780-1146382128_thumb.jpg

Link to comment
Share on other sites

 Share

×
×
  • Create New...