I have a small IOMega Network drive, that I thought would be useful to transfer stuff to and from the RPi.
The network drive is on IP address 192.168.1.250 and amongst the several shares on it, there is one called "General".
I made a directory in /media called General and did the following:
sudo mount -t cifs //192.168.1.250/General /media/General
Lo and behold I was able to list the files on the network drive.
Ok, now to unmount the share, I tried:
sudo umount /media/General
Only to be told:
umount: /media/General: device is busy.
(In some cases useful info about process that use
the device is found by lsof(8) or fuser(1))
fuser -m /media/General
ps | grep 1503
tells me that the process using the share is the current terminal session. Only to be expected, but all I have done is list files in the share, not opened any files or anything like that.
How do I get the current session to release its hold on the shared volume? Do I have to exit session and log back in? Surely not?