1

I have a new(ish) installation of Ubuntu in a VirtualBox, with OSX as a host machine. I was attempting to mount a shared folder into Ubuntu, so typed in the terminal:

sudo mount -t vboxsf VBShare ~/

...or similar, expecting to mount the folder in my home. However, what appears to have happened is that the folder has replaced my home folder, which now just contains the files from the shared folder.

(There is a chance I also tried something like:

sudo mount -t vboxsf VBShare /home/michael/

)

What has happened? Is recovery a possibility? What should I have done instead? I haven't tried a restart yet...

1 Answers1

1

Just run

sudo umount ~

to unmount the drive. See this question about mount overwriting directories.

In the future, you should make a new directory and then mount to there. For example

sudo mkdir /media/Share

sudo mount -t vboxsf VBShare /media/Share.

Kris Harper
  • 13,705