Ubuntu 10.04: an error occurred while mounting /mnt/hgfs

4

1

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

aneuryzm

Posted 2010-05-08T13:10:38.800

Reputation: 1 765

3

Maverick 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.

– quack quixote – 2010-05-08T13:51:39.303

yeah I guess it is Lucid then. I just downloaded the last stable version from ubuntu website. – aneuryzm – 2010-05-08T14:24:21.810

Answers

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

Don Kirkby

Posted 2010-05-08T13:10:38.800

Reputation: 883

1

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.

binil

Posted 2010-05-08T13:10:38.800

Reputation: 111

Comment 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. – Ivo Flipse – 2010-06-15T11:20:02.307

I'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 – 2013-03-12T15:04:33.020

to see what mounts: mount -t vmhgfs .host:/NAME_OF_THE_SHARE /mnt/hgfs – Martin Zeitler – 2013-03-12T15:39:32.910

1

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.

goddino

Posted 2010-05-08T13:10:38.800

Reputation: 11

0

Have you tried reinstalling the VMware tools or running vmware-config-tools? It sounds like the Host-Guest filesystem kernel extension isn't loading at boot-time, and reinstalling/reconfiguring the VMware tools will rebuild your initrd image and allow the module to be loaded at boot time.

Josh

Posted 2010-05-08T13:10:38.800

Reputation: 7 540

yes I've run again vmware-config-tools. The configuration ended but still the same error. And I cannot drag and drop anything. – aneuryzm – 2010-05-08T17:17:55.160

What does dmesg|tail say? Post that as an edit to your question. – Josh – 2010-05-09T22:55:40.057

0

Re-installing vmware tools can fix this problem.

Miles

Posted 2010-05-08T13:10:38.800

Reputation: 1

0

In my case, I managed to fix this problem by enabling the shared folders feature in the VMWare GUI.

If you want to use the shared folders feature, look at the top of the running VM window and go to Virtual Machine->Virtual Machine Settings->Options tab->Shared Folders, and make sure Shared Folders is enabled.

You might not want to use the shared folders feature, for example if the VM is untrusted and you don't want to give it access to any folders on your physical machine. If so, choose from one of the answers that modify the fstab to allow uninterrupted boot without the hgfs/Shared-Folders feature.

gmatht

Posted 2010-05-08T13:10:38.800

Reputation: 2 084