MacOS – inifinitely regressing “ls” drive under “Volumes”

command linegithard drivemacos

First of all, I am aware the "ls" command means list all items in a directory.

Yesterday an icon appeared on my desktop with a picture of a drive labeled "ls". Looking in the terminal, I see that it is in the Volumes folder, and appears to contain everything on my mac, including a Volumes folder that contains an ls drive etc etc. I am not sure what to make of this. I looked at my terminal command history to see if I did something, and the only unusual use of "ls" I have it when I accidentally typed "git config ls" instead of "git config list" in the middle of other activity. I am new to git and was following a recipe, so don't know if config could cause something like this.

More info: When I create or alter a file (eg something like a screenshot that automatically saves to desktop), it appears / alters in the version of everything "inside" this ls drive, as though I am currently working inside of it all the time. The file also is accessible through (or a copy is accessible through) the normal path.

> diskutil list
/dev/disk0 (internal, physical):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      GUID_partition_scheme                        *121.3 GB   disk0
   1:                        EFI EFI                     209.7 MB   disk0s1
   2:                 Apple_APFS Container disk1         121.1 GB   disk0s2
/dev/disk1 (synthesized):
   #:                       TYPE NAME                    SIZE       IDENTIFIER
   0:      APFS Container Scheme -                      +121.1 GB   disk1
                                 Physical Store disk0s2
   1:                APFS Volume Macintosh HD - Data     102.4 GB   disk1s1
   2:                APFS Volume Preboot                 81.4 MB    disk1s2
   3:                APFS Volume Recovery                528.8 MB   disk1s3
   4:                APFS Volume VM                      3.2 GB     disk1s4
   5:                APFS Volume ls                      11.1 GB    disk1s5

Best Answer

The results of the command diskutil list show that the the Catalina system as be renamed ls and should be named "Macintosh HD" because the "Data" drive is named "Macintosh HD - Data".

The terminal command:

diskutil rename disk1s5 "Macintosh HD"

will repair this.