One possibility that I just ran into is that you've added a device to your system that causes other "auto mapped" devices to bump up over the mapped drive.
Say you have M mapped to a network drive, but you add a new harddrive, that then causes all the removable drives (even though they don't have anything inserted into them) to bump up a letter (or two).
Now, suddenly, one of the removeable drives is mapped to M.
Your network drive can no longer be mapped to M, and when you try to remove the mapping, it'll give you a "Device already in use" error.
Open up "Storage/Disk management" and check ALL the drives for any mapping that might be on top of the drive you want to map.
If there, just remap that drive to something else.
Then you should be able to use NET USE to attach to your network drive properly.
My shared folders were on a VM whose / partition was full. Cleared some space and it all started working again. Thanks for the hint! – None – 2015-11-03T23:14:55.280
The following MS support article identifies a problem that has the described symptoms. Resolution is to change a registry value. https://support.microsoft.com/en-us/kb/253821
– None – 2015-11-19T05:07:05.887net use is the typical way to check. I'm not sure why it would be claiming to be in use if it is not there. – Jeff F. – 2011-02-01T14:30:50.793
@Jeff: exactly, also not clear for me – Timofey – 2011-02-01T14:34:55.907
@Tim silly question: Have you rebooted? Also have you ensured that no physical device is using that letter(in disk management) – Jeff F. – 2011-02-01T14:37:23.487
@Jeff: I use 2 physical disks that are partitioned into C:\ and V:\ correspondingly + 2 network resources that are mapped to W:\ and Z:\ as you see there is no I:\ among them. Why do I have to reboot? – Timofey – 2011-02-01T14:42:18.217
@Tim reboots have been the universal MS fixer since 3.0 :) – Jeff F. – 2011-02-01T14:43:42.950
@Jeff: Ok, I try it now – Timofey – 2011-02-01T14:44:30.180
If the network resource is on an XP machine, there's a bug in XP. You can check the Microsoft Knowledgebase to see if there's a hotfix. – Paused until further notice. – 2011-02-01T14:46:18.133
@Dennis: I can freely map a network resource to another device, for example, K:\ but still no success with I:\ It looks like there is no bug in the machine where the network resource is or? – Timofey – 2011-02-01T14:52:56.047
@Jeff: btw restart didn't help unfortunately – Timofey – 2011-02-01T14:53:16.703
@Tim, I doubt this will work but try net use I: /delete – Jeff F. – 2011-02-01T14:54:36.203
@Jeff: Unfortunately didn't help: Command: net use /DELETE I: Result: The network connection could not be found. – Timofey – 2011-02-01T14:57:12.250
I have noticed that there are also C:, E:, F:, G:, H:, I:, V:\ are missing when I try to map a network device via user interface. C:, V:\ are used as partitions and E:\ - for DVD/CD-ROM. I don't understand where are F:\ G:\ H:\ and I:\ – Timofey – 2011-02-01T15:02:11.697