Hello ally, First of all be sure you defined the "user" option in your fstab allowing users to mount and umount this partition. And if you don't want the partitions to be mounted at boot time (you want to mount them at user login right?) then include the option "noauto" (do man fstab). Special warning: a partition mounted by a user normally must be umounted by the same user. Consider the options "users" in fstab instead "user" to allow other users umounting your partitions after you logout... You can check the partitions that are mounted in /etc/mtab and /proc/mounts. Also you may get this file by calling mount with no arguments (do man mount). I don't think it makes any damage trying to remount a partition that is already mounted. I mean... If the error message doesn't disturb you... If the error message disturbs you... change your bashrc to look like this: mount .... &> /dev/null And if you want to capture the return value of mount (is there a return value?) you just use the variable $? after calling mount: echo Return value was: $? Hope this helps, Pep Serrano On Friday 05 April 2002 11:19, Alan wrote:
Hi All I`m sure it`s very simple but I seem to be unable to crack it as I`m not very familiar with shell and its syntaxes. Problem: I`d like to get a specific partition mounted automatically upon login of an user with that user`s read/write permissions(it`s a vfat partition) I was able to get the mount command executed thanks to bashrc but every time I started xterm or other I`ll get complaint from the shell that partition is already mounted according to /etc/fstab. Question: What is the command/syntax/option to pass to the shell in the bashrc that if the partition is already mounted ,don`t try to mounting it and other way if it`s not just mount that partiiton.Any help appreciated,no programing experience here at all.