same beahaviour in lubuntu natty:
Code:
~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
1. create a folder on your desktop
for example ~/Desktop/test/
2. mount an external usb on which there's a folder on which you don't have write permission
for example /media/usbdisk/nowrite/ root:root 755
3. cut your folder on the desktop & paste it on the usb folder using the gui,
which simply means:
- right-click on the folder "test" on your desktop and choose "cut"
- use your filemanager to go to the usb folder and right-click on it and choose "past"
4. A window with the progress bar will open with an error on it saying "test: Error creating directory: permission denied"
After that the original folder "test" on the desktop disappears, and of course there's no copy on the target folder.
As a consequence you loose your original folder and all data in it!
The original folder is removed while the error window is shown, the removing process doesn't wait for the user to press the close button on that window.
So you don't have time enough the create a copy on the fly either while receiving this error, you just loose your data if you do this error.
Using mv from the command line keeps the original:
Code:
$ cd ~/Desktop
$ mv "test" "/media/usbdisk/nowrite/"
mv: cannot create folder "/media/usbdisk/nowrite/test": Permission denied
and the original folder "test" on your desktop is correctly kept.
Thus it's not something about the mv command, but it's something about the gui interaction.
This happens only with cutting folders and pasting them on a usb destination folder on which you don't have write permission.
Is it a bug?
Bookmarks