{"id":451,"date":"2024-03-08T14:26:21","date_gmt":"2024-03-08T05:26:21","guid":{"rendered":"https:\/\/software.satoshis.jp\/?p=451"},"modified":"2024-03-08T14:26:21","modified_gmt":"2024-03-08T05:26:21","slug":"mac%e3%81%ab%e6%8c%bf%e3%81%97%e3%81%9fusb%e3%83%a1%e3%83%a2%e3%83%aa%e3%82%92%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%83%a9%e3%82%a4%e3%83%b3%e3%81%a7%e3%80%8c%e5%8f%96%e3%82%8a%e5%87%ba%e3%81%99","status":"publish","type":"post","link":"https:\/\/software.satoshis.jp\/?p=451","title":{"rendered":"Mac\u306b\u633f\u3057\u305fUSB\u30e1\u30e2\u30ea\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u3067\u300c\u53d6\u308a\u51fa\u3059\u300d\u65b9\u6cd5"},"content":{"rendered":"<p>Mac\u3067\u65e5\u5e38\u7684\u306b\u304a\u4ed5\u4e8b\u3057\u3066\u3044\u308b\u306e\u306f\u3001Chrome\u30d6\u30e9\u30a6\u30b6\u3068iTerm\u3068VSCode\u304c\u591a\u3044\u306e\u3067\u3001USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306bFinder\u3092\u8d77\u52d5\u3059\u308b\u306e\u3082\u3081\u3093\u3069\u304f\u3055\u3044\u3002<\/p>\n<p>iTerm\u3067\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3057\u3066USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u51fa\u305b\u308b\u3068\u5b09\u3057\u3044\u306e\u3067\u3059\u3002<\/p>\n<p>\u3067\u3001\u300cmac usb \u53d6\u308a\u51fa\u3057 \u30b3\u30de\u30f3\u30c9\u300d\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3050\u3050\u3063\u3066\u307f\u308b\u3068<\/p>\n<blockquote><p>Mac\u3067\u306fUSB\u30e1\u30e2\u30ea\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u9078\u629e\u3057\u305f\u72b6\u614b\u3067\u300cCommand\u30ad\u30fc\uff0bE\u300d\u3092\u62bc\u4e0b\u3059\u308b\u3068\u3001USB\u30e1\u30e2\u30ea\u3092\u5b89\u5168\u306b\u53d6\u308a\u5916\u3059\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p><\/blockquote>\n<p>\u3068\u6559\u3048\u3066\u304f\u308c\u307e\u3059\u3002<\/p>\n<p>\u305d\u306e\u30a2\u30a4\u30b3\u30f3\u3092\u30de\u30a6\u30b9\u3067\u9078\u629e\u3059\u308b\u306e\u304c\u3081\u3093\u3069\u304f\u3055\u3044\u3093\u3067\u3059\u3051\u3069\u3002<\/p>\n<p>\u300cmac usb eject cli\u300d\u3067\u3050\u3050\u308b\u3068\u898b\u3064\u304b\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>diskutil\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3048\u3070\u3044\u3044\u307f\u305f\u3044\u3067\u3059\u3002<\/p>\n<p>\u30b3\u30de\u30f3\u30c9\u304c\u308f\u304b\u3063\u305f\u3089\u3001\u3068\u308a\u3042\u3048\u305a\u305d\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u52d5\u304b\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% diskutil\r\nDisk Utility Tool\r\nUtility to manage local disks and volumes\r\nMost commands require an administrator or root user\r\n\r\nWARNING: Most destructive operations are not prompted\r\n\r\nUsage:  diskutil &#x5B;quiet] &lt;verb&gt; &lt;options&gt;, where &lt;verb&gt; is as follows:\r\n\r\n     list                 (List the partitions of a disk)\r\n     info&#x5B;rmation]        (Get information on a specific disk or partition)\r\n     listFilesystems      (List file systems available for formatting)\r\n     listClients          (List all current disk management clients)\r\n     activity             (Continuous log of system-wide disk arbitration)\r\n\r\n     u&#x5B;n]mount            (Unmount a single volume)\r\n     unmountDisk          (Unmount an entire disk (all volumes))\r\n     eject                (Eject a disk)\r\n     mount                (Mount a single volume)\r\n     mountDisk            (Mount an entire disk (all mountable volumes))\r\n\r\n     enableJournal        (Enable HFS+ journaling on a mounted HFS+ volume)\r\n     disableJournal       (Disable HFS+ journaling on a mounted HFS+ volume)\r\n     moveJournal          (Move the HFS+ journal onto another volume)\r\n     enableOwnership      (Exact on-disk User\/Group IDs on a mounted volume)\r\n     disableOwnership     (Ignore on-disk User\/Group IDs on a mounted volume)\r\n\r\n     rename&#x5B;Volume]       (Rename a volume)\r\n\r\n     verifyVolume         (Verify the file system data structures of a volume)\r\n     repairVolume         (Repair the file system data structures of a volume)\r\n     verifyDisk           (Verify the components of a partition map of a disk)\r\n     repairDisk           (Repair the components of a partition map of a disk)\r\n     resetFusion          (Reset the components of a machine&#039;s Fusion Drive)\r\n\r\n     eraseDisk            (Erase an existing disk, removing all volumes)\r\n     eraseVolume          (Erase an existing volume)\r\n     reformat             (Erase an existing volume with same name and type)\r\n     eraseOptical         (Erase optical media (CD\/RW, DVD\/RW, etc.))\r\n     zeroDisk             (Erase a disk, writing zeros to the media)\r\n     randomDisk           (Erase a disk, writing random data to the media)\r\n     secureErase          (Securely erase a disk or freespace on a volume)\r\n\r\n     partitionDisk        ((re)Partition a disk, removing all volumes)\r\n     addPartition         (Create a new partition to occupy free space)\r\n     splitPartition       (Split an existing partition into two or more)\r\n     mergePartitions      (Combine two or more existing partitions into one)\r\n     resizeVolume         (Resize a volume, increasing or decreasing its size)\r\n\r\n     appleRAID &lt;verb&gt;     (Perform additional verbs related to AppleRAID)\r\n     coreStorage &lt;verb&gt;   (Perform additional verbs related to CoreStorage)\r\n     apfs &lt;verb&gt;          (Perform additional verbs related to APFS)\r\n     image &lt;verb&gt;         (Perform additional verbs related to DiskImage)\r\n\r\ndiskutil &lt;verb&gt; with no options will provide help on that verb\r\n<\/pre>\n<p>\u3044\u308d\u3093\u306a\u3053\u3068\u304c\u3067\u304d\u308b\u307f\u305f\u3044\u3067\u3059\u306d\uff01<\/p>\n<p>\u3068\u308a\u3042\u3048\u305a list \u3092\u4f7f\u3063\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% diskutil list\r\n\/dev\/disk0 (internal, physical):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        *1.0 TB     disk0\r\n   1:                        EFI EFI                     209.7 MB   disk0s1\r\n   2:                 Apple_APFS Container disk2         1000.0 GB  disk0s2\r\n\r\n\/dev\/disk1 (internal, physical):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        *28.0 GB    disk1\r\n   1:                        EFI EFI                     314.6 MB   disk1s1\r\n   2:                 Apple_APFS Container disk2         27.6 GB    disk1s2\r\n\r\n\/dev\/disk2 (synthesized):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      APFS Container Scheme -                      +1.0 TB     disk2\r\n                                 Physical Stores disk0s2, disk1s2\r\n   1:                APFS Volume MacintoshHD2            1.1 MB     disk2s1\r\n   2:                APFS Volume Preboot                 2.1 GB     disk2s2\r\n   3:                APFS Volume Recovery                1.2 GB     disk2s3\r\n   4:                APFS Volume VM                      13.0 GB    disk2s4\r\n   5:                APFS Volume Macintosh HD - Data     754.2 GB   disk2s5\r\n   6:                APFS Volume Macintosh HD            10.1 GB    disk2s6\r\n   7:              APFS Snapshot com.apple.os.update-... 10.1 GB    disk2s6s1\r\n\r\n\/dev\/disk3 (external, physical):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        *3.0 TB     disk3\r\n   1:                        EFI EFI                     209.7 MB   disk3s1\r\n   2:                 Apple_APFS Container disk4         3.0 TB     disk3s2\r\n\r\n\/dev\/disk4 (synthesized):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      APFS Container Scheme -                      +3.0 TB     disk4\r\n                                 Physical Store disk3s2\r\n   1:                APFS Volume TimeMachine             2.8 TB     disk4s2\r\n\r\n\/dev\/disk5 (disk image):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      GUID_partition_scheme                        +172.9 MB   disk5\r\n   1:                 Apple_APFS Container disk6         172.8 MB   disk5s1\r\n\r\n\/dev\/disk6 (synthesized):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:      APFS Container Scheme -                      +172.8 MB   disk6\r\n                                 Physical Store disk5s1\r\n   1:                APFS Volume VirtualBox              139.5 MB   disk6s1\r\n\r\n\/dev\/disk7 (external, physical):\r\n   #:                       TYPE NAME                    SIZE       IDENTIFIER\r\n   0:     FDisk_partition_scheme                        *123.7 GB   disk7\r\n   1:                 DOS_FAT_32                         123.7 GB   disk7s1\r\n<\/pre>\n<p>disk7\u304cUSB\u30e1\u30e2\u30ea\u3067\u3059\u306d\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n% diskutil eject \/dev\/disk7\r\nDisk \/dev\/disk7 ejected\r\n<\/pre>\n<p>iTerm\u304b\u3089\u306e\u30b3\u30de\u30f3\u30c9\u3067USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u51fa\u305b\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Mac\u3067\u65e5\u5e38\u7684\u306b\u304a\u4ed5\u4e8b\u3057\u3066\u3044\u308b\u306e\u306f\u3001Chrome\u30d6\u30e9\u30a6\u30b6\u3068iTerm\u3068VSCode\u304c\u591a\u3044\u306e\u3067\u3001USB\u30e1\u30e2\u30ea\u3092\u53d6\u308a\u51fa\u3059\u305f\u3081\u306bFinder\u3092\u8d77\u52d5\u3059\u308b\u306e\u3082\u3081\u3093\u3069\u304f\u3055\u3044\u3002 iTerm\u3067\u30b3\u30de\u30f3\u30c9\u5165\u529b\u3057\u3066USB\u30e1 &#8230; <\/p>\n","protected":false},"author":1,"featured_media":73,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[24,111],"tags":[165,26,25,163,166,164],"class_list":["post-451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-iterm","category-mac","tag-eject","tag-iterm","tag-mac","tag-usb","tag-166","tag-164"],"nelio_content":{"autoShareEndMode":"never","automationSources":{"useCustomSentences":false,"customSentences":[]},"efiAlt":"","efiUrl":"","followers":[1],"highlights":[],"isAutoShareEnabled":true,"networkImageIds":[],"permalinkQueryArgs":[],"series":[],"suggestedReferences":[]},"views":998,"_links":{"self":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=451"}],"version-history":[{"count":2,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions"}],"predecessor-version":[{"id":453,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/posts\/451\/revisions\/453"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=\/wp\/v2\/media\/73"}],"wp:attachment":[{"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/software.satoshis.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}