Diff for /wikisrc/tutorials/how_to_install_netbsd_on_an_apple_macbook_with_core2duo.mdwn between versions 1.2 and 1.3

version 1.2, 2012/02/05 07:14:36 version 1.3, 2012/09/22 16:18:28
Line 77  Now decide which partition you want to b Line 77  Now decide which partition you want to b
   
 (assuming you have an 80Gb disk and you want )  (assuming you have an 80Gb disk and you want )
   
 **sudo diskutil resizeVolume disk0s2 32G "Linux" <name of NetBSD volume> 21G "MS-DOS FAT32" <name of windows volume> 21G**  **sudo diskutil resizeVolume disk0s2 32G "Linux" &lt;name of NetBSD volume&gt; 21G "MS-DOS FAT32" &lt;name of windows volume&gt; 21G**
   
 This operation only changes your partition layout to include a 32GB OS X partition, 21GB Linux one and 21GB Windows partition. We'll change the Linux tag to NetBSD once we get into the NetBSD installer. The diskutil command above was shameless lifted from the Gentoo Linux wiki on installing their distro on the MacBook, but it works.  This operation only changes your partition layout to include a 32GB OS X partition, 21GB Linux one and 21GB Windows partition. We'll change the Linux tag to NetBSD once we get into the NetBSD installer. The diskutil command above was shameless lifted from the Gentoo Linux wiki on installing their distro on the MacBook, but it works.
   
Line 96  as the recent install kernels do, and yo Line 96  as the recent install kernels do, and yo
   
 Fortunately, it is not hard to do the installation by hand. The following example assumes that you are installing from a cd, that you want to have just OS X and NetBSD on the disk (a NetBSD-only installation is easy; other installation media or a third operating system work analogously), that you are installing amd64, and that OS X is already installed on an HFS+ partition. The example uses a 200GB disk, with roughly half for the EFI and HFS+ partitions for rEFIt and OS X, and roughly half for the NetBSD partitions. Please make sure that you understand the starting sectors and sizes in the examples below before you try to mimic them.  Fortunately, it is not hard to do the installation by hand. The following example assumes that you are installing from a cd, that you want to have just OS X and NetBSD on the disk (a NetBSD-only installation is easy; other installation media or a third operating system work analogously), that you are installing amd64, and that OS X is already installed on an HFS+ partition. The example uses a 200GB disk, with roughly half for the EFI and HFS+ partitions for rEFIt and OS X, and roughly half for the NetBSD partitions. Please make sure that you understand the starting sectors and sizes in the examples below before you try to mimic them.
   
 * Install rEFIt as described [[above]].  * Install rEFIt as described above.
 * Decrease the size of the HFS+ partition using the graphical Disk Utility or the command-line diskutil(8) from OS X (the graphical interface is found from Applications -> Utilities -> Disk Utility in recent versions of OS X). It is easiest to leave empty space for NetBSD and not create a partition at this stage.  * Decrease the size of the HFS+ partition using the graphical Disk Utility or the command-line diskutil(8) from OS X (the graphical interface is found from Applications -> Utilities -> Disk Utility in recent versions of OS X). It is easiest to leave empty space for NetBSD and not create a partition at this stage.
 * Boot the installation cd. Exit sysinst (or choose `run /bin/sh').  * Boot the installation cd. Exit sysinst (or choose `run /bin/sh').
 * Create the drvctl(4) device and enough [r]dk(4) devices:   * Create the drvctl(4) device and enough [r]dk(4) devices: 
Line 136  gpt label -i 4 -l "NetBSD-swap" Line 136  gpt label -i 4 -l "NetBSD-swap"
 </code></pre>  </code></pre>
 * Dynamically add the relevant wedges using dkctl(8). The output of gpt add should show you the needed parameters (you can use ffs and swap, respectively, for the types).   * Dynamically add the relevant wedges using dkctl(8). The output of gpt add should show you the needed parameters (you can use ffs and swap, respectively, for the types). 
   
   <pre><code>
     dkctl wd0 delwedge dk2      dkctl wd0 delwedge dk2
     dkctl wd0 addwedge NetBSD-root 195770624 186562702 -t ufs      dkctl wd0 addwedge NetBSD-root 195770624 186562702 -t ufs
     dkctl wd0 addwedge NetBSD-swap 382333327 8388608 -t swap      dkctl wd0 addwedge NetBSD-swap 382333327 8388608 -t swap
   </code></pre>
   
 Alternatively, you can reboot the installation cd, since the GPT partitions will be detected automatically.  Alternatively, you can reboot the installation cd, since the GPT partitions will be detected automatically.
   
Line 226  For 5.0 (and -current 5.99.1 and later), Line 228  For 5.0 (and -current 5.99.1 and later),
   
 #See also  #See also
   
 * [[pkgsrc/How to use pkgsrc on Mac OS X]]  
   
   * [[pkgsrc/How to use pkgsrc on Mac OS X]]

Removed from v.1.2  
changed lines
  Added in v.1.3


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb