Format: Use the dropdown menu to select one of the standard drive formats to use for the disk image. If you plan to use this image with PCs, select either MS-DOS (FAT) or ExFAT. If you’re only going to use this encrypted image with a Mac, Mac OS Extended (Journaled) is a good choice. $ diskutil list /dev/disk0 (internal, physical ): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *121.3 GB disk0 1: EFI EFI 209.7 MB disk0s1 2: Apple_CoreStorage XXX 120.5 GB disk0s2 3: Apple_Boot Recovery HD 650.0 MB disk0s3 [. ] /dev/disk2 (external, physical ): #: TYPE NAME SIZE IDENTIFIER 0: GUID_partition_scheme *2.0 TB disk2 1: EFI EFI 209.7 MB disk2s1 2: Apple_HFS one 1.8 TB disk2s2 3: Apple_HFS two 249.7 GB disk2s3 This command will be your friend, a lifesaver. Learn to love it. It shows the disks attached to the computer. You’re most interested in the value in the IDENTIFIER column, but the other columns will help you figure out what’s what. In this case, we’ve got two physical disks, one internal disk and one external. Do not touch the internal disk, this is your hard drive. To partition a disk, use the partitionDisk subcommand. The help is actually rather good. To view which filesystems you can create, you’ll also need the listFilesystems subcommand. $ diskutil partitionDisk -h [. ] $ diskutil listFilesystems [. I could not quickly find my product disk from a few years ago so to stay in business I downloaded this software with essentially the same features as 2013 with the added benefit that I have to renew every year. Nothing in the instructions posted said it would do this. Of course, now I am incentivized to find that old disk. ] Briefly, you need: • The disk identifier (you can also use the mount point instead) • The number of partitions (optional, will be inferred otherwise - a good sanity check) • The partition scheme (optional, will be GUID/GPT by default) • Next come the partition parameters • Partition format, from diskutil listFilesystems • Partition name • Partition size • repeat For partition size, you can use decimal numbers with the suffixes B, K, M, G, T, P (bytes, kilobytes, megabytes, gigabytes, terabytes or petabytes),% of the disk size, or R for remainder. These examples show you how to create one, two or three partitions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2019
Categories |