One of the common issues I have faced several times regarding Virtualbox's shared folder, that is even though a shared folder connected to the virtual machine, it's not accessible.
means in some cases after connecting your shared folder to the Linux virtual machine, when you try to access its contents, it will deny the permission and show "The folder contents could not be displayed" message.
Let's see how we can fix it
Open your Terminal. Type
sudo su
then enter your account password.Write the following commands & execute it
sudo usermod -a -G vboxsf mir
(*Instead of mir
use your account name, which is located at the top-left corner of your terminal)
sudo chown -R your_account_name:users /media/your_share_folder_name/
Example sudo chown -R mir:users /media/sf_Linux_Application/
3 . Now reboot your Virtual Machine and check the Shared Folder again.
Watch on YouTube
Thanks for reading :)
Top comments (1)
Helpful Post. Thanks. By the way, I connect a Pen Drive usually, to any guest, to share files. For connecting pen drives in VirtualBox, its Extension Pack needs to be installed, priorly, just once.