Matt,

I believe your file system type is set wrong in the fstab
file. It should be smbfs not cifs

James


>
I'm hoping someone might provide some insight to a problem I'm having
> mounting a Win2k3 share at bootup.  The general methodology I'm
trying to
> follow is laid out here:
>
http://ubuntuguide.org/#automountnetworkfoldersall and works fine for
my
> kubuntu desktop but I'm failing to replicate on a Trustix
server.
> 
> 
> 
> First, I'm using
Trustix 3.0 and have samba installed but not running.
> 
>
[EMAIL PROTECTED] /# uname -a
> Linux slimserver.linzbach.local
2.6.14.2-2tr #1 Tue Nov 15 11:02:20 GMT
> 2005 i686 i686 i386
GNU/Linux
> 
> 
> [EMAIL PROTECTED] ~# rpm -qa |grep
-i samba
> samba-3.0.14a-10tr
>
samba-common-3.0.14a-10tr
> samba-client-3.0.14a-10tr
>
[EMAIL PROTECTED] /# rpm -qa | grep -i mount
> mount-2.12q-4tr
> 
> 
> The pertinent line of my /etc/fstab is as
follows:
> 
> # mount Win2k3 shares
>
//192.168.1.20/music    /mnt/music    cifs   
>
credentials=/root/.cifcredentials,dir_mode=0777,file_mode=0777 0 0
> 
> 
> And the relating file is:
> 
> [EMAIL PROTECTED] /# ls -alh /root/.cifcredentials
>
-rw-------  1 root root 34 Nov 15 17:15 /root/.cifcredentials
>

> [EMAIL PROTECTED] /home/users/matt# cat /root/.cifcredentials
> username=someaccount
> password=somepasswd
> 
> 
> The mount point is properly created.
> 
> [EMAIL PROTECTED] /# ls -alh /mnt
> total 20K
>
drwxr-xr-x   5 root root 4.0K Nov 15 16:21 ./
> drwxr-xr-x  19
root root 4.0K Nov 15 15:22 ../
> drwxr-xr-x   2 root root 4.0K
Jun  2 14:34 cdrom/
> drwxr-xr-x   2 root root 4.0K Jun  2 14:34
floppy/
> drwxrwxrwx   2 root root 4.0K Nov 15 16:21 music/
> 
> 
> When I try to mount the share (via mount -a)
I get the following errors.
> [EMAIL PROTECTED] ~# mount -a
> mount: wrong fs type, bad option, bad superblock on
//192.168.1.20/music,
>        missing codepage or other error
>        In some cases useful info is found in syslog - try
>
       dmesg | tail  or so
> 
> [EMAIL PROTECTED] ~# dmesg |
tail
>  CIFS VFS: No username specified
>  CIFS VFS:
cifs_mount failed w/return code = -22
> 
> 
>
mount -a works for me no problems with kubuntu.  The
/root/.cifcredentials
> file has a correct username and
password.
> 
> 
> I can successfully mount the
share via the following:
> 
> [EMAIL PROTECTED] ~# mount -t
cifs //192.168.1.20/music /mnt/music -o
>
username=someacct,password=somepasswd,dir_mode=0777,file_mode=0777
> 
> As a work around, I made a shell script of the previous
command and am
> calling it via rc.local so my mount point loads
at startup but I'd really
> like to get this working via fstab.
> 
> Can anyone provide some insight?  Much appreciated.
> 
> Matt
>
_______________________________________________
> tsl-discuss
mailing list
> [email protected]
>
http://lists.trustix.org/mailman/listinfo/tsl-discuss
>
_______________________________________________
tsl-discuss mailing list
[email protected]
http://lists.trustix.org/mailman/listinfo/tsl-discuss

Reply via email to