View Single Post
Craigular.B
Icrontic Convert
Craigular.B
12 Posts
Finally, good news! IT ALL WORKS!

What I did:

Found out the recognized size of my hard drive (all as one partition) with this:

Code:
diskutil list
Partitioned my disk with this command:
Code:
diskutil resizeVolume disk0s2 165G "Journaled HFS+" "Ubuntu" 12G "MS-DOS FAT32" "Windows XP" 55G
REMINDER: Those values are for a 250GB hard drive recognized as 232.4GB. Change the values to match your drive size and wants.

Reboot with XP disc in, installed to last partition (/dev/sda4). Installed BootCamp in XP, rebooted with Ubuntu 8.04 alternate install i386.

At partitioning, I exited to terminal and ran:
Code:
dd if=/dev/sda of=/tmp/sda.mbr bs=512 count=1
At the partitioner, I chose "Manual", 3rd partition, formatted to journaled ext3, mount point "/". Finished, wrote changes to disk, DID NOT MAKE A SWAP PARTITION.

Continued until GRUB install, ran:
Code:
dd if=/tmp/sda.mbr of=/dev/sda
Installed GRUB to /dev/sda3 (NOT /dev/sda4!)

Finished install and rebooted.

Updated rEFIt, and it all still works!

To make a swap FILE, boot into Ubuntu and do this:

Code:
# become root
sudo su - 
# create a 100 MB blank file
dd if=/dev/zero of=/swapfile bs=1M count=100 
# setup file as swap
mkswap /swapfile 
# enable swapfile
swapon /swapfile 
# show swap
swapon -s
Thanks a bunch for your input and help, I'm happy I'm finally done!

Regards,
Craig