LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-24-2004, 11:00 PM   #1
RedhatBadNoob
LQ Newbie
 
Registered: Mar 2003
Location: NY
Distribution: Redhat 8.0
Posts: 7

Rep: Reputation: 0
Question How do I Access Windows resource via RH9?


I am sorry to post such a horrible question, but here is my scenario:

I am running Redhat 9 and want to mount (not sure if that is the correct term) a drive that will be used concurrently between my XP machine and my Linux box.

I have my network up in the sense that I can ping each machine from each other and both can hit my gateway, both are sharing my cable modem etc and I think I am fairly close.

The drive in question is an NTFS formated USB 2.0 drive which I have setup for network sharing. Do I have to make a partition on this drive in FAT to make this possible, and if so, what is the command I use to "map" the drive on the Linux machine?

I know this is probably the worst newbie question, but I am anxious learn whatever I can to make the transition out of the Windblows world to the Linux world.

Many thanks

Bernard
bernard@bluecanine.com
subskipper@msn.com
 
Old 07-24-2004, 11:31 PM   #2
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
Try
Code:
mount -t smbfs -o username=userame,password=password //windowsbox/sharename /path/to/mountpoint
you need to install the Samba package if you don't have it.
 
Old 07-25-2004, 07:22 AM   #3
RedhatBadNoob
LQ Newbie
 
Registered: Mar 2003
Location: NY
Distribution: Redhat 8.0
Posts: 7

Original Poster
Rep: Reputation: 0
Result

Ok, this is what I tried

Code:
mount -t smbfs -o username=blah,password=blah //scuba1/100gb
I get the mount point is not available. I don't understand what is supposed to follow the share name? When you say path/to/mountpoint do you mean I have to give it a name like dev/hda5 or something like that ?

The machine name is scuba1
the share name is 100gb

suggestions? Thanks for your continued help!

Bernard
 
Old 07-25-2004, 07:34 AM   #4
jax8
Member
 
Registered: Feb 2004
Location: Australia
Distribution: Ubuntu, Fedora 10
Posts: 632

Rep: Reputation: 31
/path/to/mountpoint

this is the location in your system where all the files cab be accessed

do the


mkdir /mnt/windowsShare

This will make a directory called windowsShare under the direcotry mnt. You only have to do this once

then

mount -t smbfs -o username=blah,password=blah //scuba1/100gb /mnt/windowsShare


now you will be able to go into the directory /mnt/windowsShare and access all the files

Last edited by jax8; 07-25-2004 at 07:35 AM.
 
Old 07-25-2004, 10:29 AM   #5
RedhatBadNoob
LQ Newbie
 
Registered: Mar 2003
Location: NY
Distribution: Redhat 8.0
Posts: 7

Original Poster
Rep: Reputation: 0
Still not working

Thanks in advance everyone,

I have done what everyone says, but I get the following error:

Mount: wrong fs type, bad option, bad superblock on //sucba1/linux or too many mounted file systems.


I realized that the system would not connect to the share I created because it was NTFS. So I created a simple 2GB FAT partition and named the share linux.

When I type the command (after creating the mount point mnt/windowsshare)

mount -t smbfs -o username=blah,password=blah //scuba1/linux /mnt/windowsShare

thats when I get the error message as described above.

?????

Thanks

Bernard

 
Old 07-25-2004, 11:44 AM   #6
Demonbane
LQ Guru
 
Registered: Aug 2003
Location: Sydney, Australia
Distribution: Gentoo
Posts: 1,796

Rep: Reputation: 47
The local filesystem on the file server is irrelevent, make sure you have the Samba package installed(see if "rpm -qa | grep -i samba" returns anything)
 
Old 07-26-2004, 06:12 PM   #7
RedhatBadNoob
LQ Newbie
 
Registered: Mar 2003
Location: NY
Distribution: Redhat 8.0
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks all, it works now!

I appreciate your help Demonbane and Jax8

Thanks!

Bernard
 
Old 08-29-2004, 12:59 AM   #8
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
I am trying to so the same: I have typed
mount -t smbfs -o username=***,password=*** //server/videos /mnt/server
It returns 5721: connection to server failed

I know for a fact that the server is setup OK. Also I do have the smb rpm installed. I tried that rpm command as mentioned previously. Any ideas?
 
Old 08-29-2004, 01:39 AM   #9
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
did you make an entry in /etc/hosts as to the ip address of the server? ie

Code:
127.0.0.1                                    localhost
192.168.0.10                                 nameofserveryouwanttoaccess
the hosts file does the address to name resoltion.

linux_terror
 
Old 08-29-2004, 03:08 AM   #10
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
That worked. Thanks a lot.


How do you unmount that on command line?
 
Old 08-29-2004, 03:56 AM   #11
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Here's how you'd unmount it.

Code:
smbumount /mnt/server
btw.....Glad that worked for ya.


linux_terror

-----------------------------------------------------------------------
In the game of life it takes a root prompt to really foul up.
 
Old 08-29-2004, 01:04 PM   #12
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
Thanks, Isnt' there a way to get it in my fstab file so it will remound on each boot?
 
Old 08-29-2004, 03:03 PM   #13
linux_terror
Member
 
Registered: Aug 2004
Location: Northbrook, Illinois
Distribution: CentOS-5
Posts: 311

Rep: Reputation: 30
Here ya go!

put entry like this in /etc/fstab...
Code:
 
//server/share /mnt/share smbfs workgroup=MY_WORKGROUP,username=my_username,password=my_password,users 0 0
And you may want to secure your fstab file permisssions as you will have a plain text password in it now

Enjoy,

linux_terror
 
Old 09-06-2004, 10:35 PM   #14
zchoyt
Member
 
Registered: Feb 2003
Location: Boise ID
Distribution: fedora
Posts: 156

Rep: Reputation: 30
I was mounting an NTFS network resource with fedora core1. I installed core2 and the command just sits there. When I shutdown the system it will set there and repeatedly timeout and retry when attempting to unmount the resource.

The command I am using is the same as above:
mount -t smbfs -o username=***,password=*** //server/videos /mnt/server

Is it possible that the firewall is blocking this? I didn't install it on core1, but did on core2. If so, how do I work with the firewall?
 
  


Reply


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
Secure Backup to RH9 from RH9 or Windows using secured FTP funaroma Linux - General 7 01-03-2005 08:36 AM
Samba access by Windows users locking out directory access with Konqueror harry_fine SUSE / openSUSE 1 12-18-2004 05:33 AM
Any Linux Vs Windows 2000 Security resource? neelay1 Linux - Security 1 12-07-2004 02:44 PM
Cannot use Samba to access RH9 from Windows XP plunday Linux - Networking 4 08-31-2004 05:55 PM
is this possible windows XP + WINDOWS 98+RH9 on a single disk? sumux Linux - Newbie 6 02-09-2004 01:56 PM


All times are GMT -5. The time now is 12:27 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