I need to mount SAN blackarmor share at boot. I can do it manually. But I need it mounted everytime. So I introduced it into fstab. No result. See my fstab below. What’s wrong.
[/LIST]
//192.168.1.3/Public /home/pawel/black-public auto auto,rw,user="myuser",password="mypassword" 0 0
I wonder what type of filesystem shall I use. Manuall mounting works with no fs spec, if smbfs or nfs is pointed it makes error.
When I boot and loging in run level 5 straight into gnome desktop I’ve got different privileges, expecially to USB devices and sound system (I can not play on my external sound card). How can I control this behaviour. Let’s assume that I want to stratx from level 3 as regular user and want to have all this automatic privilleges for hot plugin USB devices and automatic access to sound system. Is controlled by gnome?
So, I am no expert on this issue, but you could create a script file and run it on startup. As a root user, you might create a script called mntrmt for instance and place it in /usr/local/bin/mntrmt.
To create the script in KDE, use the following menu run command:
kdesu kwrite /usr/local/bin/mntrmt
Here is the script. Place the real mount command in it that you use:
#!/bin/bash
#: Title : /usr/loca/bin/mntrmt
#: Date Created: Sun Jan 30 20:32:20 CST 2011
#: Last Edit : Sun Jan 30 20:32:20 CST 2011
#: Author : Your Name Here
#: Version : 1.00
#: Description :
#: Options :
mount command here
exit 0
# End Of Script
Then run the following terminal command to mark it executable:
sudo chmod +x /usr/local/bin/mntrmt
Then use the following terminal command to place a symlink into rc3 to be loaded automatically for you when you restart (Networking must be up and running):
>
> 1. I need to mount SAN blackarmor share at boot. I can do it manually.
> But I need it mounted everytime. So I introduced it into fstab. No
> result. See my fstab below. What’s wrong.
>
>
> Code:
> --------------------
> //192.168.1.3/Public /home/pawel/black-public auto
auto,rw,user=“myuser”,password=“mypassword” 0 0
>
> --------------------
>
>
> I wonder what type of filesystem shall I use. Manuall mounting
> works with no fs spec, if smbfs or nfs is pointed it makes
> error.
>
> 2. When I boot and loging in run level 5 straight into gnome desktop I’ve
> got different privileges, expecially to USB devices and sound system (I
> can not play on my external sound card). How can I control this behaviour.
> Let’s assume that I want to stratx from level 3 as regular user and want
> to have all this automatic privilleges for hot plugin USB devices and
> automatic access to sound system. Is controlled by gnome?
>
>
pksa;
I’m not particularly familiar with that device, so this is somewhat generic.
smbfs is no longer supported and replaced by cifs. When fstab is read your
network is not up yet. Leave the above in fstab, then after you boot try
this:
su
mount -a
This should remount all the devices in fstab.
If the mount now fails, your fstab entry is wrong. If the mount now succeeds
it is definitely a problem with the delay in initializing the network. In
this case try adding the following option to your fstab entry for the SAN
_netdev
The system should now wait for the network before trying to mount the drive.
Alternatively you could create a root crontab with this:
@reboot sleep 20;mount-a
This will wait 20 seconds after the boot to remount. If your network is very
slow in coming up the above 20 sec could be increased, (or even decreased if
the network comes up quickly.)
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
Yes, it is a problem of network availability. mount -a works
I added it to cron but now cron does not work.
How can I do it correctly.
Shall I initiate it somehow or I made wrong insertion?
linux-wnin:/etc # crontab -l
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXX4SNJyE installed on Mon Jan 31 23:30:08 2011)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
@reboot sleep 20;mount-a
>
> Yes, it is a problem of network availability. mount -a works
> I added it to cron but now cron does not work.
> How can I do it correctly.
> Shall I initiate it somehow or I made wrong insertion?
>
> Code:
> --------------------
> linux-wnin:/etc # crontab -l
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.XXXX4SNJyE installed on Mon Jan 31 23:30:08 2011)
> # (Cron version V5.0 – $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie
Exp $)
> @reboot sleep 20;mount-a
>
> --------------------
>
>
Did you add the:
_netdev
to the fstab options?
You will want something like this:
//192.168.1.3/Public /home/pawel/black-public auto auto,rw,user="myuser",password="mypassword",_netdev 0 0
I would try this first before the crontab.
Your crontab needs a space between mount and -a in the mount command:
@reboot sleep 20;mount -a
–
P. V.
“We’re all in this together, I’m pulling for you.” Red Green
How can I make read-write privileges to my SAN drive. As you can see I made rw option in fstab and put there also user & password that theoretically gives authorization for rw. But it is being mounted as root. So I realized that only root can write and delete.
How can I make write privilege for others than root?
On 2011-02-05 14:06, pksa wrote:
>
> I need to ask more.
>
> How can I make read-write privileges to my SAN drive. As you can see I
> made rw option in fstab and put there also user & password that
> theoretically gives authorization for rw. But it is being mounted as
> root. So I realized that only root can write and delete.
>
> How can I make write privilege for others than root?
I understand this is controlled on the server, not the client.
You may have some adjustments available, depending on it being nfs or
samba. What is it?
–
Cheers / Saludos,
Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)
It is CIFS.
In fact it is controlled on the server, therefore I declare in fstab or in mount commant the user and password. But if I do it as root it works, if as ordinary user it gives only the read privilleges.
>
> It is CIFS.
> In fact it is controlled on the server, therefore I declare in fstab or
> in mount commant the user and password. But if I do it as root it works,
> if as ordinary user it gives only the read privilleges.
>
>
pksa;
You should set the uid and gid options in your mount command.
See man mount.cifs
Swerdna has a nice Howto on this. Unfortunately his site is down for
maintenance as I write this but look at:
> On Wed February 9 2011 02:06 pm, pksa wrote:
>
>>
>> It is CIFS.
>> In fact it is controlled on the server, therefore I declare in fstab or
>> in mount commant the user and password. But if I do it as root it works,
>> if as ordinary user it gives only the read privilleges.
>>
>>
> pksa;
>
<snip>
>
> Swerdna has a nice Howto on this. Unfortunately his site is down for
> maintenance as I write this but look at:
<snip>
>
>
pksa;