Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 11621  / 1 Year ago, thu, march 23, 2023, 9:36:02

I am using 12.10 on virtualbox. I have my windows documents folder shared through virtual box folder share. Then I wanted to use mount --bind to mount my documents folder to the ubuntu user documents folder under ~/Documents



Here is the command I am using:



sudo mount --bind /media/D/Leinardo/Documents ~/Documents


When I do this however, I find that the ~/Documents folder now is owned by root and I do not have write access. Any ideas?



Thanks in advance.


More From » mount

 Answers
3

Unselect the automount option in the virtual machine settings.



To mount the folder manually, run this on a terminal:



sudo mount -t vboxsf -o uid=1000,gid=1000 Documents /media/D/Leinardo/Documents


To mount it automatically, add this line to /etc/fstab:



Documents /media/D/Leinardo/Documents vboxsf uid=1000,gid=1000 0 0

[#31774] Thursday, March 23, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
percol

Total Points: 493
Total Questions: 116
Total Answers: 107

Location: Taiwan
Member since Mon, Sep 6, 2021
3 Years ago
percol questions
Thu, Sep 29, 22, 07:42, 2 Years ago
Sat, Jul 16, 22, 21:00, 2 Years ago
Tue, May 30, 23, 19:16, 1 Year ago
Wed, Aug 18, 21, 02:15, 3 Years ago
;