Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2006, 01:22 PM   #1
LQ Newbie
Registered: Aug 2006
Posts: 12

Rep: Reputation: 0
Fstab Mounting Windows

Having a big problem auto mounting in fstab some Windows and Samba shares. This is what I have in fstab:

// /Network/Data smbfs credentials=.winpassword 0 0

Then located in /etc/.winpassword I have the username and password. This is what "boot.msg" has to report:

// on /Network/Data type smbfs Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
or move a subtree:
mount --move olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say man 8 mount .

Any tips or ideas or help would be greatly appriciated.


This is what I have in fstab now:

// /Network/NAS1 cifs credentials=/etc/.winpassword 0 0

All the directories exist, and I have no problems mounting them manually, but I am not particularily interested in mounting 12 different individual shares each time I boot up (this is a laptop that switches a lot to Windows XP as well..)

Right now ".winpassword" is RW by root only which is how I believe it should be. Once I get this working I will look into using Samba with the encrypted passwords, but first things first
Old 08-19-2006, 05:44 PM   #2
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,575

Rep: Reputation: 181Reputation: 181
mount -a
it runs through the whole fstab trying to mount all mentioned filesystems. Does it work for your networked share? I'm asking because it may be that at the time your share is tries, some components are not yest initialized and that's why it fails. The test with mount -a allows to find it out.
Old 08-20-2006, 12:16 AM   #3
LQ Newbie
Registered: Aug 2006
Posts: 12

Original Poster
Rep: Reputation: 0
I ran mount -a,and this is what I get:
mount error 13 = Permission denied
Refer to the mount.cifs(8) manual page ( mount.cifs)
But, this does not happen to all. When I do just "mount" it indicates two of the shares have mounted. Although only one is actually truly mounted, meaning I can see data.

The share that is working is a share from FreeNAS (FreeBSD/Cifs share). The others are a mix of Windows and Linux shares.

If I change from cifs back to smbfs none get mounted, but when I run mount-a all shares are connected. So now I can assume that maybe fstab is starting before other required components are started. How would I go about doing this?

Last edited by ssa2204; 08-20-2006 at 01:00 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting Windows shares in fstab raypen Slackware 4 10-16-2004 06:16 PM
using fstab to mount windows xp shares yeateke Linux - Networking 4 03-01-2004 09:19 AM
mounting w2k shares in fstab GraemeK Linux - Networking 2 01-30-2004 05:49 AM
Mounting Windows Shares Thermos Linux - Networking 3 07-09-2003 02:34 PM
mounting windows shares Moebius Linux - Newbie 12 12-19-2002 09:58 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:02 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration