Code: Select all
sudo diskutil partitionDisk /dev/disk2 1 MBR "Free Space" "%noformat%" 100%
Started partitioning on disk2
Unmounting disk
Error: -69877: Couldn't open device
I was trying to partition the disk using this command:
Code: Select all
sudo diskutil partitionDisk /dev/disk2 1 MBR "Free Space" "%noformat%" 100%
Code: Select all
diskutil info /dev/disk2
Device Identifier: disk2
Device Node: /dev/disk2
Part of Whole: disk2
Device / Media Name: APPLE SD Card Reader Media
Volume Name: Not applicable (no file system)
Mounted: Not applicable (no file system)
File System: None
Content (IOContent): FDisk_partition_scheme
OS Can Be Installed: No
Media Type: Generic
Protocol: USB
SMART Status: Not Supported
Total Size: 7.7 GB (7746879488 Bytes) (exactly 15130624 512-Byte-Units)
Volume Free Space: Not applicable (no file system)
Device Block Size: 512 Bytes
Read-Only Media: Yes
Read-Only Volume: Not applicable (no file system)
Ejectable: Yes
Whole: Yes
Internal: Yes
OS 9 Drivers: No
Low Level Format: Not supported