Advertisement
Guest User

corruptUSBOSXdd:Permission denied

a guest
Feb 22nd, 2019
410
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.61 KB | None | 0 0
  1. diskutil list
  2. /dev/disk2 (external, physical):
  3. #: TYPE NAME SIZE IDENTIFIER
  4. 0: *4.0 GB disk2
  5. (type name is blank, I did not forget)
  6.  
  7.  
  8. also worth noting, if i unplug and re-plugin the usb stick, drive size shrinks:
  9.  
  10. diskutil list
  11. /dev/disk2 (external, physical):
  12. #: TYPE NAME SIZE IDENTIFIER
  13. 0: *8.4 MB disk2
  14. (still no type name) (size is shrunk)
  15.  
  16.  
  17. Oddly I can reformat this shrunk drive:
  18.  
  19. diskutil eraseDisk FAT32 UNTITLED MBRFormat /dev/disk2
  20. Started erase on disk2
  21. Unmounting disk
  22. Creating the partition map
  23. Waiting for the disks to reappear
  24. Formatting disk2s1 as MS-DOS (FAT32) with name UNTITLED
  25. Error: -69850: The chosen size is not valid for the chosen file system
  26.  
  27. oddly I now have a type name
  28.  
  29. diskutil list
  30. /dev/disk2 (external, physical):
  31. #: TYPE NAME SIZE IDENTIFIER
  32. 0: FDisk_partition_scheme *8.4 MB disk2
  33. 1: DOS_FAT_32 8.4 MB disk2s1
  34. (still shrunk)
  35.  
  36. Although i don't 8.4 MB is really declaring victory...;)
  37.  
  38. when I try the solution from https://apple.stackexchange.com/questions/220711/how-do-i-fix-a-corrupted-usb-drive-on-os-x/220719?noredirect=1#comment462336_220719 on full size drive everything goes fine until the last step
  39.  
  40. sudo dd if=/path/to/UNTITLED.dmg of=/dev/disk2 bs=1m
  41. Password:
  42. dd: /dev/disk2: Permission denied
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement