~ hiroki.yagita(HirokinoMacBook-Pro) ✅
% hdiutil attach -nomount ram://2097152 3 19 月 14:01 JST
/dev/disk2
~ hiroki.yagita(HirokinoMacBook-Pro) ✅
% diskutil partitionDisk /dev/disk2 1 apfs test 1G 3 19 月 14:02 JST
Started partitioning on disk2
Unmounting disk
Creating the partition map
Waiting for partitions to activate
Formatting disk2s1 as APFS with name test
Mounting disk
Finished partitioning on disk2
/dev/disk2 (disk image):
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme +1.1 GB disk2
1: Apple_APFS Container disk3 1.1 GB disk2s1
~ hiroki.yagita(HirokinoMacBook-Pro) ✅
% diskutil ap list 3 19 月 14:03 JST
APFS Containers (2 found)
|
+-- Container disk1 84497440-BB45-42D6-871D-C699112BF211
| ====================================================
| APFS Container Reference: disk1
| Capacity Ceiling (Size): 250685575168 B (250.7 GB)
| Capacity In Use By Volumes: 131016294400 B (131.0 GB) (52.3% used)
| Capacity Available: 119669280768 B (119.7 GB) (47.7% free)
| |
| +-< Physical Store disk0s2 BA6A3FC1-80F2-43E1-8E3B-A3E1332AE6E3
| | -----------------------------------------------------------
| | APFS Physical Store Disk: disk0s2
| | Size: 250685575168 B (250.7 GB)
| |
| +-> Volume disk1s1 3FA291AC-2C6F-3E0A-B2B1-39C1AF6E6110
| | ---------------------------------------------------
| | APFS Volume Disk (Role): disk1s1 (No specific role)
| | Name: Macintosh HD (Case-insensitive)
| | Mount Point: /
| | Capacity Consumed: 124507766784 B (124.5 GB)
| | FileVault: Yes (Unlocked)
| |
| +-> Volume disk1s2 B135B2BC-E107-4ED7-B9A6-0A2A3D39A5C8
| | ---------------------------------------------------
| | APFS Volume Disk (Role): disk1s2 (Preboot)
| | Name: Preboot (Case-insensitive)
| | Mount Point: Not Mounted
| | Capacity Consumed: 21856256 B (21.9 MB)
| | FileVault: No
| |
| +-> Volume disk1s3 3452EA05-25B6-4628-8600-B9845CE659D3
| | ---------------------------------------------------
| | APFS Volume Disk (Role): disk1s3 (Recovery)
| | Name: Recovery (Case-insensitive)
| | Mount Point: Not Mounted
| | Capacity Consumed: 509820928 B (509.8 MB)
| | FileVault: No
| |
| +-> Volume disk1s4 FC4D0999-562D-4259-8144-0609E0811FEA
| ---------------------------------------------------
| APFS Volume Disk (Role): disk1s4 (VM)
| Name: VM (Case-insensitive)
| Mount Point: /private/var/vm
| Capacity Consumed: 5838508032 B (5.8 GB)
| FileVault: No
|
+-- Container disk3 18A5D99E-A19A-40B6-BC14-3C037B0E20B3
====================================================
APFS Container Reference: disk3
Capacity Ceiling (Size): 1073700864 B (1.1 GB)
Capacity In Use By Volumes: 3379200 B (3.4 MB) (0.3% used)
Capacity Available: 1070321664 B (1.1 GB) (99.7% free)
|
+-< Physical Store disk2s1 26C74592-9743-4698-B34C-98ABEF234BA9
| -----------------------------------------------------------
| APFS Physical Store Disk: disk2s1
| Size: 1073700864 B (1.1 GB)
|
+-> Volume disk3s1 315E1C1C-5081-4451-9CFB-6166881C2B56
---------------------------------------------------
APFS Volume Disk (Role): disk3s1 (No specific role)
Name: test (Case-insensitive)
Mount Point: /Volumes/test
Capacity Consumed: 24576 B (24.6 KB)
FileVault: No
~ hiroki.yagita(HirokinoMacBook-Pro) ✅
% ls -F /Volumes 3 19 月 14:04 JST
Macintosh HD@ Preboot/ test/
~ hiroki.yagita(HirokinoMacBook-Pro) ✅
% mount 3 19 月 14:06 JST
/dev/disk1s1 on / (apfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s4 on /private/var/vm (apfs, local, noexec, journaled, noatime, nobrowse)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk3s1 on /Volumes/test (apfs, local, nodev, nosuid, journaled, noowners, mounted by hiroki.yagita)
Created
March 19, 2018 05:09
-
-
Save yagihiro/31f55f08200de13377f1d66f4c9be8e1 to your computer and use it in GitHub Desktop.
Create ramdisk on mac os high sierra
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment