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.
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790
Rep:
That's because RHEL does not support for some of the older smb utils any more, one as to install rpm packages built from the samba.org source for in order to use the findsmb utility. You should use the IP address of the Windows shares for mounting, you can get this information from the Windows system(s) by typing: ipconfig /all
Remember to use cifs instead of smbfs when mounting also;
Example:
Code:
mount -t cifs //192.168.1.10/D /mnt/Desktop -o credentials=/etc/cifs.txt -rw
Hey,
I have the 2.6.9-42 kernel. Do i still need CIFS?
I have not heard much about it, and google doesn't seem to know that much either.
DO i need to open firewall rules on the windows box?
when i ran the mount command, it asked for a password. I tried all my passwords, as the remote user and as the admin user. Neither worked.
You've got RHEL4 so thats so nice.
As Lenard said you'll need CIFS.
so for example you have a share on windows called test and you use easy filesharing.
The ip of the windows system is 192.168.1.1
then you can do this on your linux rhel4 in order to mount it.
Quote:
Create a Mountpoint
mkdir /mnt/winshare
then do a
mount -t cifs //192.168.1.1/test /mnt/winshare
to see the windows shares you can issue the command
Quote:
smbclient -L 192.168.1.1
you'll be asked for a password (just press enter)
If you don't have simple fileshare enabled on your windows system you'll have to mount like
Quote:
mount -t cifs //192.168.1.1/test /mnt/winshare -o username=yourusername on windows,password=his password
mount -t cifs //IP/share /mnt/point -o username=user
and that mounted it.
However it asked for the password the username, which is fine now. However how can i automake this in /etc/fstab and make it so I dont need the password??
and what happens if the share is unavable during the linux machine reboot? if the line is added in the fstab? the linux machine will halt boot correct?
somewhere, not sure where. I read a way to set it up where the shared drive is only mounted on demand. or somthing like that.
for example
if you have a linux machine that does a backup at 12 midnight and uses kbackup to do it, when it starts the backup it issues the mount then unmount when done.
am I off base?? sounds nice, but cant find where I read that.
my only concern is the fact that if the share is an external Hard drive on the windows network and the drive isnt attached or its turned off, and fstab dont see it during boot then it would be a pain to get the linux machine to boot. correct?
but like what was stated before i need to hit enter because it asks for a pass, there is not pass so i hit enter and it mounts. (great)
but i want to use fwbackup to run at 2am and i want to set it to mount the drive before it starts backing up and unmount when it is finished,
when i tryed the code below and after i made the smbpasswd file it gives me a ton of option that i am not sure of...also i nothed that when i use
umount -t cifs //192.168.1.10/maxtor /mnt/winshare
to unmount the share ...it wont unmount i can still see it in the /mnt/winshare
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.