Skip to main content
Include changes from comments so no restart is required.
Source Link

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0666 /etc/synthetic.conf
sudo FOLDER_NAME='...'
ACTUAL_PATH_TO_REAL_FOLDER='...'
echo "FOLDER_NAME-e "${FOLDER_NAME}\t${ACTUAL_PATH_TO_REAL_FOLDER}" | ACTUAL_PATH_TO_REAL_FOLDER"sudo >>tee -a /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t

The apfs.util -t command should allow modifications without requiring a restart, but if it does not work then a restart should make the new entries appear at root.

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0666 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0666 /etc/synthetic.conf
FOLDER_NAME='...'
ACTUAL_PATH_TO_REAL_FOLDER='...'
echo -e "${FOLDER_NAME}\t${ACTUAL_PATH_TO_REAL_FOLDER}" | sudo tee -a /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf
/System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t

The apfs.util -t command should allow modifications without requiring a restart, but if it does not work then a restart should make the new entries appear at root.

edited body
Source Link
nohillside
  • 104.5k
  • 42
  • 222
  • 275

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 07770666 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0777 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0666 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf
add a reminder in the example without a starting /
Source Link

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    /Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0777 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    /Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)

sudo touch /etc/synthetic.conf
sudo chmod 0777 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf

Here's a copy and paste for terminal to set this up:

# Be sure to change:
# FOLDER_NAME   - the root folder name. 
# ACTUAL_PATH_TO_REAL_FOLDER - the path to the "real" folder.
# 
#    Example: 
#    "Drives    Users/bob/Documents/Drives"
#    .......^ this is tab (not spaces)
#    Both of FOLDER_NAME and ACTUAL_PATH_TO_REAL_FOLDER are not starting with /

sudo touch /etc/synthetic.conf
sudo chmod 0777 /etc/synthetic.conf
sudo echo "FOLDER_NAME  ACTUAL_PATH_TO_REAL_FOLDER" >> /etc/synthetic.conf
sudo chmod 0644 /etc/synthetic.conf
sudo chown root:wheel /etc/synthetic.conf
no need for -R (recursive) on file
Source Link
Loading
Source Link
Loading