mount.vboxsf: mounting failed with the error: No such file or directory

Discussions related to using VirtualBox on Windows hosts.
Post Reply
bisei
Posts: 4
Joined: 10. Jul 2020, 01:01

mount.vboxsf: mounting failed with the error: No such file or directory

Post by bisei »

$ which mount.vboxsf
/sbin/mount.vboxsf

$ ls -la /sbin/mount.vboxsf
lrwxrwxrwx 1 root root 49 7月 28 17:35 /sbin/mount.vboxsf -> /opt/VBoxGuestAdditions-5.2.42/other/mount.vboxsf

$ sudo mount.vboxsf linux_free /home/username/linux_free
mount.vboxsf: mounting failed with the error: No such file or directory :?:

why ? :(

PC:Windows10 :|
VirtualBox 5.2.44
Linux:lxle-18043-32.iso :D
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by scottgus1 »

Start the guest from full power off, not save-state. Run until you see the problem happen, then shut down the guest from within the guest OS if possible. If not possible, close the Virtualbox window for the guest with the Power Off option set.

Please right-click the guest in the main Virtualbox window's guest list, choose Show Log. Save the far left tab's log, zip the log file, and post the zip file, using the forum's Upload Attachment tab.

Also, please right-click the guest in the main Virtualbox window's guest list, choose "Show in Explorer/Finder/File Manager". In the window that opens, zip the guest's .vbox file, and post the zip file, using the forum's Upload Attachment tab.
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by fth0 »

bisei wrote:$ sudo mount.vboxsf linux_free /home/username/linux_free
Did you create an empty directory /home/username/linux_free beforehand? ;)
bisei
Posts: 4
Joined: 10. Jul 2020, 01:01

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by bisei »

1.Please right-click the guest in the main Virtualbox window's guest list, choose Show Log. Save the far left tab's log, zip the log file, and post the zip file, using the forum's Upload Attachment tab.

file upload. :)

2.Also, please right-click the guest in the main Virtualbox window's guest list, choose "Show in Explorer/Finder/File Manager". In the window that opens, zip the guest's .vbox file, and post the zip file, using the forum's Upload Attachment tab.

file upload. :)
Attachments
lxle-18043-3202.zip
vbox file OK?
(1.5 KiB) Downloaded 21 times
lxle-18043-3202-logs.zip
1.log file
(139.8 KiB) Downloaded 7 times
Last edited by bisei on 31. Jul 2020, 00:35, edited 1 time in total.
bisei
Posts: 4
Joined: 10. Jul 2020, 01:01

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by bisei »

>Did you create an empty directory /home/username/linux_free beforehand?
yes. :o
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, Linux

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by scottgus1 »

I don't know if it is important, but in the Virtualbox manual the command is:
mount -t vboxsf [-o OPTIONS] sharename mountpoint
You have "mount.vboxsf".

Your guest log shows the shared folder being injected into the guest environment.

I tried the manual's command in a Linux guest, got a similar 'mount point does not exist.' error. I'll have to let the Linux gurus take it from here.

One other thing, though this probably won't cause this problem: your Extension Pack is a version number behind. EP should match Virtualbox's version number.
fth0
Volunteer
Posts: 5690
Joined: 14. Feb 2019, 03:06
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Linux, Windows 10, ...
Location: Germany

Re: mount.vboxsf: mounting failed with the error: No such file or directory

Post by fth0 »

scottgus1 wrote:I don't know if it is important, [...] mount -t vboxsf [...] You have "mount.vboxsf".
To expand your Linux knowledge: ;) mount -t <x> implicitly tries to execute /sbin/mount.<x>. Using this plugin design allows to add or remove support for filesystems without having to change the global mount program.
bisei wrote:$ sudo mount.vboxsf linux_free /home/username/linux_free
mount.vboxsf: mounting failed with the error: No such file or directory
Some ideas (you've already checked the 1st one):

Check if the target directory exists and is empty. Check ownership and permissions of the target directory and of its parent directory. If you want to mount the directory with user rights, try using mount with user rights, and try the -v option to get verbose information.
Post Reply