So I'm trying to erase the disk after making it to a bootable usb but now I’m getting this error "Couldn't open device". This happened before and after a reboot.
I've tried first aiding it first and erase it and using other format I've tried using terminal to erase, got the same error every time.
/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_APFS Container disk1 121.1 GB disk0s2
/dev/disk1 (synthesized):
#: TYPE NAME SIZE IDENTIFIER
0: APFS Container Scheme - +121.1 GB disk1
Physical Store disk0s2
1: APFS Volume Macintosh HD 57.9 GB disk1s1
2: APFS Volume Preboot 44.7 MB disk1s2
3: APFS Volume Recovery 512.4 MB disk1s3
4: APFS Volume VM 2.1 GB disk1s4
/dev/disk2 (external, physical):
#: TYPE NAME SIZE IDENTIFIER
0: *4.2 GB disk2
So how can I erase /dev/disk2?