LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-10-2007, 07:58 AM   #1
jkh107
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Rep: Reputation: 0
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.
 
Old 05-10-2007, 09:28 AM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

Rep: Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860Reputation: 860
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.
 
Old 05-10-2007, 09:42 AM   #3
jkh107
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
I don't want to sound really stupid, but what server?
 
Old 05-10-2007, 10:12 AM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
 
Old 05-10-2007, 10:17 AM   #5
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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!
 
Old 05-10-2007, 10:19 AM   #6
jkh107
LQ Newbie
 
Registered: Jul 2006
Posts: 18

Original Poster
Rep: Reputation: 0
That's great - thanks very much.
 
Old 05-10-2007, 10:47 AM   #7
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,233

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


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing other ext3 partitions Bakoulou Linux - General 3 04-23-2006 03:17 PM
Mount, READ and WRITE reiserfs and ext3 partitions smiley_lauf Linux - Newbie 21 04-03-2006 04:11 PM
NTFS vs Ext3 for Dual Boot Shared Drive LostProphet Linux - General 4 02-16-2006 04:54 PM
Resizing ext3 partitions! alur3n Linux - General 3 10-03-2005 07:29 PM
How to resize ext3 partitions? VincentB Linux - General 1 05-26-2005 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:54 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration