Category: OS X

  • Useful shortcut for cleaning up files

    Useful shortcut for cleaning up files

    The situation

    I’m in the process of moving from one computer to another. My old 2010 MacBook Pro is still running very well with a replacement SSD for its internal disk, but it’s stuck at Catalina and won’t be going any further, mostly because the firmware has a password which I’ve lost, and Apple can no longer unlock machines that old.

    So if I want to do development in a recent Xcode, and I very much do, I need to upgrade. One side-effect of my recent layoff from ZipRecruiter was that they let me keep my machine, so I now have a 2021 M1 Pro that will run Ventura. (It’s possible that I’ll never need another machine, given that Apple machines stay supported for ~7 years; in seven years I’ll be 73, and either dead or unlikely to be programming on a daily basis.)

    The problem here, though, is that the internal disks are considerably different sizes. The old machine’s internal disk was 2TB, because that was the biggest affordable SSD I could get at the time. The new machine’s disk is 0.5 TB, and a straight copy from the old machine to the new is not an option — the immutable law of storage is that if you have it, it fills up — so I need to clean up the stuff I’ve got on the internal and move it elsewhere.

    I’m using a mixed strategy for this:

    • Anything on the internal disk will be there because it has to be.
    • Anything I want to keep and be able to access, but that doesn’t need to be available right now is going on Dropbox. (I will have to back this up separately; I’m going to work out a script to back it up with Backblaze.)
    • Anything that I need quick access to will go on an external 2TB SSD, which I will back up with Backblaze.

    So far, I’ve done the following:

    1. Gotten a copy of my most recent backup of the 2 TB internal disk from Backblaze on a 4TB spinny disk. (Costs me the price of the spinny disk, but worth it.)
    2. Copied the failing spinny disk copy of my old backups to an external SSD. (In hindsight, it should have gone to the empty space on the spinny external; I may do that later).
    3. Started walking through the SSD copy of the old files to clear space on the SSD for the files I want from the Backblaze spinny disk.

    The actual meat of this post

    So fine, I’m cleaning up the SSD. The actual thing I want to note here is that I have a collection of ebooks on that external that I want to file onto a folder in Dropbox. Problem is that a lot of them are probably already there, and the drag, get the duplicate dialogue, dismiss it, trash the file process is tiresome on the hands. I discovered a significantly faster way, and I’m noting it here for anyone else who might be doing something similar.

    1. Open the source folder (for me, that’s the “books” folder on the SSD) and the destination (that’s a categorized and subfoldered “Books” folder on Dropbox).
    2. For each file in the source folder, use the Finder search field in the Dropbox window, limiting the search to just the “Books” folder on Dropbox, and start entering the name of the source book.
    3. If the book is there on Dropbox, you’ll find it — and if there a duplicates, you can clean up the duplicates right from the search results.
    4. If it’s not there then it can be dragged over to the appropriate folder in “Books” on Dropbox after clearing the search field.
    5. In either case, the book is now either found or filed, and can be removed from the source folder.

    This is way faster and easier on the hands than dragging and dropping the books one at a time.

  • I Only Wanted to Use My Time Capsule…

    I Only Wanted to Use My Time Capsule…

    A while back, I disconnected my Ethernet-connected Time Capsule because it was no longer working at all well for Time Machine backups. Somewhere in the update March of Progress, Time Machine became very sensitive to network drops. It may have been that way all the time, but we now have a lot more people with networks (I count 25 right now, as opposed to maybe 10 when I first moved here), and I think there’s simply more interference that Time Machine simply isn’t able to handle.

    I have found that regular mass-storage seems to work okay — I have an AirPort Extreme with an external 2 TB disk attached, and that seems to work fine as an external backup and organization disk.

    So I figured, why not switch the Time Capsule over to just being a big dumb network filestore, and not try to use it for Time Machine anymore? And it was kind of in the way when it was hard-wired, so setting it up like the Extreme should be fine.

    It was not fine.

    I was able to hard-reset it okay, but the current AirPort Utility (both on the Mac and the iPad) would not attach it to a non-Apple network. It was simply no go. After a lot of thrashing around, I found that AirPort Utility 5.6.1 should be able to fix this, but I couldn’t get it to run on my Catalina machine (I didn’t even bother to try on Big Sur). I did dig out my 2008 MacBook Air running El Capitan; surely this would do it!

    No, it didn’t. El Cap did not want to run it. I finally found BristleConeIT’s launcher utility for 5.6, and was able to get it to run on El Cap. Unfortunately, the straightforward “extend the network” (“join the network” was oddly not there) wasn’t available. I gave up and tried configuring it with no network, figuring I’d try later to fix it.

    This was the key to success: AirPort Utility diagnosed the settings as bad, and then led me through fixing them — and the fix process allowed me to join whatever network I wanted! I pointed it to my (non-Apple) Xfinity router, and said go. It restarted, and when I went to “Network” in the Finder, there it was!

    I launched the current AirPort Utility, which allowed me to access it and erase the disk. I chose to zero it out, and I’m waiting for that to finish, but so far, it seems like it worked.

  • “I just wanted to play Portal…”

    Prologue

    A friend on Facebook mentioned that he wanted to play some games on his Mac to help with an inner ear problem (practicing with virtual motion apparently helps with vertigo from real motion) — I had suggested Portal, as that’s a very changing-viewpoint-intensive game. Unfortunately, neither of us knew that Portal and Portal 2 are both 32-bit apps, and so they don’t run under more modern Mac OS X’s — anything past Mojave dropped 32-bit support. I said, “I’m sure there’s a way I could make this work.”

    Hubris.

    They don’t call it Boot Camp for nothing

    My initial thought was, well, of course most games run best under Windows; why don’t I set up Boot Camp on this machine? I’ve always wanted to see if it would work.

    Well, it might. But the machine I have to play around with — a 2011 MacBook Pro, the last one to have user-upgradable memory and disk — does not play well with modern versions of Boot Camp. See, modern versions of Boot Camp assume that you’ll be able to build a Windows installer USB stick and boot off that to install Windows. Boot Camp does build the installer USB stick; it’s just that my 2011 MBP can’t boot anything except OS X from USB. It could install from DVD, but a) I had no DVD blanks on hand and b) newer Boot Camp does not believe in DVD drives. There’s no option to tell it “please burn this to DVD”.

    I started exploring other options, trying to find one I wouldn’t feel like an utter heel trying to convince a not-so-technical friend to use, and there just wasn’t one. The closest I got was building a Windows VM, but that started getting messy and I decided if this was going to work, it needed to work with the tools that a typical Mac user would have, and shouldn’t require the installer to understand how to mount ISOs on virtual machines, and worse.

    Dual-wielding Mac OS installs

    My MPB can run 32-bit OSes, so I decided that the simplest possible option was create a second partition on the internal HD and install Mojave (the last 32-bit OS X) on it. This was a less complex option by far; the worst it required was a little work in Disk Utility to create the target partition, and issuing one command in Terminal.app to create the installer USB (which yes, my MBP would boot, since it was OS X).

    This article was really helpful in getting it done; I won’t repeat the whole thing here, but just mention the highlights:

    • Modern Mac OSes use APFS, and creating an extra APFS volume in free space on the internal drive only took a couple minutes.
    • Links to older version of OS X are available through this Apple support page; because Apple does get rid of older OSes, I recommend getting the installer you want and backing it up in case you ever want it again. Currently (as of May 2021), you can get Catalina, Mojave (the last 32-bit OS X), and High Sierra as installer apps from the App Store, and Sierra, El Capitan, and Yosemite as .dmg files, which install the installer. Older versions are probably available out there on the Internet, but they won’t be official Apple source.
    • Creating the installer is the one more-sophisticated step, in that it requires you to enter a command in Terminal.app to create the USB stick. That’s documented in this Apple support document; it’s only one command, so it’s not too scary.
    • Once you have a usable USB stick, it’s relatively straightforward. Boot the machine while holding down the Option key, and you’ll get a menu of disks to boot from. Pick the installer USB. You go through a couple screens to get to the install disk; pick the APFS partition you added.

    The result

    That’s pretty much it; wait for the installer to do its thing. One it’s finished, you’ll be up in Mojave. If your Catalina or Big Sur install is on an encrypted disk, you’ll get a prompt to enter your userID password from the other install; note that there are two partitions it will have to unlock. The first will use a bizarre dashed-hexidecimal username; if you’ve got more than one user, you’ll have to try combinations of different weird usernames and your login password until it unlocks. The second will use your regular username. (You can have Mojave remember these so you won’t have to enter them again.)

    And now you’re up on Mojave! Note that since your Catalina/Big Sur install is readable, you can run applications that are installed on that system in this one without reinstalling them. In this case we want to run Steam, which runs just fine and allows you to install Portal to the Mojave partition and run it there.

    This still isn’t as simple as having an OS that supports both 32 and 64 bit apps, but it will work. If you’ve got 32-bit apps you really need to keep, then this is a way to have the best of both: the newest OS and one that still runs all the things you need.

  • Praise and a warning about using Gemini II and CleanMyMac X to clean up old merged backups

    Time to clean up!

    Earlier this year, my company, in its push to get things squared away for an IPO at some point (note to the SEC: I know nothing about IPO plans, I am not suggesting anyone invest in anything, I’m just this guy, you know?), installed a remote management tool for MacOS. Initially, I was concerned that we might end up being monitored as to what was on our machines, and non-work use might be frowned upon – plus I learned the hard way at WhiteHat that if you’re going to get laid off or fired, no one’s going to give you a day or two to back up anything personal on your machine. (I lost, and later managed to partially recover, all the patches for my Radio Free Krakatau album.)

    IT and upper management, after a couple of days of general consternation and concern about keylogging, etc., formally told us, “no, we don’t care what you do on your laptop, just don’t do anything illegal,” but by that point I’d scoured off the personal files and data and moved them to iCloud, Dropbox, or a spare 2012 MacBook Pro I had.

    The 2012 MBP was the last one that allowed upgrading by the end user. It could accept up to 16GB of memory, had a lot of ports (including a DisplayPort, native Ethernet, and FireWire), and had an internal disk that could be swapped to an SSD.

    I picked up a 2TB Crucial SSD, pulled the old disk, installed the new one, and used Carbon Copy Cloner to copy the old internal disk back on to the SSD. I also pulled in several older backup spinny disks into a folder called “Backups to Clean Up”. This was a superfund site of duplicates, junk, and accumulated files. I took a first cut at cleaning it up right away — deleting old stuff I knew I didn’t care about anymore, like partial iPhoto/Aperture/Photos libraries and old iTunes folders — but I was left with a considerable stash of data that I knew contained duplicates. At the time I was busy and decided I’d work out the rest later. I had removed my Adobe apps and music apps and data from my work laptop, and at the time I just didn’t have any time to work on those.

    Diving in with Gemini II

    Last weekend, I decided it was time to do the cleanup. I had bought Gemini II a couple years ago in a MacHeist bundle, and had tried it a little, but found it too slow on a spinny disk to to be useful. I decided that the job was big enough that I really needed to have some help, so I tried it again. I fired it up on Wednesday afternoon, and pointed it at my home directory on the MBP, and said go get ’em.

    Friday morning (I neglected to exclude Dropbox from the duplicate check, resulting in a lot of “download the file, check it” for the 200 or so GB or data in there, slowing things down considerably), I had a complete comparison. I spent the better part of Friday evening and Saturday and a chunk of Sunday looking at the recommendations and clearing duplicates. In general Gemini had made good choices as to which files to keep and which were duplicates, and this got rid of almost 200GB of duplicates. I did a couple rescans and found another hundred or so that I could clean up.

    Gemini recommended I try CleanMyMac X to help with getting rid of extra junk on the disk, and being in a cleaning mood, I decided to try it. I signed up for a month, and only after I’d done that did I see a “30% off if you own one of our other products”, despite being signed in. MacPaw was very kind and extended my CleanMyMac X subscription for three months to compensate.

    On the initial run, CleanMyMac X was very useful. It cleared a bunch of old caches, got rid of unused languages, etc., and helped me cleanly delete some old apps that were cluttering up ~/Library. It installed a very attractive cleanup and virus checking monitor, and I thought nothing of it at the time.

    Problems surface

    I continued working with Gemini II, and the monitor was solicitously clearing the trash when it got full, and so on. I then tried to use Gemini to just dedup my Music folder, and here’s where the fun started.

    It ran for an hour or so and then I got a “You are out of memory” warning; Gemini II apparently had 69GB of memory allocated. I shut some stuff down, but I ran out of memory again. And again. And again. Quit Gemini. Tried to run Ableton Live; the cursor was sluggish, sound was breaking up, and trying to select a patch in plugins was causing outright crashes. And the laptop was so hot I couldn’t leave it on my legs.

    This was not going to do at all. I wanted to use this machine for music, and it wasn’t able to handle it anymore. Was I going to need a new laptop? It was late. I went to bed.

    The solution

    In the morning, after some time spent with Activity Monitor, I twigged to the problem: CleanMyMac X had installed a lot of startup items. Like four. And Gemini had installed some too. This was not going to get any better with those hanging around. I decided that I was going to have to remove them, and the easiest way was to have CleanMyMac X do it. All credit to MacPaw: it simply warned me that it would shut down all the monitoring if I removed CleanMyMac X, did I want to do that? I did.

    And now the machine is running fine. I’m able to keep a couple of instances of Arturia’s 2600 emulator open and running with Live actively generating sound, and I can tweak the settings without significant effort or the sound breaking up. I ended up using Song Sergeant to do the Music Library cleanup; I can recommend it as doing a good job of finding duplicates, even in different formats.

    Conclusions

    The machine is slimmed down by about 250GB total and running fine; if I decide to do a similar cleanup again, I will probably use both Gemini II and CleanMyMac X to get the cleanup work done, but without being able to easily say no to the monitoring they install, I’ll probably delete them again as soon as I finish. MacPaw, if you’re reading this: make it optional to install the startup items, and give us an easy way to turn them off. If I had those I’d leave the two apps installed, but I just can’t and get any work done.

  • iTunes Ringtone UI Surprise

    You cannot drag and drop .m3r files into the Tones tab in iTunes. They must be pasted.

    Find your .m3r files in the Finder, select them all, File > Copy, click on the Tones tab in the iTunes sidebar, and File > Paste.

    No, it does not make any sense that drag and drop does not work. But it absolutely does not.

  • High Sierra Wifi Poor Performance Fix for 2010 MacBook Pro

    I’ve been working remotely at an AirBNB this week and was having a really frustrating time of it. The 2010-vintage MacBook Pro I have would connect to the Wifi, go for awhile — sometimes a half-hour, sometimes not more than a minute, — and then drop the connection. Shutting off wireless and reinstating it would restart the connection, but it would be unstable and drop again. The length of time it would stay connected was completely unpredictable, and whether or not it would reconnect, and how long it would take was also completely random.

    I was getting speed test results of 0.15 MB/s up and 0.18 down. This was unusable, and I fell back on my hotspot for any sustained connection. Weirdly, I could connect fine with the Amazon Dot I’d brought along – flawlessly, in fact. What was going on?

    Late Friday evening, after a particularly frustrating session attempting to get Netflix to work (I really wanted to see Disenchantment — great show, by the way!), I started doing some research and came across an article that recommended reducing the MTU for the wireless device to 1453 (from the default somewhere in the 1500’s). Really? Okay…

    Magic. It has now been solid for several hours, including streaming video. If you’re having any trouble at all, I’d recommend at least trying it. The article shows you how to set up a separate “location” with the different MTU, so it’s simple to switch it on or off as you choose.

    Update: 12 hours later, I’m getting terrible performance again. A little more searching turned up a tutorial on readjusting the MTU to optimum with ping. Reset your MTU size to default, then starting at your 1500, try the following commad (replacing mtusize with the actual number!):

    ping -D -s mtusize -c 2 google.com

    If you get “message too long” in the ping output, drop the MTU size a bit a try again. If you have no idea what MTU size is good, start at 1500, which will be too big, and go down by 100s until you start seeing “xxxx bytes from google.com:…” messages, which let you know your ping is getting through. You can then go up by tens until you get “message too long” again, then back down by 1’s until you find the maximum MTU size that doesn’t get “message too long”.

    I had to reduce my MTU size further to 1425, and I’m near 10 megabits/second again.