If you want to erase the drive on a Mac before installing Yosemite, or start over at any time, you can use a dedicated installer drive to boot that Mac, erase its drive, and then install the OS clean and restore whatever data you need from a backup. To bring up the Terminal window on Ubuntu Linux, press the WIN (or SUPER) key to bring up Dash and type in Terminal.I recommend making one for Yosemite, on an external hard drive or USB thumb drive, for many of the same reasons I recommend making a bootable Mavericks installer drive: If you want to install Yosemite on multiple Macs, using a bootable installer drive can be more convenient than downloading or copying the entire installer to each computer. A Terminal window is a way to enter commands on your computer using only text, rather than clicking through a graphic interface. This article will help you to set up a Python virtual environment on Mac OS or.On OS X, selecting Applications Utilities Terminal will bring up a Terminal window. Modern, downloadable versions of OS X create a recovery partition on your drive, but it’s always a smart idea to make your own bootable installer drive too.When debugging shell scripts, it can help to run python -c import sys.Keep the installer from being deletedLike all recent versions of OS X, Yosemite is distributed through the Mac App Store. 1.8.1 comes w/OS X 10.1.2 As with previous versions of OS X, it’s not difficult to create a bootable installer drive from the Yosemite installer, though the processes have changed slightly since Mavericks. Chmod u+x path-to-script.Ok, the main thing required to make the AppleScripts work as-is is to have AppleScript 1.8+, which adds the 'do shell script' command. You can get the path to the script by right-clicking it, holding down the Option key, and selecting the copy path option from the context menu. Replace ‘path to script’ with the actual path to the script you just created. Make sure the Preferences for TextEdit are set correctly.Open Terminal and run the following command.
![]() (Follow this tutorial to properly format the drive.) Your OS X user account must also have administrator privileges.Using the createinstallmedia command in Terminal Here are the required steps: That drive must also be formatted with a GUID Partition Table. The Disk Utility-via-Terminal approach is for the shell junkies out there.Whichever method you use, you need a Mac-formatted drive (a hard drive, solid-state drive, thumb drive, or USB stick) that’s big enough to hold the installer and all its data—I recommend at least an 8GB flash drive. (Note that the createinstallmedia tool doesn’t work under OS X 10.6 Snow Leopard—it requires OS X 10.7 Lion or later.)The Disk Utility method is the way to go for people who are more comfortable in the Finder (though it does require a couple Terminal commands), and it works under Snow Leopard, Lion, Mountain Lion, Mavericks, and Yosemite. If you don’t, you’ll have to redownload the installer from the Mac App Store before you can create a bootable installer drive.Create the Yosemite install drive: The optionsI’ve come up with three ways you can create a bootable OS X install drive for the Yosemite: using the installer’s built-in createinstallmedia tool using Disk Utility or performing the Disk Utility procedure using Terminal.The createinstallmedia method is the easiest if you’re at all comfortable using Terminal, it’s the approach that I recommend you try first. If you plan to use that installer on other Macs, or—in this case—to create a bootable drive, be sure to copy the installer to another drive, or at least move it out of the Applications folder, before you install. ![]() Wait until you see the text Copy Complete. The program then tells you it’s copying the installer files, making the disk bootable, and copying boot files. The Terminal window displays the progress of the process, in a very Terminal sort of way, by displaying a textual representation of a progress bar: Erasing Disk: 0%… 10 percent…20 percent… and so on. Here are the steps for using it to create your installer drive. Option 2: Use Disk UtilityYou’ll find Disk Utility, a handy app that ships with OS X, in /Applications/Utilities. If you like, you can rename the drive from its default name of Install OS X Yosemite, though I think it’s kind of a catchy name. ![]() Open the Terminal app (in /Application/Utilities), then type (or copy and paste) the following command, and then press Return:Defaults write com.apple.finder AppleShowAllFiles 1 & killall Finder(This tells the Finder to show hidden files—we’ll re-hide such files later.) Several of the files you’ll need to work with are hidden in the Finder, and you need to make them visible. That volume will appear in the Finder as OS X Install ESD open it to view its contents. Double-click InstallESD.dmg in the Finder to mount its volume. You may see a couple partitions under the drive: one named EFI and another with the name you see for the drive in the Finder. In Disk Utility, find this destination drive in the left sidebar. Connect to your Mac the properly formatted hard drive or flash drive you want to use for your bootable Yosemite installer. Drag the BaseSystem.dmg icon into the Source field on the right (if it isn’t already there). Select BaseSystem.dmg in Disk Utility’s sidebar, and then click the Restore button in the main part of the window. Wait for the restore procedure to finish, which should take just a few minutes. Click Restore, and then click Erase in the dialog box that appears if prompted, enter an admin-level username and password. Warning: This step will erase the destination drive or partition, so make sure that it doesn’t contain any valuable data. (If the destination drive has additional partitions, just drag the partition you want to use as your bootable installer volume.) Drag that folder into the Installation folder on your destination drive. Open the mounted OS X Install ESD volume, and you’ll see a folder called Packages. You’ll see an alias called Packages. Inside that drive, open the System folder, and then open the Installation folder. Eclipse android emulator for macYou’ll likely want to re-hide invisible files in the Finder. Copy these files to the root (top) level of your install drive (OS X Base System, not into the System or Installation folder). Also in the mounted OS X Install ESD volume, you’ll find files named BaseSystem.chunklist and BaseSystem.dmg. Create A Terminal Script For Os X Download The YosemiteRename the drive to Untitled. Connect to your Mac a properly formatted 8GB (or larger) drive. Download the Yosemite installer from the Mac App Store and make sure it’s in your main Applications folder (/Applications)—it’s called Install OS X Yosemite.app. Option 3: Use TerminalIf you’re a Terminal jockey, you likely know that most of Disk Utility’s features can be accessed using shell commands—which means that you can perform the Disk Utility procedure using a few commands in Terminal. If you like, you can rename the drive from OS X Base System to something more descriptive, such as Yosemite Installer.You can use Disk Utility’s Restore screen to create a bootable Yosemite installer drive. Enter your admin-level account password when prompted.Sudo hdiutil attach /Applications/Install OS X Yosemite.app/Contents/SharedSupport/InstallESD.dmg sudo asr restore -source /Volumes/OS X Install ESD/BaseSystem.dmg -target /Volumes/Untitled -erase -format HFS+(During this step, you’ll be prompted to confirm that you want to erase the contents of Untitled. Make sure each command finishes—in other words, you see a command prompt—before running the next command. Open Terminal and type (or copy and paste) the following commands, one by one, pressing return after each to run it.
0 Comments
Leave a Reply. |
AuthorDawn ArchivesCategories |