Originally Posted by skykooler
I have a storage partition with four folders on it named "All (universal)", "Windows", "Mac", and "Linux". In my "All (universal)" folder I have three folders, labeled "Pictures", "Documents" and "Videos". In my "Linux" folder I have a folder labeled "Downloads". I would like to mount these folders to my Pictures, Documents, Videos and Downloads folders. I wrote an /etc/init.d script to do this on boot but for some reason they end up mounted as read-only. Here is the script:
mount /dev/sda7 /media/Storage
mount --bind /media/Storage/Linux/Downloads/ /home/skyler/Downloads
mount --bind /media/Storage/All\ \(universal\)/Documents/ /home/skyler/Documents
mount --bind /media/Storage/All\ \(universal\)/Pictures/ /home/skyler/Pictures
mount --bind /media/Storage/All\ \(universal\)/Videos/ /home/skyler/Videos
chown -R skyler:skyler /home/skyler/Downloads
chown -R skyler:skyler /home/skyler/Documents
chown -R skyler:skyler /home/skyler/Pictures
chown -R skyler:skyler /home/skyler/Videos
chown -R skyler:skyler /home/skyler
What am I doing wrong?
If the stoarge disk is in NTFS then this may be a umask 022 problem that would give root full access.
I initially mount the whole NTFS partition or drive in fstab then mount the binds as you did, and that helped me when I included the umask in the fstab line such as this for an example.
/dev/sdc1 /FreeAgent ntfs-3g defaults,umask=002,locale=en_US.utf8 0 0
I also notice that you are trying to change ownership to a user. File permissions are not as manageable if they are NTFS, a umask of 000 would enable basically a chmod 777. I am still learning the jedi arts on a daily basis, and perhaps a master would have a better solution for you with your given information.
I hope this helps you.