You are not logged in.
Pages: 1
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
Not an Installation issue, moving to NC...
Offline
Did you reboot after the update?
uname -r
file `which mount.vboxsf`Try
sudo mount -cit vboxsf D_DRIVE /home/papa/dbut on an unrelated note: you probably don't want to handle that in your .bashrc at all.
Online
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
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.
Online
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
Those are backticks....
Try "file $(which mount.vboxsf)"
Online
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
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?
Online
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
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
Pages: 1