/sbin/mount.vboxsf: mounting failed with the error: Invalid argument - how to solve this error?

13,752

The normal way to get that done from the link provided by Norbert

sudo mount -t vboxsf [-o OPTIONS] sharename mountpoint

So your command should be

sudo mount -t vboxsf [-o OPTIONS] sharename /media/songs

To mount a shared folder during boot, add the following entry to /etc/fstab:

sharename   /media/songs   vboxsf   defaults  0   0

The sharename comes from the Windows hosts' sharename

Share:
13,752

Related videos on Youtube

Sophia B.A.
Author by

Sophia B.A.

Updated on September 18, 2022

Comments

  • Sophia B.A.
    Sophia B.A. over 1 year

    I'm trying to share a folder between ,a host, windows 10 and ,a guest, ubuntu 16.04. I have already created a folder in linux and set up inside the virtual box. Inside /media I have created a folder called songs. now I'm trying to mount a volume using the following:

    sudo mount -t vboxsf sf_shareubuntu/ songs/
    

    I'm getting the following error:

    /sbin/mount.vboxsf: mounting failed with the error: Invalid argument
    

    how do I solve this error?

    • N0rbert
      N0rbert over 5 years
      Have you read official documentation "5.3.1. Manual Mounting"?
    • George Udosen
      George Udosen over 5 years
      There is no location like sf_shareubuntu/ songs/ it ought to be sharename /media/songs/