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

Garyed055

macrumors regular
Original poster
Feb 15, 2018
227
107
Canton Georgia
Hi

To install lbuntu on my macbook I created a boot USB and now I can't repartition or erase it back to mac os

Diskutility doesn't work

Gary
Screenshot 2024-08-21 at 1.15.31 PM.jpeg
 
So what is happening? Is it not offering APFS as an option? Does it fail when you try it?
From what I know about FAT32, I'm surprised that FAT12 would ever be an option.
 
So what is happening? Is it not offering APFS as an option? Does it fail when you try it?
From what I know about FAT32, I'm surprised that FAT12 would ever be an option.
I tried APFS nothing its says can't change partition map or size not valid for file system chosen

Gary
 
I know that some things can't co-exist with others. Are you trying to partition just part of the memory stick? You might need to clear the whole thing.

Also, memory sticks are cheap. You might be better off just getting another one, and using one stick for one thing.
 
macos/DU is severely limited when it comes to disks. Just boot another machine in Linux and format the USB as simple MBR/fat32. Then DU will be able to use it again. Windows sucks as well, but might be worth a try for formatting.
 
When you select the drive in Disk Utility be sure to select the entire disk not just one of the partitions. In other words, move up a level on the that drive. Then you may erase it.
 
  • Like
Reactions: Bigwaff
When you select the drive in Disk Utility be sure to select the entire disk not just one of the partitions. In other words, move up a level on the that drive. Then you may erase it.
Yes. @mfram speaks true. Open Disk Utility, in menu View > Show All Devices.
This is the way.
 
Then we're going to need screenshots showing the whole window and what you're clicking on. I supposed it's possible if you wrote an ISO image that somehow the device appears as read-only now.
 
Wipe it out with Terminal. Dismount (not eject) through Disk Utility if it's mounted, then pop into Terminal. Run diskutil list to find the ID of the drive, e.g. "disk4". Then use sudo dd if=/dev/zero of=/dev/rdisk4 bs=1m to write zeros to the drive. You will only need to let that run for a couple of seconds (enough to wipe out the partition table) then you can abort with Ctrl-C. Disk Utility should then let you partition it.
 
  • Like
Reactions: Basic75
Then we're going to need screenshots showing the whole window and what you're clicking on. I supposed it's possible if you wrote an ISO image that somehow the device appears as read-only now.
Yes its read only and since it won't mount I don't know how to fix it
 
Wipe it out with Terminal. Dismount (not eject) through Disk Utility if it's mounted, then pop into Terminal. Run diskutil list to find the ID of the drive, e.g. "disk4". Then use sudo dd if=/dev/zero of=/dev/rdisk4 bs=1m to write zeros to the drive. You will only need to let that run for a couple of seconds (enough to wipe out the partition table) then you can abort with Ctrl-C. Disk Utility should then let you partition it.
Tried on two different computers 3 times no effect
 
Screenshots, need more screenshots...

Or better yet, a video recording...

Are you trying to erase/format a flash drive [USB stick] or the internal storage [hard disk/solid state drive]?

Are you trying to erase it within Disk Utility while running macOS or Disk Utility while on Recovery?

You can only erase/format it as macOS extended [HFS+] or APFS [High Sierra or newer] using a Mac but you can erase/format it as MS-DOS FAT/FAT32 using Windows or Linux or macOS...
 
Screenshots, need more screenshots...

Or better yet, a video recording...

Are you trying to erase/format a flash drive [USB stick] or the internal storage [hard disk/solid state drive]?

Are you trying to erase it within Disk Utility while running macOS or Disk Utility while on Recovery?

You can only erase/format it as macOS extended [HFS+] or APFS [High Sierra or newer] using a Mac but you can erase/format it as MS-DOS FAT/FAT32 using Windows or Linux or macOS...
Trying to repartition and reformat the USB after using it as a Linux install disk. I've tried under Mac os sonoma and ubuntu but no luck. Near as I can tell the USB is set to read only
 

Attachments

  • Screenshot 2024-08-22 at 10.23.14 AM.jpeg
    Screenshot 2024-08-22 at 10.23.14 AM.jpeg
    45.1 KB · Views: 32
  • Screenshot 2024-08-22 at 10.22.33 AM.jpeg
    Screenshot 2024-08-22 at 10.22.33 AM.jpeg
    35.3 KB · Views: 31
  • Screenshot 2024-08-22 at 10.21.47 AM.jpeg
    Screenshot 2024-08-22 at 10.21.47 AM.jpeg
    87.7 KB · Views: 30
  • Screenshot 2024-08-22 at 10.20.04 AM.jpeg
    Screenshot 2024-08-22 at 10.20.04 AM.jpeg
    71.9 KB · Views: 29
The 4th screenshot [with Disk Utility showing], did you try clicking Erase at the top and did it still give you an error?

The View drop down on the upper left, did you set it to Show All Devices? Based on the screenshot it seems to be, but just confirming...

In Disk Utility in El Capitan [10.11] and newer, you need to erase [format] first before you can partition the drive/disk...

In Disk Utility in Yosemite [10.10] and older, you can partition the drive/disk before erasing [formatting] it first...

Do you notice any switch that might have made the USB stick read-only? Make sure it is set to unlocked...

Something like this:
Netac-USB-Flash-Write-Protect-USB2-0-Flash-Drive-Pendrive-U208S-16G-32G-64G-Memory-Stick.jpg
 
The 4th screenshot [with Disk Utility showing], did you try clicking Erase at the top and did it still give you an error?

The View drop down on the upper left, did you set it to Show All Devices? Based on the screenshot it seems to be, but just confirming...

In Disk Utility in El Capitan [10.11] and newer, you need to erase [format] first before you can partition the drive/disk...

In Disk Utility in Yosemite [10.10] and older, you can partition the drive/disk before erasing [formatting] it first...

Do you notice any switch that might have made the USB stick read-only? Make sure it is set to unlocked...

Something like this:
Netac-USB-Flash-Write-Protect-USB2-0-Flash-Drive-Pendrive-U208S-16G-32G-64G-Memory-Stick.jpg
Yes I tried erase it failed with error -69825. There is no switch on this USB
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.