[opensuse] Problems with CIFS and fstab
I am attempting to mount a Windows 2003 share to a mount point on my Suse Linux 10 box. When I type: Mount -t cifs //server/share /mnt/point -o user=Me,password=mine Everything works perfectly. However, when I put the following entry in fstab: //server/share /mnt/point cifs user=Me,password=mine,rw 0 0 And then run Mount -av I get the following output: parsing options: rw,username=Me,password=mine mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine retrying with upper case share name mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine mount error 6 = No such device or address Refer to the mount.cifs(8) manual page (e.g.man mount.cifs) Any ideas as to what I'm doing wrong here? Drew Burchett United Systems & Software Ph: (270)527-3293 Fax: (270)527-3132 -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- This message has been scanned for viruses and dangerous content by MailScanner and is believed to be clean.
I am attempting to mount a Windows 2003 share to a mount point on my Suse Linux 10 box. When I type:
Mount -t cifs //server/share /mnt/point -o user=Me,password=mine
Everything works perfectly. However, when I put the following entry in fstab:
//server/share /mnt/point cifs user=Me,password=mine,rw 0 0
And then run
Mount -av
I get the following output:
parsing options: rw,username=Me,password=mine
mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine
retrying with upper case share name
mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Any ideas as to what I'm doing wrong here?
Wonderful spacing between the lines. Do you actually have the samba-client package installed? It's a common thing I have run into. It might be possible that CIFS is not handled the same as NFS, i.e. that it mount -av, as part of the boot process, is trying to mount it before the network has been set up? -`J' -- --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Yes, I just double-checked to make sure that I wasn't being an idiot and the samba client is installed. I'm running mount -av from the terminal while the machine is up and running, not as part of the startup process, so the network is definitely up and running. Drew Burchett United Systems & Software Ph: (270)527-3293 Fax: (270)527-3132 -----Original Message----- From: Jan Engelhardt [mailto:jengelh@linux01.gwdg.de] Sent: Tuesday, November 07, 2006 12:47 PM To: Drew Burchett Cc: opensuse@opensuse.org Subject: Re: [opensuse] Problems with CIFS and fstab
I am attempting to mount a Windows 2003 share to a mount point on my Suse Linux 10 box. When I type:
Mount -t cifs //server/share /mnt/point -o user=Me,password=mine
Everything works perfectly. However, when I put the following entry in fstab:
//server/share /mnt/point cifs user=Me,password=mine,rw 0 0
And then run
Mount -av
I get the following output:
parsing options: rw,username=Me,password=mine
mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine
retrying with upper case share name
mount.cifs kernel mount options unc=//server\share,ip=192.168.10.15,ver=1,rw,username=Me,password=mine
mount error 6 = No such device or address
Refer to the mount.cifs(8) manual page (e.g.man mount.cifs)
Any ideas as to what I'm doing wrong here?
Wonderful spacing between the lines. Do you actually have the samba-client package installed? It's a common thing I have run into. It might be possible that CIFS is not handled the same as NFS, i.e. that it mount -av, as part of the boot process, is trying to mount it before the network has been set up? -`J' -- -- CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. -- This message has been scanned for viruses and dangerous content by MailScanner and is believed to be clean. --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday November 7 2006 11:50 am, Drew Burchett wrote:
I am attempting to mount a Windows 2003 share to a mount point on my Suse Linux 10 box. When I type:
Mount -t cifs //server/share /mnt/point -o user=Me,password=mine
Should. But then you transition into the /etc/fstab file which doesn't behave exactly the same. The -o options to be precise...
Everything works perfectly. However, when I put the following entry in fstab: //server/share /mnt/point cifs user=Me,password=mine,rw 0 0
//server/share /mnt/point cifs credentials=/path/to/filename 0 0 Quoting the Samba mount.cifs man page which, if you've installed the samba-docs package, can be found around /usr/share/doc/packages/samba/htmldocs/manpages/mount.cifs.8.html: ___________ credentials=filename specifies a file that contains a username and/or password. The format of the file is: username=value password=value This is preferred over having passwords in plaintext in a shared file, such as /etc/fstab. Be sure to protect any credentials file properly. ___________ Make it read-only by the user. If this is a single user system then you could create the credentials file in your home directory and make it read-only. If you don't mind plaintext passwords in /etc/fstab then you need to specify username= and password= because 'user' means something else in /etc/fstab.
Drew Burchett
Stan --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Drew Burchett
-
Jan Engelhardt
-
Stan Glasoe