How to auto mount network drive.

hi,
I am new to suse but not to linux. I am massive user of ubuntu desktop and server. Anyway, right now i need to configure my opensuse 11.1 and windows network to access network drives from netBeans. I read somewhere while googling, to give netbios. I don’t know where to find netbios of my system. Is there any body who can help me.
thanks

Hello. Welcome here.

I don’t understand what you mean by “find netbios of my system”.

Do you want to know how to set up NetBIOS over TCPIP sharing? Or do you want to mount a remote NBT/Samba shared drive in your openSUSE installation, using a CIFS mount?

I’ll move this thread into the Networking Forum so you can get some replies from the Networking ppl.

Hi,
I am using opensuse 11.1. I need to automount network drive using fstab So non root users have write permissions.

izap wrote:
> I am using opensuse 11.1. I need to automount network drive
> using fstab So non root users have write permissions.

You should have mentioned the protocol you intend to use.

That’s the same question as you were asking on your first thread (here’s a link: Netbios location - openSUSE Forums), so I’ll combine the two threads for you so you don’t get mixed conversations running.

I suppose that you’re asking about the “netbios” mount again, so have a read of this tutorial:
Samba: HowTo Mount a CIFS Network Share [AKA Map Network Drive] in openSUSE 10 & 11 plus FAQs
That might help.

Hi guys,
Thanks for your reply. Well I am using netbeans 6.5 version. And i think, what i am trying to ask should be on netbeans forum.

Actually, I have a network of linux + windows systems. And i want to setup a project so my team can work together using netbeans. So that’s why i was looking to automount network drive while booting using fstab.

What i tried in fstab:
//ip/network_directory /home/izap/mount_dir cifs username=iruby,password=iruby,uid=izap,gid=users 0 0.

I used same arguments in general mount command (mount …). They are working fine. But i don’t know why it is not mounting while booting.

It is not mounting while booting becasue the network has not activated completely at the time the command is taken from fstab and executed. There are two tweaks you can use to delay the command in fstab so the network can start first. They are both discussed in the reference that I gave you. The simpler tweak is to include the option “_netdev” in the mount command, like this:

//ip/network_directory /home/izap/mount_dir cifs username=iruby,password=iruby,_netdev,uid=izap,gid=users 0 0

Try it and see if it works. If not, try the other tweak.

Another possibility is to use pam_mount. If your users are connecting using their MS login credentials you could set the /etc/security/pam_mount.conf.xml file to mount the drives on a per user basis on login thus freeing up resources when noone is logged in.

You would need to adjust your /etc/pam.d/common-* files as well as the gdm and login file to reflect pam_mount.so being accessed.

I currently have my opensuse 11.0 desktops in a corporate environment authenticating to LDAP, and mounting their AD HOME and SHARE drives via pam_mount and it works well.