Type diskmgmt.msc in the Start search box and hit the OK button. Find the entry for your USB Storage device and right-click on it. Now select Offline. Now you can safely remove your USB Storage ...
Press OK button to assign the selected letter to your USB drive and confirm the changes. When prompted with the following message – Some programs that rely on drive letters may not run correctly.