Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I'm having a problem mounting a network drive. I'm running Redhat 7.2, and I'm trying to get it to mount a drive on another (windows) machine on my network. I've created a directory /mnt/primary (as seen in other posts) and I am now getting an error which is - "mount: /primary is not a block device". I've seen similar posts for problems with CDROMs and I've tried using modprobe /primary, and I've tried using depmod -ae. Neither made any difference.
My /etc/fstab is:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
none /dev/pts devpts gid=5,mode=620 0 0
/dev/hda6 swap swap defaults 0 0
/primary /mnt/primary auto noauto,owner,ro 0 0
/SWAP swap swap defaults 0 0
I altered the line from //primary to /primary. Neither line made any difference to the message issued.
I have set up Samba 2.2.1, and I can browse my Linux machine from my windows machine, but not vice versa.
TIA
SilkyD
[root@Tertiary alan]# smbmount //primary/windows /mnt/primary
Password:
1641: tree connect failed: ERRSRV - ERRinvnetname (Invalid network name in tree
connect.)
SMB connection failed
I'm not sure what password is required (I've tried a few times with different passwords). I restarted both of the Samba daemons. I'm not sure I've defined the share on the Windows box correctly - I'm not sure how to do this.
I read the thread but the solutions didn't help. I'm trying to access win98 share from linux 7.1 box running samba. I tried using the following commands to do this:
smbmount
smbclient
But I still get the ERRSVR - ERR invnetname (Invalid network name in tree connect.) SMB connection failed
error.
If you're just trying to use 'smbmount' or 'smbclient' by themselves(IE with no options) then you need to go read up on them. Each take certain arguements(like machine name) which is why you're getting that error, perhaps you could paste whatever command line you called it with?
I installed redhat 7.2 few days ago and I want to mount to my near by computers.
1) someone mentioned that I need to have samba running, well... how do I know if my samba is running or not? I went to etc/rc.d/init.d and I see smb. I tried "smb restart" but it said command not found. In fact, most of the command was found when I can see them. (nfs, atd, xinetd)
2) the command "smbmount" works but it says can not resolve mount point. My computer name is server with the domain name of kaindom
I tried "server" "server.kaindom" and "server.kaindom.local" and nada.
To check whether a service (like samba) is running, issue this command: "ps ax | grep smb"
You should see at least 2 processes running:
1.) The process handling your search for the smb process. It will say "grep smb" towards the end of the line.
2.) The process for samba itself. It is actually what they call a DAEMON. This is the samba daemon (smbd). So toward the end of this line, it should say "smbd -D".
If not running already, then you'll need to start it. Youcan have it start automatically with the system. I only know how to do that by doing it thru GNOME. go to FOOT>>PROGRAM>>SYSTEM>>TEXT MODE TOOL MENU
(i'm using 7.1, it may not be the same in 7.2). Select SYSTEM SERVICES from the menu and press ENTER. Mark the service "SMB", press OK, and then restart the system.
I'm sure there's several ways you can start a Daemon manually, but I haven't learned that yet.
Make sure you've made the proper configurations to the smb.conf file and inetd.conf (or sometimes xinetd.conf) in order to get samba working. If you don't know what these files are, then you've got some reading to do. I found some good resources in setting up SAMBA here and at www.linux.com, and at www.linuxhelp.net. Just search for SAMBA.
Good luck. NOW, if you can tell me why I can't mount my windoes98 shares using smbmount, I's really appreciate it!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.