You are not logged in.

#1 2018-08-21 04:42:23

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

vboxsf: Error message after update

Hello,
I am using Arch Linux from time to time in a VirtualBox VM. After I didn’t use the VM for a long time I made an update. First I updated VirtualBox to 5.2.18. Then I updated Arch Linux via pacman –Syu.
Every time I boot I get the following error message in front of the login prompt:
vboxsf: Old binary mount data not supported, remove obsolete mount.vboxsf and/or update your VBoxService.

My mount in .bashrc doesn’t work:
sudo mount -t vboxsf D_DRIVE /home/papa/d

I did a search and found the following link:
https://bugs.archlinux.org/task/58272

Unfortunately I don’t understand how to fix the problem. I hope someone can help me with step by step instructions.

Offline

#2 2018-08-21 04:57:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: vboxsf: Error message after update

Not an Installation issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2018-08-21 06:38:00

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: vboxsf: Error message after update

Did you reboot after the update?

uname -r
file `which mount.vboxsf`

Try

sudo mount -cit vboxsf D_DRIVE /home/papa/d

but on an unrelated note: you probably don't want to handle that in your .bashrc at all.

Offline

#4 2018-08-21 17:34:46

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

Re: vboxsf: Error message after update

Yes, I rebooted.

The commands
uname -r
file `which mount.vboxsf`

didn’t show me the files, but I found mount.vboxsf in /usr/bin/ and /usr/lib/virtualbox/

I have tried the mount –cit and got these error messages:
Kobject_add_internal failed for vboxsf-D_DRIVE with –EEXIST, don’t try to register things with the same name in the same directory.
mount: d: mount(2) systemcall failed: the file already exists.

I found out that I could add something in /etc/fstab, but I don’t know how.
What can I do now?

Offline

#5 2018-08-21 18:51:20

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: vboxsf: Error message after update

didn’t show me the files

I do not understand what you're suggesting to have expected from that output, but you are expected to post that output.

The following mount failure suggests that something has already been mounted into this path.

https://wiki.archlinux.org/index.php/Fstab

Offline

#6 2018-08-21 19:26:08

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

Re: vboxsf: Error message after update

This is the output from uname -r: 4.18.3-arch1-1-ARCH

file `which mount.vboxsf` gives me an error message:
which mount.vboxsf: cannot open 'which mount.vboxsf' (No such file or directory)

Offline

#7 2018-08-21 19:37:19

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: vboxsf: Error message after update

Those are backticks....
Try "file $(which mount.vboxsf)"

Offline

#8 2018-08-21 19:47:10

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

Re: vboxsf: Error message after update

This is the output from file $(which mount.vboxsf):
/usr/bin/mount.vboxsf: Bourne-Again shell script, ASCII text executable

This is the content of the file:
#!/bin/bash

# Hopefully this works as intented, supporting both pre-4.16 and newer kernels
# https://bugs.archlinux.org/task/58272#comment168687

kver_major=$(uname -r | cut -d. -f1)
kver_minor=$(uname -r | cut -d. -f2)

if ((kver_major * 100 + kver_minor < 416)); then
    exec /usr/lib/virtualbox/mount.vboxsf "$@"
fi

# mount(1) annoyingly prepends the current directory to the source
name=${1#$PWD/}; shift

# Mainline vboxsf accepts regular mount opts
exec /usr/bin/mount -cit vboxsf "$name" "$@"

Offline

#9 2018-08-22 05:43:13

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,491

Re: vboxsf: Error message after update

Please use code tags for posting scripts or shell output.

So the actual mount.vboxsf should not be invoked in the first place, did you replace the entry in your bashrc w/ "sudo mount -cit vboxsf D_DRIVE /home/papa/d" (and reboot) when you got the EEXIST or did you just try to run it after multiple attempts to mount the drive?

Offline

#10 2018-08-22 06:07:00

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

Re: vboxsf: Error message after update

I apologize for not knowing how to use this forum editor. I am going to learn it.

I had tried to mount in a terminal without reboot.
Now I have renamed both mount.vboxsf files. Then I have edited the .bashrc file and changed the mount command option to –cit. After a reboot I still get the error message that is in my post #1.
After logging in I don’t get an error message now, but if I look into the mounted directory, it is empty.

Offline

#11 2018-11-23 23:38:06

Papa Echo
Member
Registered: 2017-07-25
Posts: 23

Re: vboxsf: Error message after update

Here is an update to my problem:
Kernel 4.18 obviously had some issues with the integration of VirtualBox Guest Editions.

The problem could be solved with a single change in the settings of Virtualox:
1. Click on “Shared folders”.
2. Mark the folder and then click on change
3. Remove the check for “Automatic mounting”

Offline

Board footer

Powered by FluxBB