Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

tommyp2401

macrumors newbie
Original poster
Mar 20, 2012
14
0
I have a 32gb class 10 sd card. The disk shows up un disk utility and is recognized in terminal but I can't do anything with it in Disk Utility and whenever I give it a terminal command it says I don't have permission. The command I tried was diskutil eraseVolume HFS+ newdisk /dev/disk1 and it comes up with the following:

Started erase on disk1
Unmounting disk
Error: -69877: Couldn't open device
 

chown33

Moderator
Staff member
Aug 9, 2009
10,751
8,425
A sea of green
In Disk Utility.app:
  • Select the card.
  • At the bottom of the window, it should show Write Status: followed by some words.
  • If it says Read Only after Write Status, then the write-protect switch is active (or whatever you're using to read the card is mistakenly asserting write-protect).
If you don't see Write Status at all, you've probably selected the volume on the card. Try again with the enclosing item.

There's nothing you can do with Terminal that can't be done more simply and more safely with Disk Utility.app. And if the card isn't writable, there's nothing you can do about it in Terminal.

If you want something safe and useful for Terminal, copy and paste this into a Terminal window:
Code:
ls -l /dev/*disk*
Then copy and paste the output into a post.

The permissions will show whether the disk device is writable or not. You can't change them, but at least it should reflect what Write Status in Disk Utility.app is showing.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.