Ubuntu 10.04: an error occurred while mounting /mnt/hgfs
Solution 1
I just had the same problem with shared folders on Ubuntu 10.04 under VirtualBox and found this post with a workaround. Hopefully, VMWare will have a similar solution.
First, comment out the share mounting line in /etc/fstab. It looks something like this:
SharedFolderName /mount/path vboxsf rw 0 0
Then edit the /etc/rc.local file to add the mount point. It will look something like this:
mount.vboxsf -w SharedFolderName /mount/path
Solution 2
As mentioned here, editing the /etc/fstab
with:
.host:/ /mnt/hgfs vmhgfs rw,ttl=1,uid=my_uid,gid=my_gid,nobootwait 0 0
worked for me.
Solution 3
I'm using VirtualBox to run Ubuntu virtual machine. I just had this error after doing an update on Ubuntu-10.04 and restarting.
I reinstalled Guest Additions (no need to uninstall on your own - just install it the same way you installed it the previous time) and the shared folders were working again. Did not need to do anything else.
Related videos on Youtube
deaton.dg
Updated on September 17, 2022Comments
-
deaton.dg almost 2 years
I'm emulating Ubuntu using VMWare and I've upgraded it to last stable 10.04 version.
When I boot the system I get this error (below the Ubuntu logo):
"an error occurred while mounting /mnt/hgfs"
I made a screenshot: http://dl.dropbox.com/u/72686/mountError.png
So I have to click S to continue and the the OS seems to work well.
Thanks
-
quack quixote about 14 yearsMaverick is Ubuntu 10.10, which is so new it's not even alpha yet. do you mean Lucid (Ubuntu 10.04)? if you really are testing Maverick, you should probably post this to the Ubuntu dev forums or Launchpad.
-
-
Josh about 14 yearsWhat does
dmesg|tail
say? Post that as an edit to your question. -
Ivo Flipse about 14 yearsComment for Peiwang: I tried the method of editing the /etc/fstab with .host:/ /mnt/hgfs vmhgfs rw,ttl=1,uid=my_uid,gid=my_gid,nobootwait 0 0 but it still remains the problem. I still have to press S to continue.
-
Martin Zeitler over 11 yearsI'd say this is the most proper answer... the S error-message only means that the mount-point hasn't been configured properly. Just test manually once what mounts and use those parameters in fstab. Adding the concrete name of the share to the path with numeric uid/gid should make it work.
-
Martin Zeitler over 11 yearsto see what mounts: mount -t vmhgfs .host:/NAME_OF_THE_SHARE /mnt/hgfs