Birds Like Wires

Pop search terms in here.

Showing 'command line' tagged articles.

Feed the Birds

Prevent Automounting on macOS

With huge external drives being far more affordable these days I usually have one hooked up permanently to my laptop dock for Time Machine. But I don’t need all that space dedicated to backup, so it gets chopped up into a backup partition, an encrypted APFS storage container and a bunch of 20 GB partitions which hold a bootable macOS backup, plus a couple of recent macOS installers – just in case I end up having a really bad day.

However, in common with many Mac users I’m sure, I can’t be dealing with all that clutter on the desktop or Finder sidebar when so many partitions are mounted. What a mess! Luckily, /etc/fstab is still a thing you can use in macOS Mojave, so there’s a quick and easy way to prevent these emergency-use volumes from mounting automatically.

First of all, plug in the drive and let everything mount, then fire off a diskutil list in Terminal. You’ll see all of your drives and their identifiers. In my example the external drive shows up as disk2 with various partitions being disk2s1, disk2s2, etc.

Continue Reading →
, ,

Failed Core Storage Conversion

We have a Mac mini connected to an external storage box via FireWire. In a reasonably sensible manner, someone pointed Time Machine at one of the volumes on the DAS, thinking they should back the machine up to this location. They also thought also it would be best to encrypt the backup; very laudable.

However, this triggered a conversion process into an Apple Core Storage volume, which did not complete successfully. Luckily, OS X stopped trying and remounted the volume as HFS+. All appeared to be well, but after a reboot things were much less cheerful.

On restarting the machine, the volume was missing. Checking with diskutil list returned this layout:

/dev/disk1
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *17.6 TB    disk1
   1:                        EFI EFI                     209.7 MB   disk1s1
   2:                  Apple_HFS Backup                  2.0 TB     disk1s2
   3:          Apple_CoreStorage                         15.6 TB    disk1s3
   4:                 Apple_Boot Boot OS X               134.2 MB   disk1s4

But diskutil cs list returned this:

Continue Reading →
, , , , , ,