While wanting to upgrade MongoDB from 3.4 to 3.6 I went into the
/etc/apt/sources.list.d directory. From there I wanted to move the
mongodb-org-3.4.list.save files to my home directory.
I first executed a
mv mongodb-org-3.4 ~/*. For some reason I managed to move the wildcard to the end of the command. After seeing the notification
mv: cannot stat 'mongodb-org-3.4': No such file or directory, I then "corrected" this by typing
mv mongodb-org-3.4* ~/*, again with the wildcard at the end. I did not use sudo, I was not root.
As a response for
mv mongodb-org-3.4* ~/* I got
mv: cannot remove 'mongodb-org-3.4.list': Permission denied mv: cannot remove 'mongodb-org-3.4.list.save': Permission denied mv: inter-device move failed: '/home/user/atlassian' to '/home/user/windows-storage/atlassian'; unable to remove target: Directory not empty mv: inter-device move failed: '/home/user/data' to '/home/user/windows-storage/data'; unable to remove target: Directory not empty mv: cannot create symbolic link '/home/user/windows-storage/dockervolumes/sharemanager': Read-only file system
I then went into the
/home/user/windows-storage directory and ls'd it, only to find that probably all of my home directory got copied (???) to this mounted directory.
Have I damaged something? Or have I "only" copied the home directory to this mounted directory?
Why did this
mv command somehow behave like
Ok, turns out files were moved, but not all, since I Ctrl+\ because it was taking an unusually long time to finish