VectorLinux
April 20, 2014, 03:52:59 am *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Visit our home page for VL info. To search the old message board go to http://vectorlinux.com/forum1. The first VL forum is temporarily offline until we can find a host for it. Thanks for your patience.
 
Now powered by KnowledgeDex.
   Home   Help Search Login Register  
Please support VectorLinux!
Pages: [1]
  Print  
Author Topic: Permissions for a shared partition [SOLVED]  (Read 2177 times)
gijii
Member
*
Posts: 28


« on: July 29, 2007, 11:52:03 am »

Hi all,

I need your advice to solve a problem.
I am trying to make a shared partition where to put all media contents to be shared between my computers.
I made a 250 Gb partition on my disk, I formatted it with xfs filesystem (mkfs.xfs /dev/sda7).
Then I made a new mount point where to mount it (/mnt/storage) and I added it to my /etc/fstab as follows:

/dev/sda7 /mnt/storage xfs noatime,auto,rw,users,umask=0222 0  2

I have the following issues:
it is not possible to read the partition through the /media directory. It appears in it as /dev/sda7 but as normal user it is not possible to read and write it.
I was able to make it writable and readable through a
chmod 777 /dev/sda7
but I fear that, while this worked, it was unnecessary (too many permissions for everybody?).
Besides, while booting a message similar to this appears:
fsck.xfs
bad superblock, bad option....

This message does not seem to harm the system. I can see and write the partition but I believe things can be done better.
Can anyone explain what's wrong with the settings I did?

Thanks in advance

gijii
« Last Edit: September 04, 2007, 02:09:53 am by gijii » Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
bigpaws
Vectorian
****
Posts: 1833


« Reply #1 on: July 29, 2007, 02:03:50 pm »

This may help:

http://www.comptechdoc.org/os/linux/manual1/mountpoints.html

HTH

Bigpaws
Logged
gijii
Member
*
Posts: 28


« Reply #2 on: July 30, 2007, 05:04:29 am »

Thank you for your reply.
I do not understand how the link you suggested should help. If the link is correct I do not see any info regarding permissions.
Could you please explain better?
Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
bigpaws
Vectorian
****
Posts: 1833


« Reply #3 on: July 30, 2007, 06:47:20 am »

How did you set this up? VASM?

Maybe this will help:

http://www.yolinux.com/TUTORIALS/LinuxTutorialAdditionalHardDrive.html

Bigpaws
Logged
gijii
Member
*
Posts: 28


« Reply #4 on: July 31, 2007, 06:14:14 am »

I did not set up it through VASM.
I would have set it up during the installation process but the installer gives no option for mount points other than those listed.
I just formatted the partition, made the /mnt/storage mount point and modified /etc/fstab.
As I told it, I can read and write the /mnt/storage directory (I chmoded it to 777) but I am not able to have it work through the /media directory (that would be a more elegant way I guess...)
How are the /mnt and /media directory connected?

Thanks for replies
Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
bigpaws
Vectorian
****
Posts: 1833


« Reply #5 on: July 31, 2007, 12:26:27 pm »

You could try ls -la /mnt and then ls -la /media for symlinks.

Bigpaws
Logged
gijii
Member
*
Posts: 28


« Reply #6 on: September 04, 2007, 02:09:21 am »

I should have fixed this issue.
There was an option I put in /etc/fstab that was not accepted by fsck.xfs and caused the message during boot up.
The bad option was umask=0222 that I used to manage permissions.
Now the big partition is correctly mounted and linked to the /media directory.
I granted read and write permissions to various users.
It seems to me everything works fine now.
Logged

Vectorlinux Soho 5.8, Kernel 2.6.21-ck2. AMD Athlon XP 2.4, 1 GB ram, 320 Gb HD
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!