LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-26-2001, 08:29 AM   #1
silkyd
LQ Newbie
 
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Rep: Reputation: 0
Unhappy Problems mounting a network drive


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
 
Old 12-26-2001, 11:00 AM   #2
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
ok remove the network entry in fstab. Then go to terminal and do
smbmount //(remote machine name)/(remote share name) /mnt/primary

make sure you have samba running when you do this with

/etc/rc.d/init.d/smb restart

in terminal
 
Old 12-26-2001, 12:18 PM   #3
silkyd
LQ Newbie
 
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Original Poster
Rep: Reputation: 0
Just tried this. I received the response:

[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.

Last edited by silkyd; 12-26-2001 at 12:22 PM.
 
Old 12-26-2001, 01:09 PM   #4
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
if it's a win2k machine:

smbmount //pc/sharename /place/to/mount -o username=Administrator

it should then ask for your password
 
Old 12-26-2001, 10:48 PM   #5
Scotty2435
Member
 
Registered: Dec 2001
Location: Waco, Texas USA
Distribution: Redhat 7.1
Posts: 232

Rep: Reputation: 30
with windows 9x use the password that you set for the share.

Check this by right clicking the drive and pressing sharing. Then look for something about passwords you should find it.
 
Old 12-27-2001, 08:43 AM   #6
silkyd
LQ Newbie
 
Registered: Dec 2001
Location: Edinburgh
Distribution: Redhat 7.2
Posts: 12

Original Poster
Rep: Reputation: 0
Sorted! Many thanks all.
 
Old 02-15-2002, 12:31 AM   #7
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94

Rep: Reputation: 15
Still getting ERRSVR - ERR invnetname

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.

any more suggestions?
 
Old 02-15-2002, 07:45 AM   #8
jrmann1999
Member
 
Registered: Feb 2001
Location: Texas
Distribution: Slackware, Mandrake, LFS
Posts: 306

Rep: Reputation: 30
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?
 
Old 02-15-2002, 05:39 PM   #9
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94

Rep: Reputation: 15
JRMANN1999,
Sorry for being vague, but here's what I use:

smbmount //win98_machine_name/$c_sharename /mnt/mymount -o username=my_user,password=mypasswd

I've also tried using username=Administrator.

2nd question. I've seen smbmount used with 4 "\'s":
smbmount \\\\pc\share .......... and also
smbmount //pc/share ......

Is there a difference between using the forward slashes and backward slashes?
 
Old 02-16-2002, 10:04 AM   #10
Loveless
Newbie
 
Registered: Feb 2002
Posts: 14

Rep: Reputation: 0
hello all....

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.
 
Old 02-16-2002, 08:09 PM   #11
desbyleo
Member
 
Registered: Feb 2002
Location: Erie, CO
Distribution: Red Hat 7.1
Posts: 94

Rep: Reputation: 15
loveless,

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!
 
  


Reply



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
slackware 9.1 mounting problems (cd drive, cd writer drive, win partition (ntfs)) mr.gizm0 Slackware 8 05-11-2004 06:23 PM
mounting network drive viper52b Linux - Networking 2 03-10-2004 12:59 PM
mounting network drive? phatboyz Linux - Networking 3 03-02-2004 11:11 AM
Problems mounting a network drive silkyd Linux - Newbie 2 01-27-2002 06:41 AM
mounting a network drive... Sonny Linux - Security 6 01-24-2002 12:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:05 PM.

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