?
Solved

Mounting a netwrok file system

Posted on 2004-10-15
16
Medium Priority
?
227 Views
Last Modified: 2013-12-06
How can we mount a file on a network (that is a windows file) or a shared file on another pc on the network onto linux (red hat 8.0) ?
0
Comment
Question by:mte01
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
  • 3
  • +1
16 Comments
 
LVL 2

Accepted Solution

by:
AleksandarS earned 1500 total points
ID: 12326291

mkdir /mnt/samba-share

mount -t smbfs //windowsmachine/sharename /mnt/samba-share -o username=winuser,password=winpass


and now you can see windows shared files in /mnt/samba-share

0
 
LVL 17

Expert Comment

by:owensleftfoot
ID: 12326480
The above will probably give errors about no such directory - you need to "mkdir /mnt/samba-share" first.
0
 
LVL 7

Expert Comment

by:troopern
ID: 12326500
owensleftfoot there is already a command for mkdir /mnt/samba-share ;)

Though, windowsmaching might have to be replaced by the IP of the box.
0
The Orion Papers

Are you interested in becoming an AWS Certified Solutions Architect?

Discover a new interactive way of training for the exam.

 
LVL 3

Author Comment

by:mte01
ID: 12326969
It is giving me the following error:

mount: wrong fs type, bad option, bad superblock on //192.168.141.44/C,
       or too many mounted file systems
(I have made C a shared folder)
0
 
LVL 3

Author Comment

by:mte01
ID: 12328541
Please it's a bit urgent.........can anyone help me please??
0
 
LVL 7

Expert Comment

by:troopern
ID: 12328644
Is smbfs supported by the kernel ?
0
 
LVL 7

Expert Comment

by:troopern
ID: 12328654
Try using the "-o username=winuser,password=winpass" part before the "//windowsmachine/sharename /mnt/samba-share" part

Though it shouldn't actually make any difference.
0
 
LVL 3

Author Comment

by:mte01
ID: 12328717
I am using Red Hat 8.0..........it should support smbfs
0
 
LVL 3

Author Comment

by:mte01
ID: 12328728
As you said troopern, your last option didn't make a difference
0
 
LVL 2

Expert Comment

by:AleksandarS
ID: 12331280
Your samba fs kernel support might be compiled as module, try with 'modprobe smbfs' and then proceed with mount command.
0
 
LVL 3

Author Comment

by:mte01
ID: 12331462
>> try with 'modprobe smbfs' and then proceed with mount command

did not work........same error
0
 
LVL 2

Expert Comment

by:AleksandarS
ID: 12331955
Did you try with some other windows share? If you share the whole C disk, it can be a little confusing for samba (and even other windows machines if you are using 'net use' command), because one of the default windows admin shares is marked as C$.  
0
 
LVL 3

Author Comment

by:mte01
ID: 12332230
I tried it with another windows share & it was the same problem..........
0
 
LVL 2

Expert Comment

by:AleksandarS
ID: 12336418
Are you using firewall? If you do, open ports 137,138 & 139 for tcp and udp. To check if you have firewall or not, do the 'iptables -L"; if you have input,forward and output chains filled up with rules, the firewall is active. I think RH is shipped with "Personal firewall tool" or smthg (the gui for iptables) which is used for adding&deleting firewall (iptables) rules in an easy fashion.
0
 
LVL 3

Author Comment

by:mte01
ID: 12338023
I am using a proxy server......but right now, I don't need to mount the NFS, I've transferred the files in another manner.....I'll give credit anyway
0
 
LVL 3

Author Comment

by:mte01
ID: 12338032
and of course thank you for your support!!!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month9 days, 17 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question