Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1781  / 1 Year ago, sat, march 25, 2023, 11:21:21

I have dual boot (win7/ubuntu 12.04) system. I want to mount a specific folder (namely the Dropbox folder) from my windows partition in my home directory.
Unfortunately, I am not able to do that.
As far as I understand, I can not 'directly' mount only a folder from a partition, but have to mount the entire partition first and then mount --bind the folder.



If I mount the partition writable, there are no problems. But if I mount the partition with



sudo mount -r /dev/sda2 /mnt/win


and afterwards try



sudo mount --bind -w /mnt/win ~/Dropbox/


It says




mount: warning: /home/ope/Dropbox/ seems to be mounted read-only.




I also tried it using /etc/fstab, following the solution given here.
The relevant fstab lines look like this:



/dev/sda2 /mnt/win ntfs user,ro,umask=0222,defaults 0 0
/mnt/win/Dropbox /home/ope/Dropbox ntfs-3g rbind,user,rw,defaults 0 0
#/mnt/win/Dropbox /home/ope/Dropbox ntfs-3g rbind,user,rw,umask=0222,defaults 0 0


The last two lines both create only a read-only mounted folder.
Is there antything I am missing ?
Thank you very much for any hints.


More From » mount

 Answers
0

Mount the filesystem rw somewhere else, then bind mount only that directory to where you want it to appear. You can then unmount the original mount.


[#33035] Monday, March 27, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
urvedcaly

Total Points: 171
Total Questions: 118
Total Answers: 124

Location: Cape Verde
Member since Fri, Nov 27, 2020
4 Years ago
urvedcaly questions
Tue, Nov 8, 22, 19:40, 2 Years ago
Fri, May 26, 23, 15:27, 1 Year ago
Wed, Jan 19, 22, 08:09, 2 Years ago
Thu, May 13, 21, 03:34, 3 Years ago
;