VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Permissions for a shared partition [SOLVED]  (Read 2678 times)

gijii

  • Member
  • *
  • Posts: 28
Permissions for a shared partition [SOLVED]
« on: July 29, 2007, 12:52:03 pm »

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, 03: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: 1871
Re: Permissions for a shared partition
« Reply #1 on: July 29, 2007, 03:03:50 pm »

Logged

gijii

  • Member
  • *
  • Posts: 28
Re: Permissions for a shared partition
« Reply #2 on: July 30, 2007, 06: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: 1871
Re: Permissions for a shared partition
« Reply #3 on: July 30, 2007, 07: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
Re: Permissions for a shared partition
« Reply #4 on: July 31, 2007, 07: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: 1871
Re: Permissions for a shared partition
« Reply #5 on: July 31, 2007, 01:26:27 pm »

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

Bigpaws
Logged

gijii

  • Member
  • *
  • Posts: 28
Re: Permissions for a shared partition
« Reply #6 on: September 04, 2007, 03: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