TextEdit can't save .txt files on Mac

Today, I copied some html files to my external hard drive and edited it with TextEdit. After saving the changes, I opened it in Chrome, but Chrome says “The page is not found.” Then every txt file on the external drive I open with TextEdit won’t be saved after editing. I have to copy the txt file to my local drive to save them and then copy it back. Please help me fix this!

What if you duplicate the file and then save it? Open the file, click File > Duplication, then save the file to your external drive.
Will it save fine to your external drive?

Here’s a workaround:

  1. Modify the txt file in TextEdit.
  2. When saving a new file, navigate back to the root system volume Macintosh HD. If the file’s already saved, continue with step 3.
  3. Click File > Move To from the menu bar.
  4. From the Where drop-down menu navigate to your external drive.

Save to a different folder on Mac, such as Documents, and then move the file to your external drive.