LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   How to mount shared ext3 partitions? (https://www.linuxquestions.org/questions/linux-general-1/how-to-mount-shared-ext3-partitions-552865/)

jkh107 05-10-2007 07:58 AM

How to mount shared ext3 partitions?
 
I've been trying to use an ext3 partition to share files between the distributions on my computer (at the moment CentOS, Debian and Ubuntu), but I'm not quite sure how to allow all users to read and write to the partition. I have tried creating the directory /media/fileshare and adding the following line to /etc/fstab:
Code:

/dev/hda3 /media/fileshare ext3 defaults 0 0
in each of the distributions and although this mounts the partition, it doesn't allow ordindary users to write to the partition. I have also tried the options "rw,user" in the place of "default" but still no luck. Any suggestions would be greatly appreciated.

camorri 05-10-2007 09:28 AM

Have you looked at the /etc/exports file on the server? If you export the NFS shares as RO you will not be able to write to them.

jkh107 05-10-2007 09:42 AM

I don't want to sound really stupid, but what server?

tredegar 05-10-2007 10:12 AM

You just need to change the permissions for the files on the mounted partition. As root:
chmod -R 777 /media/fileshare
Will make the files in /media/fileshare readable and writeable by anyone

tredegar 05-10-2007 10:17 AM

You just need to change the permissions. As root do:
chmod -R 777 /media/fileshare
Will make all the files in /media/fileshare readable and writeable by anyone
Edit: Sorry, double-post!

jkh107 05-10-2007 10:19 AM

That's great - thanks very much.

camorri 05-10-2007 10:47 AM

Sorry for the confussion, I got your thread mixed up with another dealing with NFS.


All times are GMT -5. The time now is 01:23 AM.