GNOME Bugzilla – Bug 95302
Dangerous behavior when moving the icon for a partition mounted in home dir
Last modified: 2004-12-22 21:47:04 UTC
Description of Problem: I keep all my important files on a separate disk partition from my main linux install, so that I can access them from other operating systems. When in linux, this partition is mounted off my home directory, at /home/abe/files. Yesterday I went to rearrange some of the icons on my desktop (I'm using the "home directory on the desktop option), and I dragged the "files" icon to another part of the screen. To my surprise, Nautilus popped up the "copying files" dialog. I thought that maybe I'd dropped the icon on another folder instead, so I hit cancel. After a couple of seconds, the "copying files" dialog dissapeared, and a "deleting files" dialog popped up intstead. That seemed strange, but I assumed it was just removing the copies it had started to make. However, after a few seconds, I realized it was deleting all the files in my original "files" folder!!! Of course I quickly hit cancel, and it stopped deleting. But seeing my most important files dissapearing (yes, I have a backup, but it's a few days old and I've done some work since then) was very scary. As far as I can tell this bug is caused by the convergence of desktop-as-home-dir and the way Nautilus handles seperate partitions. Rather than just moving the icon, Nautilus actually wanted to start copying files, and then it seemed to think the original source directory was the target directory and that it needed to be cleaned up. Steps to reproduce the problem: 1. Use home dir as desktop 2. Mount a partition in your home dir 3. Try to move the icon for the mounted partition Actual Results: Nautilus tries to make a copy of the directory; if the copy is cancelled, it deletes the _original_ directory Expected Results: The icon should be moved without affecting the underlying filesystem. How often does this happen? Twice, and now I'm afraid to try it again ;-) Additional Information:
Did you actually check that any of the origional files were deleted. I suspect that nautilus was deleting the files it had started copying. That would make this a dupe of bug 61269. I'm going to try to reproduce this with some unimportant files and if I cannot I'll mark as a dupe.
I'm pretty sure the files were being deleted. But since then I've switched to using a single partition for everything, so I can't do a test to verify it. In any case, the core problem is that Nautilus thinks that dragging an icon == moving a folder. If bug 61269 gets fixed I think you wouldn't have to worry about this.
Has this changed in later releases?
*** This bug has been marked as a duplicate of 128095 ***