Skip to content
Aqib Javed.
All guides

Mac guide

How to move a folder to an external drive on a Mac and keep it working where it was

By Aqib Javed · Updated Nov 30, 2026

Copy the folder to the drive, check that the copy matches, delete the original, then leave a symbolic link at the old path with ln -s "/Volumes/DriveName/Folder" "$HOME/Folder" in Terminal. Apps, scripts and Terminal then open the folder at its old path, as long as the drive is plugged in. Use a symlink, not a Finder alias: command-line tools and many apps don't follow aliases. Offload, a Mac app, does the copy, the check and the link in one step.

How to move a folder and leave a symlink in Terminal

Copy first, compare, and only then delete and link. Quit every app that uses the folder before you start, and run ls /Volumes to see your drive's exact name. Put quotes around every path, because a space in a folder or drive name splits the path in two otherwise. Inside quotes the shell doesn't expand ~, so write $HOME instead. You can also drag a folder from Finder into the Terminal window to paste its full path.

The example moves a folder called Video Projects from your home folder to a drive called Archive SSD. ditto is Apple's copy tool; it keeps dates, permissions and Mac metadata. diff -rq compares every file in the two folders and prints nothing when they match. If macOS asks whether Terminal may access files on a removable volume, allow it, or turn it on later under System Settings > Privacy & Security > Files & Folders.

# 1. Copy the folder to the drive
ditto "$HOME/Video Projects" "/Volumes/Archive SSD/Video Projects"

# 2. Compare the two. "Copies match" only prints if every file is the same.
diff -rq "$HOME/Video Projects" "/Volumes/Archive SSD/Video Projects" && echo "Copies match"

# 3. Delete the original. rm -rf skips the Trash, so run it only after step 2 printed Copies match.
rm -rf "$HOME/Video Projects"

# 4. Leave a symbolic link where the folder was
ln -s "/Volumes/Archive SSD/Video Projects" "$HOME/Video Projects"

# 5. Check it: the line starts with l and ends with -> and the drive path
ls -l "$HOME/Video Projects"

What can go wrong with the manual way

  • If the old folder still exists when you run ln -s, ln doesn't replace it. It puts the link inside that folder instead, and the old path keeps pointing at the old files. Delete the original first, after the compare.
  • To remove a link later, run rm with the link's path and nothing else: rm "$HOME/Video Projects". Never add a trailing slash or -r. rm -r on the link's path with a slash at the end follows the link and deletes the folder on the drive.
  • A typo in the drive name still creates a link, but one that points nowhere. ls -l shows where a link points, and cd into the link answers no such file or directory if the target is missing.
  • You don't need sudo for folders in your home folder. If a command asks for it there, stop and check the path.
  • A symlink is not a backup. After the move, the drive holds the only copy of the folder.

Why a Finder alias doesn't do the same job

An alias opens the original when you double-click it in Finder, but to Terminal, scripts and many apps it's just a small file, not a folder. Apple's developer documentation notes that, unlike symbolic links, aliases are not handled automatically by Cocoa; an app has to resolve them itself. A symbolic link stores a path, and macOS follows it for every app that opens it, which is why tools find their files through it.

The trade-off goes the other way when things move. An alias keeps track of the original if it moves on the same disk. A symlink only knows the path, so it breaks if the folder is moved or renamed, and the fix is to delete the link and make a new one. Finder's File > Make Alias only makes aliases. If you'd rather not type the link command, free Finder add-ons such as SymbolicLinker (it adds Make Symbolic Link to the Services menu) and Quick Symlink make the link for you; the copy and the check are still up to you.

What happens when the drive is unplugged or renamed

The link stays on your Mac but leads nowhere until the drive is back under the same name. macOS mounts an external drive at /Volumes/ followed by the drive's name, and that full path is what the link stores. While the drive is out, an app that opens the folder gets an error such as No such file or directory, so plug the drive in before you open the apps that use it.

Renaming the drive changes the path, so every link to it breaks. Keep the name, or point the link at the new one. ln -sfh replaces an existing link in place: -f replaces the old link and -h stops ln from following it into the folder.

ls /Volumes
ln -sfh "/Volumes/New Drive Name/Video Projects" "$HOME/Video Projects"

Drive format, iCloud Drive and Time Machine

  • Format the drive as APFS if only Macs will use it. Apple's Disk Utility guide calls APFS the default for macOS 10.13 or later. Mac OS Extended (Journaled) also works and suits a drive that older Macs need to read.
  • ExFAT is the format Apple suggests for drives that also need to work with Windows. If yours is ExFAT, open the moved folder with the apps that use it and check they work before you delete the original.
  • NTFS drives are read-only on a Mac, so you can't move a folder onto one without reformatting it.
  • With Desktop & Documents Folders turned on, macOS moves your Desktop and Documents folders into iCloud Drive, and Optimize Mac Storage can keep some files only in iCloud. Leave links out of iCloud Drive: move folders that live outside it, or turn that option off first.
  • Time Machine keeps a list of what it skips, under System Settings > General > Time Machine > Options. The moved folder now lives on the external drive, so check whether that drive is on the list, and remove it from the list if you want the folder backed up.

Moving a folder with Offload

  1. Download Offload from its page, unzip it, and drag it into your Applications folder.
  2. Plug in your external drive and open Offload. The setup asks which drive to use.
  3. Open Transfer and drop the folder on it.
  4. Choose To a drive, then Move and leave a link. The folder joins the queue and moves when its turn comes.
  5. When it's done, the folder is on the drive and a link sits where it was, so your apps and Terminal find it at the same path.
  6. To bring it back later, drop it on Transfer and choose To this Mac. If a folder ever ends up split between the Mac and the drive, Needs fixing repairs it.

Offload is a Mac app that moves any folder, apps with their data and developer data to an external drive and leaves a link behind, so paths don't change. Every file is read back from the drive and compared before the original is deleted. An interrupted move resumes or rolls back, and Offload refuses to overwrite anything already on the drive. It is $7.99 once for up to 2 Macs, free for 3 days from the first launch with no card, and needs macOS 14 Sonoma or later on Apple silicon or Intel.

Did this fix it?

Questions

Is an alias the same as a symbolic link on a Mac?

No. An alias is a Finder file that follows the original if it moves on the same disk, but Terminal and many apps don't follow it. A symlink stores a path that every app follows, and breaks if the target moves.

What happens to a symlink if the external drive is unplugged?

The link stays, but opening it fails until the drive is plugged back in with the same name. Nothing on the drive is lost.

How do I delete a symlink without deleting the folder?

Drag the link to the Trash in Finder, or run rm with the link's path in Terminal, without a trailing slash and without -r. Only the link goes; the folder on the drive stays.

Can I move my Documents folder to an external drive?

Check iCloud first. If Desktop & Documents Folders is on, Documents lives in iCloud Drive and iCloud manages it, so leave it there and move other folders instead. If it's off, the same steps work; keep the drive plugged in whenever you use the Mac.

How do I move the folder back to the Mac?

Delete the link with rm, copy the folder back with ditto, compare the two with diff -rq, then delete the copy on the drive.