Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1218  / 3 Years ago, thu, august 5, 2021, 8:50:40

I was trying to break some files out of my VirtualBox install of Ubuntu, and I accidentally mounted a VirtualBox shared folder onto ~, thereby erasing the very files I was trying to get at. Is there any way to recover my hard work, or am I just going to have to sudo rm -f /bin/mount and start over?



And no, I don't seriously intend to rm -f /bin/mount.


More From » mount

 Answers
5

Mounting just hides the files under the mount point, it doesn't change them. If you unmount the VB share, you'll see your files again. You don't even need to unmount the share; you can move it:



mkdir /media/foo
mount --move ~ /media/foo

[#44434] Saturday, August 7, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
emuralm

Total Points: 290
Total Questions: 111
Total Answers: 117

Location: China
Member since Thu, Sep 1, 2022
2 Years ago
;