Creating a Shared Folder from Ubuntu to Manjaro in VirtualBox
Here’s how to create a shared folder from an Ubuntu host to a Manjaro guest. Yes, both are Linux—I’m just trying out Manjaro in VirtualBox before migrating from Ubuntu. 😄
-
Select settings on the virtual machine.
-
Choose Shared Folders and click the icon to add a new shared folder.
- In the “Add Share” window, enter the directory path of the folder you want to share with the guest in the “Folder Path” field, and provide a name for the folder in the “Folder Name” field.
- Check Auto-mount and Make Permanent, then click OK.
- Optional Settings:
- Check Read-only if you want the guest to have read-only permission, without write or edit access to the content in the folder.
- Check Auto-mount to automatically mount the folder (in this case, the Manjaro guest might not auto-mount).
- Check Make Permanent so that the auto-mount will persist even after the guest is restarted.
- Next, open a terminal in the guest (Manjaro), and type:
sudo mount -t vboxsf Shared /home/abudzar/Shared -o uid=1000,gid=1000-
Sharedis the name of the folder shared from the host (Ubuntu), and/home/abudzar/Sharedis the directory where theSharedfolder will be mounted in the guest (Manjaro). -
uid=1000andgid=1000represent the current user ID and group ID of the guest. If you don’t enter this command, the owner of the shared folder and files will be root.
-
Enjoy Reading This Article?
Here are some more articles you might like to read next: