1

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?

2

This will erase all data that currently exists on the SD card:

  1. Remove your SD card.
  2. Open Disk Utility.
  3. In the menu bar, click [View] > [Show All Devices].
  4. 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.
  5. Click [Erase] in the top bar.
  6. Enter a name of your choosing.
  7. For the format, choose "MS-DOS (FAT)".
  8. For the scheme, choose "Master Boot Record".
  9. Click [Security Options...], move the slider to "Fastest", then click "OK".
  10. Click [Erase].
| improve this answer | |
  • Thanks, it works :) – Yardi Jan 26 at 7:18
0

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.

  1. Open up the terminal app in Mac OS.
  2. Type Diskutil list.
  3. Find the external drive that you want to erase (it should be labeled /dev/diskX with "X" being the number of your drive that you want to erase.
  4. 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
    
  5. Wait for the DD command to show a completion message.

  6. Now reformat the drive in disk utility and full space should be restored.

| improve this answer | |
  • This is unadvisable for simply re-formatting a disk, since it overwrites the entire disk. As such, it is extremely slow and also significantly reduces the lifetime of flash media such as SD cards. It is akin to using the second fastest option in the Disk Utility "Security options" when erasing (one pass of zeroes). Zeroing the first 17KiB of the disk will suffice to wipe the partition table, so e.g. appending count=1 to this dd command suffices and is almost instant. macOS will then prompt you to "initialise" the drive. – Jivan Pal Jan 26 at 13:44
  • If you really want to use the terminal, there is diskutil eraseDisk, e.g. diskutil eraseDisk FAT32 "My Disk" MBR diskX performs the same task outlined in my answer. – Jivan Pal Jan 26 at 13:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .