Shermans's Notes
Toggle Dark/Light/Auto modeToggle Dark/Light/Auto modeToggle Dark/Light/Auto modeBack to homepage

Making a bootable USB

    Tried DiskUtil from the UI but Couldn’t get it going. In the end used the terminal.

     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    
    ❯ diskutil list
    /dev/disk0 (internal):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                         2.0 TB     disk0
       1:             Apple_APFS_ISC                         524.3 MB   disk0s1
       2:                 Apple_APFS Container disk3         2.0 TB     disk0s2
       3:        Apple_APFS_Recovery                         5.4 GB     disk0s3
    
    /dev/disk3 (synthesized):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      APFS Container Scheme -                      +2.0 TB     disk3
                                     Physical Store disk0s2
       1:                APFS Volume Macintosh HD            15.4 GB    disk3s1
       2:              APFS Snapshot com.apple.os.update-... 15.4 GB    disk3s1s1
       3:                APFS Volume Preboot                 528.3 MB   disk3s2
       4:                APFS Volume Recovery                827.3 MB   disk3s3
       5:                APFS Volume Data                    164.4 GB   disk3s5
       6:                APFS Volume VM                      2.1 GB     disk3s6
    
    /dev/disk4 (disk image):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:      GUID_partition_scheme                        +2.4 GB     disk4
       1:                        EFI EFI                     209.7 MB   disk4s1
       2:                  Apple_HFS GoLand                  2.0 GB     disk4s2
    
    /dev/disk5 (external, physical):
       #:                       TYPE NAME                    SIZE       IDENTIFIER
       0:     FDisk_partition_scheme                        *15.5 GB    disk5
       1:                 DOS_FAT_32 ESD-USB                 15.5 GB    disk5s1
    
    ❯ diskutil unmountDisk /dev/disk5
    Unmount of all volumes on disk5 was successful
    ❯ hdiutil convert pfSense-CE-memstick-2.6.0-RELEASE-amd64.img -format UDRW -o pfSense-CE-memstick-2.6.0-RELEASE-amd64.iso
    Reading Master Boot Record (MBR : 0)Reading  (Type EF : 1)...............
    Reading  (FreeBSD : 2)....................................................................................................................................................................................................
    Reading  (DOS_FAT_32 : 3).....................................................................................................................................................................................................
    Elapsed Time: 402.701ms
    Speed: 2.2GB/s
    Savings: 0.0%
    created: /Users/shermanrose/Downloads/pfSense-CE-memstick-2.6.0-RELEASE-amd64.iso.dmg
    ❯ sudo dd if=pfSense-CE-memstick-2.6.0-RELEASE-amd64.iso.dmg of=/dev/rdisk5 bs=1m
    922+1 records in
    922+1 records out
    967746048 bytes transferred in 89.499613 secs (10812852 bytes/sec)
    ❯ diskutil eject /dev/disk5
    Disk /dev/disk5 ejected