Macbook pro triple-boot

From CCRMA Wiki

Revision as of 14:40, 11 March 2008 by Rob (Talk | contribs)
Jump to: navigation, search

Windows Vista 64-bit version can use EFI, which could make the whole partitioning scheme easier?

giving up on Vista 64-bit now, damn non-free Vista... XP/MBR it is

  • start with new factory-fresh Macbook Pro (15", 2.6ghz, 200GB 7200rpm HDD, 4GB RAM, NVIDIA GeForce 8600M GT/512MB, OS X 10.5.2)
  • made bootable rEFIt 0.11 disk
  • Install Boot-camp; Run the Boot Camp Assistant and create the Windows XP driver cd.
* Go into Applications/Utilities
* Open Boot Camp Assistant. Print out the Instructions.
* Partition the drive by using the graphical slider in the Assistant and Accept the changes. Insert the XP disk. Let it reboot your system. It will load up into the XP installer. Install XP. After it is all installed and setup and you are in Windows, put in your Leopard disk and the drivers will install for all the devices( mouse, mic, iSight, video, etc). You are done.

BootCampInstallationSetupGuide.pdf

  • "diskutil list"
robert-hamiltons-macbook-pro:Desktop rob$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *186.3 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Macintosh HD            186.0 Gi   disk0s2
186.3 (total) = disk0s2 146G "MS-DOS FAT32" "Linux" 20G "MS-DOS FAT32" "Windows" 20G
sudo diskutil resizeVolume disk0s2 146.3G "Linux" "Linux" 20G "MS-DOS FAT32" "Windows" 20G
  • enable root user now using "Directory Utility" ("Edit" menu > "Enable Root User...") in Applications/Utilities
  • NOTE: some guides here say type "Linux" "Linux"... but I get error saying "Linux does not appear to be a valid file system fomat. Valid filesystems: "Journaled HFS+" "HFS+" "Case-sensitive HFS+" "Case-sensitive Journaled HFS+" "HFS" "MS-DOS FAT16" "MS-DOS FAT32" "MS-DOS FAT12" "MS-DOS" "UDF" "UFS" "ZFS"
sh-3.2# sudo diskutil resizeVolume disk0s2 146G "MS-DOS FAT32" "Linux" 20G "MS-DOS FAT32" "Windows" 20G
Started resizing on disk disk0s2 Macintosh HD
Verifying 
Resizing Volume 
Adjusting Partitions
Formatting new partitions
Formatting disk0s4 as MS-DOS (FAT32) with name Windows
Formatting disk0s3 as MS-DOS (FAT32) with name Linux
[ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] 
Finished resizing on disk disk0
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *186.3 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Macintosh HD            145.9 Gi   disk0s2
   3:       Microsoft Basic Data LINUX                   20.0 Gi    disk0s3
   4:       Microsoft Basic Data WINDOWS                 20.1 Gi    disk0s4


  • rebooted
robert-hamiltons-macbook-pro:~ rob$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *186.3 Gi   disk0
  1:                        EFI                         200.0 Mi   disk0s1
  2:                  Apple_HFS Macintosh HD            145.9 Gi   disk0s2
  3:       Microsoft Basic Data LINUX                   20.0 Gi    disk0s3
  4:       Microsoft Basic Data WINDOWS                 20.1 Gi    disk0s4


  • Windows XP install begins
  • "To set up Windows XP now, press ENTER"
190780 MB Disk 0 at Id 0 on bus 0 on atapi [MBR]
    F: Partition1 [Unknown]                200 MB  <     200 MB free>
    G: Partition2 [Unknown]             149376 MB  <    149376 MB free>
       Unpartitioned space                 128 MB
    C: Partition3 <LINUX>  [FAT32]       20480 MB  < 20469 MB free>
    D: Partition4 <WINDOWS> [FAT32]      20598 MB  < 20587 MB free>
  • here I chose "D:" for my windows Install... but then ran into problems... probably my first of many mistakes... Windows seems to be having problems... drink a scotch and see if it works better...
  • enabled rEFIt... installed by double-click... then "cd /efi/refit"... "./enable.sh"
robert-hamiltons-macbook-pro:refit rob$ ./enable.sh
+ sudo bless --folder /efi/refit --file /efi/refit/refit.efi --labelfile /efi/refit/refit.vollabel
Password:


  • poked around online and read a bit
  • booted back into OS X and used Disk Utility to wipe the Windows partition... lets try again...
  • re-installing Win XP... this time will try C: drive... strange because I read it has to be last partition and I thought the D: was last... maybe my windows will be named Linux and my Linux will be named Windows
While attempting to manually partition my disk for tripple boot (J-HFS+, J-HFS+, FAT-32), I ran into a situation where the windows installer would see the target partition as type "FAT-32" instead of "unknown", and so would not offer to reformat it prior to installation. Consequently, the windows partition was not bootable, and I received "Disk error" any time I tried to boot from it.
One solution is to nuke the first bit of the windows partition with zeros, destroying the filesystem metadata. This causes the Windows installer to see the partition as type "unknown", and it will then dutifuly offer to reformat it for you. This can be accomplished with the following, where rdisk0s3 is your windows partition (typically this would be either rdisk0s3 or rdisk0s4)
dd if=/dev/zero of=/dev/rdisk0s4 bs=1m count=100
Another solution that worked for me is to specify an invalid filesystem type for the windows partition when using diskutil resizeVolume. This allocates the space, but the MBR doesn't flag it as FAT-32, so the Windows installer again offers to reformat it at install time. 
  • ok, so resized Linux and Windows partitions to Mac OS Extended (Journaled) using Disk Utility in OS X
robert-hamiltons-macbook-pro:~ rob$ diskutil list
/dev/disk0
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *186.3 Gi   disk0
   1:                        EFI                         200.0 Mi   disk0s1
   2:                  Apple_HFS Macintosh HD            145.9 Gi   disk0s2
   3:                  Apple_HFS LINUX                   19.9 Gi    disk0s3
   4:                  Apple_HFS WINDOWS                 20.0 Gi    disk0s4
  • try back on D: drive again... now Windows should
  • ah, but don't want that, just want to use "diskutil resizeVolume"... so maybe this won't work quite yet...
  • back to this format:
robert-hamiltons-macbook-pro:~ rob$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *186.3 Gi   disk0
  1:                        EFI                         200.0 Mi   disk0s1
  2:                  Apple_HFS Macintosh HD            145.9 Gi   disk0s2
  3:                  Apple_HFS LINUX                   19.9 Gi    disk0s3
  4:       Microsoft Basic Data WINDOWS                 20.0 Gi    disk0s4


Disk Utility Tool 
Usage:  diskutil resizeVolume MountPoint|DiskIdentifier|DeviceNode size
       [part1Format part1Name part1Size part2Format part2Name part2Size
        part3Format part3Name part3Size ...]
Non-destructively resize a disk.  You may increase or decrease its size.
When decreasing size, you may optionally specify new partitions to create
to fill the newly-freed space.  Specify these new partitions as in the
diskutil partitionDisk command.  Ownership of the affected disk is required.
Valid sizes are a floating-point number with a suffix of B(ytes), S(512-byte-
blocks), K(ilobytes), M(egabytes), G(igabytes), T(erabytes), P(etabytes), or
%(percentage of the total size of the whole disk containing the volume).
Example: 10G (10 gigabytes), 4.23T (4.23 terabytes), 5M (5 megabytes).
resizeVolume is only supported on a Journaled HFS+ filesystem.
A size of "limits" will print the valid range for the current filesystem.
Examples: diskutil resizeVolume disk1s3 limits
         diskutil resizeVolume disk1s3 60G
         diskutil resizeVolume disk1s3 60G JHFS+ HDX1 1G MS-DOS HDX2 1G
Valid filesystems: "Journaled HFS+" "HFS+" "Case-sensitive HFS+" "Case-sensitive Journaled HFS+" "HFS" "MS-DOS FAT16" "MS-DOS FAT32" "MS-DOS FAT12" "MS-DOS" "UDF" "UFS" "ZFS" 

robert-hamiltons-macbook-pro:~ rob$ diskutil resizeVolume disk0s4 20G JHFS+
  • but this gives me: "Volume format does not support resizing"
  • ok... its late and i'm dead... will try this tomorrow: http://endlessparadigm.com/forum/showthread.php?tid=4842 part 3... installing Fedora then resizing Windows partition there to "Unformatted" so that windows can be installed there on last partition... so annoying... so very cold...


Let's try again

  • time to clear out those partitions and try again:
sh-3.2# diskutil eraseVolume JHFS+ "Linux" disk0s3
Started erase on disk disk0s3 LINUX
Erasing 
Mounting disk
[ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] 
Finished erase on disk disk0s3 Linux
sh-3.2# diskutil eraseVolume JHFS+ "Windows" disk0s4
Started erase on disk disk0s4 WINDOWS
Erasing 
Mounting disk
[ + 0%..10%..20%..30%..40%..50%..60%..70%..80%..90%..100% ] 
Finished erase on disk disk0s4 Windows
  • Reboot with WinXP cd...
  • Window's can't install on C: so delete partition in Win XP setup to unpartitioned space, then try again
Create partition of size (in MB): 190772
C: Partition1 [New (Raw)]     190772 MB (190771 MB free)
   Unpartitioned space            8 MB

Now Win wants to format the partition using NTFS... no... bad

Day 2: Take 2

  • wipe drive
  • install OS X
  • resize and create partitions in Disk Utility this time in OS X
robs-macbook-pro:~ rob$ diskutil list
/dev/disk0
  #:                       TYPE NAME                    SIZE       IDENTIFIER
  0:      GUID_partition_scheme                        *186.3 Gi   disk0
  1:                        EFI                         200.0 Mi   disk0s1
  2:                  Apple_HFS Macintosh HD            145.3 Gi   disk0s2
  3:                  Apple_HFS Linux                   19.7 Gi    disk0s3
  4:                  Apple_HFS Windows                 20.6 Gi    disk0s4
robs-macbook-pro:~ rob$ diskutil resizeVolume disk0s4 20.6G "MS-DOS FAT32"



http://www.macgeekery.com/node/520/print

http://ubuntuforums.org/archive/index.php/t-397652.html

http://wiki.onmac.net/index.php/Triple_Boot_via_BootCamp

tripleboot fed8 vista osx

About Swap Partition and Swap Files

Apple Forum topic

Visa in Parallels

Personal tools