Dinh:Genome Miner Upgrades: Difference between revisions
Jump to navigation
Jump to search
>Dinh |
>Dinh mNo edit summary |
||
Line 1: | Line 1: | ||
===Make sure reFit or reFind is installed on Os X.=== | ===Make sure reFit or reFind is installed on Os X.=== | ||
* Download reFind by Rod Smith | * Download reFind by Rod Smith | ||
sudo ./install.sh --notesp | sudo ./install.sh --notesp | ||
=== Install GPT fdisk (gdisk=== | |||
* gdisk should be installed on Os X. If not, download and install version 7.0, newer versions will not work on Os X 10.5. | |||
===Make a UBUNTU USB efi bootable drive=== | ===Make a UBUNTU USB efi bootable drive=== | ||
*make sure USB is properly formatted. In Os X, open Disk Utilities and click on the USB stick volume, and then Information to see the disk number. | *make sure USB is properly formatted. In Os X, open Disk Utilities and click on the USB stick volume, and then Information to see the disk number. | ||
Line 25: | Line 26: | ||
* I tried installation with the new HDD mounted on the external drive, however, this didn't work well. The best thing to do was to remove all bootable or current boot drive and attach only the new HDD (with bootable Os X) to the Mac Pro. | * I tried installation with the new HDD mounted on the external drive, however, this didn't work well. The best thing to do was to remove all bootable or current boot drive and attach only the new HDD (with bootable Os X) to the Mac Pro. | ||
===Installing UBUNTU=== | ===Installing UBUNTU=== | ||
* | * NOTE: The following instructions copies Rod Smith's instructions here: http://www.rodsbooks.com/ubuntu-efi/. | ||
* Boot into Os X and find out using disk utility what the disk number for the new HDD is. | |||
* Open Terminal program and type: | |||
sudo gdisk /dev/diskN | |||
* Type p to display partition table. Verify that it's the same one shown by Disk Utility. (Note that Disk Utility hides the EFI System Partition (ESP), which is normally the first partition on the disk.) | |||
* If you created a Linux partition, type d in gdisk to delete it. Enter its number when prompted. (If you created multiple partitions for Linux with the intention of using them as you created them, you can skip this step.) | |||
* In gdisk, type n to create a new partition. Give it a number of 99, hit the Enter key to use the default starting sector (the program may tell you it's changed the sector value, but you can ignore this message), '''+128M''' as the ending sector, and a hex code of '''ef02'''. This creates a BIOS Boot Partition of 128 MiB at the start of the largest block of free space on the disk. This partition will be used by the initial Ubuntu GRUB installation, but you can delete it once you've got native EFI booting working. 128 MiB is actually much bigger than is required for this purpose, but OS X likes to see gaps between partitions when it installs or upgrades the OS, so when you eventually delete this partition, it will leave the type of gap that OS X likes to see. (If you created all your Linux partitions in OS X's Disk Utility, you can put the BIOS Boot Partition in one of the gaps that Disk Utility leaves, but you may need to accept a default value or use +1M rather than enter +128M as the end value.) | |||
* Type p again to see the results | |||
* Type w to save changes and type y to confirm this choice. | |||
* Insert USB boot drive for Ubuntu into the computer. | |||
* Restart Mac Pro and wait for it to boot to reFind screen. | |||
* Select "boot from bootX64.efi on UBUNTU" or the option that you can identify as your boot drive. | |||
* After booting into Ubuntu, select Install Ubuntu and proceed with a normal Ubuntu installation, except as noted in the next few steps. | |||
* When the Installation Type dialog box appears, select "Something Else." | |||
*You will initially see a partitioning screen with your original OS X partitions, a biosgrub partition (what Ubuntu's partitioner calls the BIOS Boot Partition), and free space at the end of the disk. Select the free space and click Add to begin adding partitions. | |||
*Create partitions for your Ubuntu installation in the free space near the end of the disk. (If you did this in OS X's Disk Utility, you should modify each partition by selecting it and clicking Change, then clicking the Format option and setting an appropriate filesystem and mount point.) | |||
* Make '''/''', '''swap''', and '''/home''' partitions. | |||
** '''swap''' should be created first, should be 1-2X RAM size, should be primary, and select Linux swap or swap space for type. | |||
** '''/''' should be the root partition, should be ~100 GB in size, should be logical and ext4 type. | |||
** '''/home''' should be the rest of the drive, should be logical and ext4 type. | |||
*Be sure that the "Device for boot loader installation" option is set to correct drive that (it will include a complete name for your hard disk |
Revision as of 21:26, 24 December 2014
Make sure reFit or reFind is installed on Os X.
- Download reFind by Rod Smith
sudo ./install.sh --notesp
Install GPT fdisk (gdisk
- gdisk should be installed on Os X. If not, download and install version 7.0, newer versions will not work on Os X 10.5.
Make a UBUNTU USB efi bootable drive
- make sure USB is properly formatted. In Os X, open Disk Utilities and click on the USB stick volume, and then Information to see the disk number.
- the Partition Map Scheme should be "Master Boot Record" and the format should be FAT32.
- if not formatted correctly, click the drive, then click Partition. Make 1 large partition with "MS-DOS (FAT)" format and click Options at the bottom to choose "Master Boot Record"
- Name the partition "UBUNTU"
- Next, download the ISO-2-USB EFI-Booter for Mac 0.01 beta
- Next, download the iso file of a recent version of Ubuntu Desktop Edition 64 bit.
- Create the following directories on USB drive: efi and efi/boot
- Copy the bootX64.efi from "ISO-2-USB EFI-Booter for Mac 0.01 beta" into efi/boot on the USB drive.
- Copy Ubuntu image into efi/boot and rename it to "boot.iso"
- There should be two files on USB drive now: bootX64.efi and boot.iso, both are in efi/boot.
- Reboot computer and in the reFit menu, should be able to select "boot from bootX64.efi on UBUNTU".
IMPORTANT: clone boot drive!!!
- Partition the boot drive using Os X for the MacHD or Os X partition using Disk Utility. Make this partition only 500 GB.
- Use "Restore" function of Disk Utility to make an extract & bootable copy of the MacHD.
- After it is finished, boot into the Linux safe mode and run dd to clone the Linux boot partition.
- NOTES: after cloning, the drive should be bootable onto Os X on it own, however, there may be missing EFI booting configuration in the Linux boot partition (if it was mounted on the EFI partition of the drive, it might not get copied over).
- Since we do not need to upgrade Os X, I repeated the process of cloning Os X onto a new HDD.
IMPORTANT: install the new HDD to be the root drive into the mac pro
- I tried installation with the new HDD mounted on the external drive, however, this didn't work well. The best thing to do was to remove all bootable or current boot drive and attach only the new HDD (with bootable Os X) to the Mac Pro.
Installing UBUNTU
- NOTE: The following instructions copies Rod Smith's instructions here: http://www.rodsbooks.com/ubuntu-efi/.
- Boot into Os X and find out using disk utility what the disk number for the new HDD is.
- Open Terminal program and type:
sudo gdisk /dev/diskN
- Type p to display partition table. Verify that it's the same one shown by Disk Utility. (Note that Disk Utility hides the EFI System Partition (ESP), which is normally the first partition on the disk.)
- If you created a Linux partition, type d in gdisk to delete it. Enter its number when prompted. (If you created multiple partitions for Linux with the intention of using them as you created them, you can skip this step.)
- In gdisk, type n to create a new partition. Give it a number of 99, hit the Enter key to use the default starting sector (the program may tell you it's changed the sector value, but you can ignore this message), +128M as the ending sector, and a hex code of ef02. This creates a BIOS Boot Partition of 128 MiB at the start of the largest block of free space on the disk. This partition will be used by the initial Ubuntu GRUB installation, but you can delete it once you've got native EFI booting working. 128 MiB is actually much bigger than is required for this purpose, but OS X likes to see gaps between partitions when it installs or upgrades the OS, so when you eventually delete this partition, it will leave the type of gap that OS X likes to see. (If you created all your Linux partitions in OS X's Disk Utility, you can put the BIOS Boot Partition in one of the gaps that Disk Utility leaves, but you may need to accept a default value or use +1M rather than enter +128M as the end value.)
- Type p again to see the results
- Type w to save changes and type y to confirm this choice.
- Insert USB boot drive for Ubuntu into the computer.
- Restart Mac Pro and wait for it to boot to reFind screen.
- Select "boot from bootX64.efi on UBUNTU" or the option that you can identify as your boot drive.
- After booting into Ubuntu, select Install Ubuntu and proceed with a normal Ubuntu installation, except as noted in the next few steps.
- When the Installation Type dialog box appears, select "Something Else."
- You will initially see a partitioning screen with your original OS X partitions, a biosgrub partition (what Ubuntu's partitioner calls the BIOS Boot Partition), and free space at the end of the disk. Select the free space and click Add to begin adding partitions.
- Create partitions for your Ubuntu installation in the free space near the end of the disk. (If you did this in OS X's Disk Utility, you should modify each partition by selecting it and clicking Change, then clicking the Format option and setting an appropriate filesystem and mount point.)
- Make /, swap, and /home partitions.
- swap should be created first, should be 1-2X RAM size, should be primary, and select Linux swap or swap space for type.
- / should be the root partition, should be ~100 GB in size, should be logical and ext4 type.
- /home should be the rest of the drive, should be logical and ext4 type.
- Be sure that the "Device for boot loader installation" option is set to correct drive that (it will include a complete name for your hard disk