I'm trying to run the fatsort command on a FAT-32 thumb drive Whenever I do, it fails with a "Resource busy!" error (See below). The cause of this issue is the Spotlight mds process running in /Volumes/SANDISK, where disk1s1 is mounted. I've tried the following to no avail:
-Adding /Volumes/SANDISK to the "Privacy" section in the Spotlight settings
-sudo mdutil -i off /Volumes/SANDISK (Disable spotlight on volume)
-sudo mdutil -a -i off (Disable spotlight on all volumes)
-touch /Volumes/SANDISK/.metadata_never_index (Spotlight should not index if this hidden file exists in volume)
I've tried killing it, using activity monitor, nothing works. No matter what I do the mds process is always busy in /Volumes/SANDISK.
HOW DO I STOP MDS FROM ACCESSING THIS VOLUME?
bernie@MacBook:~> s fatsort -f /dev/disk1s1
openFileSystem: Resource busy!
sortFileSystem: Failed to open file system!
main: Failed to sort file system!
-Adding /Volumes/SANDISK to the "Privacy" section in the Spotlight settings
-sudo mdutil -i off /Volumes/SANDISK (Disable spotlight on volume)
-sudo mdutil -a -i off (Disable spotlight on all volumes)
-touch /Volumes/SANDISK/.metadata_never_index (Spotlight should not index if this hidden file exists in volume)
I've tried killing it, using activity monitor, nothing works. No matter what I do the mds process is always busy in /Volumes/SANDISK.
HOW DO I STOP MDS FROM ACCESSING THIS VOLUME?
bernie@MacBook:~> s fatsort -f /dev/disk1s1
openFileSystem: Resource busy!
sortFileSystem: Failed to open file system!
main: Failed to sort file system!