[Important Security Notice] Fake Qfinder Pro Websites Detected. Learn more >

Why can't I remove an external storage device from my NAS after accessing a shared folder on it, and then accessing a NAS shared folder?


Last modified date: 2023-05-15

Applicable Products

All NAS series


Scenario

You may encounter the issue in the following scenario:

  1. You connect to your NAS using a Windows device.
  2. You access a shared folder on an external storage device (such as "/USBDisk1").
  3. You then access a shared folder that is stored on the NAS (for example: "/Public").
  4. The external storage device now cannot be removed.

Limitations

Use the net use command in Windows to check the Samba connection and if the previous /UBSDisk1 is still connected. The reason is Samba regards the same client to the NAS as the same PID during multiple accesses, and cannot close session(s) to a specified share.

Windows will stay connected for the first shared connection, and if the connection is kept, the external storage device cannot be removed.

This is a limitation of Samba. The connection will be closed automatically after a period of time. If you want to remove the external storage device normally within a short time, we recommend that you use the command net use /delete to delete the connection directly or to restart the client computer to flush the connection record. After being disconnected, the external storage device can be removed.


Further Reading

Net use | Microsoft Learn

Was this article helpful?

50% of people think it helps.
Thank you for your feedback.

For further assistance, ask other users and QNAP experts in the community. Go to QNAP Community

Please tell us how this article can be improved:

If you want to provide additional feedback, please include it below.

Choose specification

      Show more Less
      This site in other countries/regions:
      Chat with us! Chat with us!
      back to top