Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I am running Red Hat 9 and I have a windows XP computer on my LAN. I want to beable to access files on it from my Linux box. I do everything through the terminal. I thought the best way to do it was by mounting it and I tried to read the man files to learn how to do it but couldn't get anywhere. Any advice?
Originally posted by Demonbane here's an example mounting a share say called \\ws1\share
mount -t smbfs -o username=yourusername,password=yourpass //ws1/share /mount/point
I am still a little unsure how to use that comand. I know my windows computer local IP address so how do I put that in? what would the username and password be? also, can I have the mountpoint be anywhere? is smbfs the file system for ntfs?
It depends on how your winXP shares are configured, if it doesnt require a valid username/password to access then you can leave out the options altogether.
You can substitude the hostname with the IP address, yes the mount point can be anywhere as long as it exists. Smbfs is just a name you give to mount telling it that you want to mount a remote filesystem using SMB(Server Message Block) protocol, which is what Windows file and printer sharing is built on. The remote system can have any type of local filesystem, as long as both sides support SMB protocol, they'll be able to share resources. Like how your Windows machines can browse a webpage from any webserver regardless of the platform and filesystem, as long as both sides can talk in http.
Ok, I must be doing something really stupid wrong. I mad a directory in my home drive called wind. The is where I want to mount my computer running windows to. so I typed
mount -t smbfs -o //192.168.2.3 ./wind
the windows computer has the local IP of 192.168.2.3. when I type that in it jsut gives me the man pages for mount, so I am not sure if it is how I am typing it in or if it is something else. What I think I might be doing wrong is how my files are getting shared on my Windows computer, how do I go about making it so that the files are shared on Windows (sorry, I know that might be a Windows question). Thanks for your guy's help I am fairly new to this networking stuff.
mount -t smbfs -o username=guest,password= //192.168.2.3/some_share_name ./wind
First you must run this as root or use sudo. If you don't know what sudo is ..man sudo.
This also assumes you allow guest access on your winXP box which is off by default. You may want to add a user to the win box like "linuxuser" with some pass "somePass". You also need the name of the share you are connecting to i.e. share a folder called tolinux. If you do this your command would lok like this.
mount -t smbfs -o username=linuxuser,password=somePass //192.168.2.3/tolinux ./wind
if you want to be prompted for a password
mount -t smbfs -o username=guest,password //192.168.2.3/tolinux ./wind
The reason that mount returned the mount options is because you gave it the -o flag (the options flag) with no options. Here is a breakdown of the command
mount -t smbfs -o username=guest,password //192.168.2.3 ./wind
mount -t filesystem_type -o option1,option2 //where_we_are_mounting_from /where_we_are_mounting_to
I know its so annoying when some one says read the man page or man this or man that but it is important to read them. They are technical documents that you need to learn how to read. The more you read them the better you will get at reading them the more problems you will be able to solve on your own!