Mac solves the problem of mobile hard disk files showing gray

When opening the files in the mobile hard drive on Mac, the files are gray. Inoperable

  1. Open the terminal and enter ls -@eln /Volumes/your hard drive name/
    and a bunch of files will appear.
  2. Then enter xattr -d -r com.apple.FinderInfo /Volumes/your hard drive name/*
    and wait a few seconds. Then open the hard drive and take a look. The gray color will change to color.

The solution for macos big sur:
For a gray file,
enter xattr -c in the terminal, then drag the file to the terminal and press Enter.
For all gray files in the folder,
it is similar to a single file. In the terminal Enter xattr -c -r, then drag the folder to this terminal and press Enter

Guess you like

Origin blog.csdn.net/m0_46504700/article/details/131211872