Micros Mac OS

Posted on  by

Recently, while creating a physical back-up of my Mac, I ended up corrupting the Micro SD card I was using to perform the back-up operation. This translated into a one line cautionary alert inside the related blog post:

Caution: DO NOT attempt to remove the SD card or adapter during this process.

Turns out removing an SD card during a 100+ GB 77,000 file transfer from a Mac to an SD card isn’t the best idea – despite what a five year-old might tell you.

After several hours of toiling with Disk Utility, diskutil and dd on macOS the furthest I got was to experience the same issues as another individual who posted on Apple Exchange 3 years ago - their question unresolved, until now.

The first release of the new OS — Mac OS X Server 1.0 — used a modified version of the Mac OS GUI, but all client versions starting with Mac OS X Developer Preview 3 used a new theme known as Aqua. Aqua was a substantial departure from the Mac OS 9 interface, which had evolved with little change from that of the original Macintosh operating. For earlier versions of Mac OS X, including Mac OS X Mavericks 10.9, Mac OS X Mountain Lion 10.8, Mac OS X Lion 10.7, Mac OS X Snow Leopard 10.6, Mac OS X Leopard 10.5, Mac OS X Tiger 10.4, and before, the process to obtain those installers differs a bit. Downloading Mac OS X.

In this post I will explain how to use USB bootable media on a MacBook to dual-boot into a Linux operating system to unbrick a corrupted SD card.

Mac OS X & macOS names. As you can see from the list above, with the exception of the first OS X beta, all versions of the Mac operating system from 2001 to 2012 were all named after big cats. From the Apple menu  in the corner of your screen, choose About This Mac. You should see the macOS name, such as macOS Big Sur, followed by its version number. If you need to know the build number as well, click the version number to see it. Which macOS version is the latest? Posts about Mac OS X written by smittytone. The Nano command line text editor has reached a new milestone: version 5.0. There are the usual array of bug fixes and tweaks, but what caught my eye among the release notes was the introduction of a scroll indicator.

In order to boot your macOS into another operating system you need to actually have another operating system to boot into. In my case I had a spare 32 GB USB stick I use for privacy online called Tails (Debian) so I used that.

There are, of course, other options for dual-booting a Mac from USB. And I don’t necessarily recommend even trying to install Tails to a USB stick without a Windows machine as installing Tails from Mac is a kludge. But if you can get your hands on a live OS like Tails it’s fairly trivial to fix an SD card even when diskutil on macOS is throwing Error: -69877: Couldn’t open device.

Regardless of which dual-boot operating system you choose consider choosing a Linux distribution such as Tails to make your secondary OS more useful than a one-time SD card unbricking operation. You’ll thank yourself for it later.

The Apple support page Mac startup key combinations covers a number of methods you may use to make your Mac do special things when it reboots. In How to Backup & Restore macOS Mojave I covered just one. In this post we’ll cover another:

Option (⌥): Start up to Startup Manager, which allows you to choose other startup disks or volumes, if available. If your Mac is using a firmware password, you're asked to enter the password.

If you have a USB stick with Tails or another bootable OS installed you can access the second OS from Startup Manager by holding down Option during system bootup when you restart the Mac with a USB stick containing the OS inserted:

If you’re using Tails go ahead and choose EFI Boot to bypass booting from Macintosh HD and, instead, boot directly from the live OS on the USB stick.

Note: If you don’t see at least two options after booting chances are your USB stick wasn’t recognized or the second OS used wasn’t properly installed.

See Full List On Support.apple.com

From here things get fairly Tails-specific, so if you're using a different dual-boot OS please consult the instructions for using that OS in order to proceed.

After selecting the EFI Boot option from Startup Manager the Tails bootloader will run, presenting you with two startup options:

Cached
Tails Startup Options

Choose the first option to start Tails normally and wait a moment for it to start – which it will do directly from USB. At this point you will see a GUI with configuration options. Review the options then choose Start Tails to complete the OS start-up sequence and log-in to Tails' Debian-based GUI:

With the secondary OS now started it’s time to do something useful like using Disks to recover a seemingly bricked SD card.

But first, a word of caution:

MacOS - Wikipedia

Caution: DO NOT attempt to remove the SD card or adapter during this process.

The same caution applies to the USB stick, as removing the stick will instantly cause Tails to wipe itself from your Mac’s volatile memory should you need.

Depending on who you ask the definition of a “bricked” device may vary. For the purposes of this post a bricked device is one which no longer functions in macOS but may function in other, ahem, more capable operating systems (like Debian).

So let’s get right down to it.

Start Disks

While logged-in to the Tails-Debian GUI, press the Command key on your keyboard to open a search dialog, type the word disks then press Enter to open Disks.

With your micro SD card inserted you should see something like this:

Depending on how jacked your SD card is you may see something else. Regardless we’re here to try and fix it so click the gear icon and choose to format the SD card and ONLY the SD card. If you choose the wrong option and wipe out your Mac’s SSD there is little hope left for you.

Format SD Card

When I did this I tried a few different options not knowing what would work and what wouldn’t. What didn’t work was an NTFS volume. My Mac running macOS 10.14.3 (Mojave) had absolutely no idea what to do with it. In hindsight it seems obvious NTFS wouldn’t work. But I was getting desperate.

What did work was formatting the micro SD card using the following options:

Even on a large micro SD card quick format should take no longer than 2-3 minutes to finish. And when it’s done it’s time to boot back into macOS to complete the unbricking.

Initialize SD Card

After you’ve formatted your micro SD as described, and with the micro SD card still inserted in the card reader (the USB stick doesn’t matter), restart your Mac and let it boot into macOS as you might normally do.

Upon login macOS will scan for hardware changes and, as a result, find the unpartitioned SD card. It should then automatically let you know something’s wonky by opening a dialog with an alert message and three options:

And now the magic moment.

Select Initialize… to start Disk Utility on your Mac and use it to try to Erase the previously unusable (bricked) micro SD card one more time:

With the erasure fields filled-out choose Erase to recreate the partition table on the SD card, format and erase it:

If you see Operation Successful when the format completes you just unbricked a corrupted micro SD card. It’ll work just like new. If it didn’t work, well hey, at least you tried right? You may have lost an SD card due but you learned how to dual-boot a Linux operating system on macOS.

I’ve been using Tails on my MacBook Pro for about 3 years. The only issue I’ve ever run into is occasionally needing to reset the System Management Controller (SMC) following the steps on Apple Support. You’ll know when you need to do this because it’ll appear your Mac won’t start. Not to worry though, I’ve done this a number of times on different machines and never experienced problems.

In this post I explained how a corrupted and, for all intents and purposes, otherwise “bricked” micro SD card may be restored to working condition by dual-booting the Tails (Debian) operating system alongside macOS on a Macintosh.

So the next time you see a warning message in a tech article take heed:

Unix

Caution: DO NOT attempt to remove the SD card or adapter during this process.

This post would not have been possible without the curious fingers of a five year-old, and man’s unequivocal thirst for knowledge. Kids. Yet another good reason for backing-up your files on macOS Mojave.

People won't find your site or video, they come here and don't look and can't find tips.


And there are already ZDnet and others as well as a lot of 'copy and paste' and consolidate of things that have worked.


And of course there are some things that are broken or don't work right until Apple has some drivers - AFTER Oct 27th (maybe 2-3 months after) that have been tested against Windows 8 that ships.


Microsoft - Official Home Page

I have a number of programs and devices that for now just will not work 100% properly with what is afterall Preview beta.

Aug 5, 2012 6:57 AM