Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

thebart

macrumors 6502a
Original poster
Feb 19, 2023
637
670
I have a T7 Shield SSD and when first setting it up, I thoughtlessly went with the default volume name "T7 Shield". This isn't strictly a problem only mildly inconvenient at times on the command line.

But now, I'm trying to install android studio and it tells me not to install the sdk in a path with space as it will cause problems with NDK. So I want to rename the volume once and for all.

How can I do this without breaking a bunch of apps? Can I alias the old name somehow?

Thanks
 
answering my own question: yes it is possible.

Rename the folder in Finder

In terminal

Code:
cd /Volumes
sudo ln -s new-name old-name

In my case

Code:
sudo ln -s T7 T7\ Shield

This lets most apps to follow the old name to the new name. Some apps get broken and have to be fixed manually
 
  • Like
Reactions: Basic75
You can put the symlink anywhere. For example:
ln -s "/Volumes/T7 Shield" "/Users/Shared/T7"

Then point the app at the /Users/Shared symlink. You can also update the symlink later, i.e. point it somewhere else.

 
Apps that are not poorly written should not care about the volume name.

Perhaps Android Studio is the only poorly written app you have, and all the other ones will not care if you rename the volume to "T7Shield".

The volume name is used for the name of the mountpoint in /Volumes and it will change if you have multiple volumes with the same name. For example, if you connected another "T7Shield", then it would have a mountpoint named "T7Shield 1" even though it will appear as "T7Shield" in the Finder.
 
  • Like
Reactions: chown33
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.