LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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!

Notices


Reply
  Search this Thread
Old 06-13-2006, 02:59 PM   #1
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Rep: Reputation: 15
"Mounting" a network drive


I just installed my first distro of linux (Suse 10.1) And am getting adjusted fairly well. I am finding in ALOT more responsive than windows. However Im am at a loss on how to do a few things. Mainly, mapping a network drive. Im not quite sure what its called in linux.

At work we have a wireless connection as well as a standard ethernet connection. I normally dont actully join the domain or a workgroup, I just plug in or attack tot the wireless for internet access and access to my folders on the server. The way I did this under windows was to simply use the "Map Network drive" option and type in the IP followed by the folder name. Example. //192.168.1.222/Storage Folder. And BAM! Instantly mapped folder.

Is there anyway to do something like this in linux without alot of hassele?

Thanks all.
 
Old 06-13-2006, 03:59 PM   #2
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Yes, it is also very simple in linux too. Just try this command
Code:
mount //192.168.1.222/win_share -t smbfs /mnt/folder_on_linux -o "username=winuser,password=winsharepassword"
But, for this command to work, you must have
1) Same class of ipaddress/subnet on both machines
2) smbfs installed
3) Same workgroup (recommended)
 
Old 06-13-2006, 04:02 PM   #3
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manishsingh4u
Yes, it is also very simple in linux too. Just try this command
Code:
mount //192.168.1.222/win_share -t smbfs /mnt/folder_on_linux -o "username=winuser,password=winsharepassword"
But, for this command to work, you must have
1) Same class of ipaddress/subnet on both machines
2) smbfs installed
3) Same workgroup (recommended)
Sorry. I am VERY new to this whole thing. What is smbfs?
 
Old 06-13-2006, 04:12 PM   #4
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Okay. just open konsole and type the command I told and tell me what u see there

Last edited by manishsingh4u; 06-13-2006 at 04:14 PM.
 
Old 06-13-2006, 04:19 PM   #5
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manishsingh4u
Okay. just open konsole and type the command I told and tell me what u see there
It just says "only root can do that"

I went pasted the command line into notes and then went through and edited it with the information that should be there as opposed to the generic information

Last edited by Rollotamasi; 06-13-2006 at 04:24 PM.
 
Old 06-13-2006, 04:25 PM   #6
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Okay, if u have a root password, then type
Code:
su
and enter the root password.
Make any directory in your /mnt/ directory (or anywhere else except /root/)
Code:
mkdir /mnt/windows
Then try the same mount command.
 
Old 06-13-2006, 04:33 PM   #7
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manishsingh4u
Okay, if u have a root password, then type
Code:
su
and enter the root password.
Make any directory in your /mnt/ directory (or anywhere else except /root/)
Code:
mkdir /mnt/windows
Then try the same mount command.
5058: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid share name)
SMB connection failed


But im pretty sure thats the name of the share. I am mapping it exactly like this

mount //192.168.1.238/CENTRAL STORAGE -t smbfs /mnt/windows -o username=*******,password=********
 
Old 06-13-2006, 04:38 PM   #8
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Quote:
mount //192.168.1.238/CENTRAL STORAGE -t smbfs /mnt/windows -o username=*******,password=********
yes, the space in the share name must be creating the problem. Try putting "//192.168.1.238/CENTRAL STORAGE"
The double quotes should work, but I haven't tried it though.
 
Old 06-13-2006, 04:38 PM   #9
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
you may need to put the share in single (or double?) quotes since it has a space (or else change share name to not having one). i think the command is probably reading it only as CENTRAL.
 
Old 06-13-2006, 04:40 PM   #10
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manishsingh4u
yes, the space in the share name must be creating the problem. Try putting "//192.168.1.238/CENTRAL STORAGE"
The double quotes should work, but I haven't tried it though.
Double quotes? Im sorry, I dont see what you mean.
 
Old 06-13-2006, 04:42 PM   #11
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Rollotamasi
Double quotes? Im sorry, I dont see what you mean.
Ok, I made a guess and just put quotation marks around "central Storage" It didnt error out but I dont think it did anything.

Last edited by Rollotamasi; 06-13-2006 at 04:43 PM.
 
Old 06-13-2006, 04:47 PM   #12
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
Okay, then perhaps it's done
just do
Code:
ls /mnt/windows
And you must see the shared files from the other PC.
now u can access these files by going to that directory
 
Old 06-13-2006, 04:51 PM   #13
Rollotamasi
Member
 
Registered: Jun 2006
Posts: 39

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by manishsingh4u
Okay, then perhaps it's done
just do
Code:
ls /mnt/windows
And you must see the shared files from the other PC.
now u can access these files by going to that directory
Ok cool. I can see it with the text command, however how do I find it with a file browser?
 
Old 06-13-2006, 04:53 PM   #14
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 46
Quote:
Originally Posted by Rollotamasi
Ok cool. I can see it with the text command, however how do I find it with a file browser?
1. open file browser
2. browse

 
Old 06-13-2006, 04:54 PM   #15
manishsingh4u
Member
 
Registered: Oct 2005
Location: Pune, India
Distribution: OpenSUSE 11.0
Posts: 422

Rep: Reputation: 30
I guess, you must be using Konqueror. So just click "Run" (Run Command) from the KMenu (Similar to Start button in windows) and type /mnt/windows.
And there you go.
Note - In most KDEs you can also see the "Run" option by right clicking anywhere on the Desktop.
 
  


Reply

Tags
fstab


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I'm trying to "Map network drive" Aubrey-calm Linux - Newbie 12 08-22-2005 09:10 AM
Tried mounting NTFS drive to /home "suse9.1 Personal Ed." scratch09 Linux - Newbie 5 11-11-2004 03:36 PM
USB drive keeps mounting as "read only" I need to write to it. Lossenelin Linux - Hardware 1 02-12-2004 07:49 PM
"ifcfg-ethx" and "network-functions" files peok Linux - Networking 12 08-13-2003 07:06 PM
Mounting windows "c" drive in Linux jsin Linux - Newbie 5 07-28-2003 12:29 PM


All times are GMT -5. The time now is 06:43 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration