I try to make sd card with raspbian software, but on my windows PC from work i don't have enough permissions to do it. Unfortunately it formatted into multiple partitions. Now i can see only one in Mac Disk Utility with 300 MB (sd card have 64GB). Somebody has idea how to fix it back to get full space?
This will erase all data that currently exists on the SD card:
- Remove your SD card.
- Open Disk Utility.
- In the menu bar, click [View] > [Show All Devices].
- Insert your SD card, ensuring the write-lock switch is in the unlocked position (towards the side of the card which has the gold contacts). You should see your SD card appear in the sidebar in Disk Utility as something like "Apple SDXC Reader Media". Click this item.
- Click [Erase] in the top bar.
- Enter a name of your choosing.
- For the format, choose "MS-DOS (FAT)".
- For the scheme, choose "Master Boot Record".
- Click [Security Options...], move the slider to "Fastest", then click "OK".
- Click [Erase].
Sometimes window partitions on drives can be tricky and difficult for a Mac to erase, like the windows protected boot partition. Same goes for linux. That being said, if you really want to "Clean and reset" your SD card you could zero it using the dd utility in terminal.
- Open up the terminal app in Mac OS.
- Type Diskutil list.
- Find the external drive that you want to erase (it should be labeled
/dev/diskXwith "X" being the number of your drive that you want to erase.
Then use the dd command on the DRIVE YOU WANT TO ERASE: Warning, this will completely erase everything!
sudo dd if=/dev/zero of=/dev/diskX bs=1m
Wait for the DD command to show a completion message.
Now reformat the drive in disk utility and full space should be restored.