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?
Applicable Products
All NAS series
Scenario
You may encounter the issue in the following scenario:
- You connect to your NAS using a Windows device.
- You access a shared folder on an external storage device (such as "/USBDisk1").
- You then access a shared folder that is stored on the NAS (for example: "/Public").
- 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
For further assistance, ask other users and QNAP experts in the community. Go to QNAP Community