Can't share "/mnt/volume"

Ron Smith yellowdog-newbie@lists.terrasoftsolutions.com
Thu, 3 Jul 2003 01:31:31 -0700


I'm not sure I completely follow this thread, so I am going to give my 
answer with the following assumptions (because I *think* this is what 
you are trying to do): you want to have and HFS partition (/dev/hda2) 
automatically mount to /mnt/Stuff when the system boots.

To do this you need the following entry in your /etc/fstab:

/dev/hda2		/mnt/Stuff		hfs		defaults

After fighting for a while trying to mount an HFS partition the "right" 
way and using the numbers at the end of the /etc/fstab entry I have 
been unsuccessful every time. As soon as I left them out, it started 
working every time. I think that someone mentioned using chmod 777 for 
your mount point and that is a very good idea, as a place to start. 
Once it starts working you can try and tighten up security on it, 
although in many instances those can be overridden by the entries in 
/etc/fstab, so even if you have really tight permissions on it, if the 
/etc/fstab entry has noauto,users,rw   it will open the mount wide open 
to all users. =)

Good luck,

-Ron

On Wednesday, July 2, 2003, at 09:39 PM, Ned Dupont wrote:

> Bill,
> Your points are very informative and I see what you are saying. It is
> very logical and also what I figured. Although I did try changing
> permissions on "/mnt/<directory>", I was not aware of the added "users"
> option within "fstab". However, even after trying the "fstab" changes
> (adding the "users" option), it still does not work. I just don't get
> it. This has got be easier than this. In my case, the mount path is
> "/mnt/Stuff". "/mnt/Stuff" already exists. I created the "Stuff"
> directory myself. It is the same name that the volume I am trying to
> mount is named. That volume is located on "/dev/hda2". Is that the
> problem? The fact that the volume in question resides before my YDL
> install volume?
> Any ideas?
> Thanks,
> Ned Dupont
>
>
> On Wed, 2003-07-02 at 13:41, Longman, Bill wrote:
>>> How do I allow users, other than ROOT, to SEE, and USE, the
>>> contents of
>>> mounted volumes? Along a similar vein, why is it that, at
>>> start up (when
>>> all the linux text is scrolling past my screen,"Updating /etc/fstab"
>>> always fails?\Any ideas?
>>
>> Ned, it's certainly typical for filesystems to be mounted only by 
>> root. You
>> can add the "user" flag in the fstab file as one of the mount options 
>> on a
>> given filesystem. Then whoever mounts it can unmount it. You can go 
>> crazy
>> and use the "users" option, too. Then any ole user can mount and 
>> unmount at
>> will. Sometimes this is not advisable....
>>
>> In your case, you need to mount the filesystem on an existing 
>> directory. For
>> instance, if in your fstab it says:
>>
>> /dev/hda9 /mnt/volume hfs auto 1 1
>>
>> then you'll have to make sure the /mnt/volume directory exists. 
>> Furthermore,
>> the lone empty directory, /mnt/volume, as it exists *in the root 
>> directory*
>> has its own permissions separate and distinct from the permissions 
>> that the
>> filesystem acquires once it gets mounted there.
>>
>> Look what happens when I mount my ISO image:
>>
>> $ cd /
>> $ ls -ld cd1
>> drwxrwxr-x    2 root   root   4096 Jul  2 10:45 cd1/
>> $ mount /cd1
>> $ ls -ld cd1
>> dr-xr-xr-x    9 root   root   4096 Mar 17 08:05 cd1/
>>
>> This might help you solve the problem of getting others to mount and 
>> use
>> filesystems. I don't know why the /etc/fstab error is appearing at 
>> boot,
>> though. I suspect it might be from system device probes trying to add
>> available entries in there (like USB drives, etc.).
>>
>> Bill
>> _______________________________________________
>> yellowdog-newbie mailing list
>> yellowdog-newbie@lists.terrasoftsolutions.com
>> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>
> _______________________________________________
> yellowdog-newbie mailing list
> yellowdog-newbie@lists.terrasoftsolutions.com
> http://lists.terrasoftsolutions.com/mailman/listinfo/yellowdog-newbie
>