0

I have a USB stick which is used for backup in a Linux VM (via parallels). Everything works fine there, except that every time the VM is powered off, the USB stick is handed back to macOS, which promptly shows me a happy little dialog to offer initializing the stick. It's even kept on top for extra happiness.

More than the mere annoyance of clicking "Ignore" each time, or just leave the damn thing on, I worry that the chances of me clicking that "Initialize" button, small as they may be, become significant when repeated infinitely often. So I went on the trail of yet another one of these little macos things that should be a few seconds but then you find yourself stuck in a two-day black hole of time and soul sucking.

Everywhere I look, there's the usual vifs dance of finding the UUID and blacklisting it for no automounting. But my stick is a mostly a mystery to macOS -- it doesn't see any UUID, and FS type, no nothing. (The complete diskutil info and system report are below.) This is the closest question I could find, but that discussion reached no definitive conclusion.

I tried using the UUIDs that Linux gave me for the disk and for the partition. Also, macOS does show something when I try to extract information about the partition (disk2s1) only that's a different UUID. I tried adding the magic lines for all three UUIDs, but nothing helps. Not surprising given that one component of that magic is hfs which this is not.

So, how do I prevent macOS from trying to mount this stick?

(Things that I want to avoid: reformatting it in the mac for using some other mac FS, installing some ext4 driver (since the idea of a driver that would be used just to not mount a drive is offensive), or sacrificing a goat.

One thing that I would consider a half-assed solution is to just disable all automounting.)


$ diskutil info disk2
   Device Identifier:         disk2
   Device Node:               /dev/disk2
   Whole:                     Yes
   Part of Whole:             disk2
   Device / Media Name:       SanDisk 3.2Gen1

   Volume Name:               Not applicable (no file system)
   Mounted:                   Not applicable (no file system)
   File System:               None

   Content (IOContent):       GUID_partition_scheme
   OS Can Be Installed:       No
   Media Type:                Generic
   Protocol:                  USB
   SMART Status:              Not Supported

   Disk Size:                 494.2 GB (494206451712 Bytes) (exactly 965246976 512-Byte-Units)
   Device Block Size:         512 Bytes

   Media OS Use Only:         No
   Media Read-Only:           No
   Volume Read-Only:          Not applicable (no file system)

   Device Location:           External
   Removable Media:           Removable
   Media Removal:             Software-Activated

   Solid State:               Info not available
   Virtual:                   No

$ diskutil info disk2s1
   Device Identifier:         disk2s1
   Device Node:               /dev/disk2s1
   Whole:                     No
   Part of Whole:             disk2

   Volume Name:               Not applicable (no file system)
   Mounted:                   Not applicable (no file system)
   File System:               None

   Partition Type:            Linux Filesystem
   OS Can Be Installed:       No
   Media Type:                Generic
   Protocol:                  USB
   SMART Status:              Not Supported
   Disk / Partition UUID:     697A2A16-285F-418D-9CB0-3AE349F50F38
   Partition Offset:          1048576 Bytes (2048 512-Byte-Device-Blocks)

   Disk Size:                 494.2 GB (494204354560 Bytes) (exactly 965242880 512-Byte-Units)
   Device Block Size:         512 Bytes

   Media OS Use Only:         No
   Media Read-Only:           No
   Volume Read-Only:          Not applicable (no file system)

   Device Location:           External
   Removable Media:           Removable
   Media Removal:             Software-Activated

   Solid State:               Info not available

System report info:

 SanDisk 3.2Gen1:

  Product ID:   0x5591
  Vendor ID:    0x0781  (SanDisk Corporation)
  Version:  1.00
  Serial Number:    04013dd539bdbc9ee86ce8fe9b85d90ca5e7c05737f84b114db8c67b79112931829e00000000000000000000c34487e8ff0cc718915581071eac8ae1
  Speed:    Up to 5 Gb/s
  Manufacturer:  USB
  Location ID:  0x01240000 / 4
  Current Available (mA):   900
  Current Required (mA):    896
  Extra Operating Current (mA): 0
  Media:
SanDisk 3.2Gen1:
  Capacity: 494.21 GB (494,206,451,712 bytes)
  Removable Media:  Yes
  BSD Name: disk2
  Logical Unit: 0
  Partition Map Type:   GPT (GUID Partition Table)
  S.M.A.R.T. status:    Verified
  USB Interface:    0
  Volumes:
disk2s1:
  Capacity: 494.2 GB (494,204,354,560 bytes)
  BSD Name: disk2s1
  Content:  Linux Filesystem
New contributor
Eli Barzilay is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
1
  • (For the record, I called it macos...) May 11 at 7:24

0

You must log in to answer this question.

Browse other questions tagged .