LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-11-2005, 08:57 AM   #1
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Rep: Reputation: 15
how to access a shared folder on a windows machine


I have a fedora3 system installed and can successfully ping
my windows xp network card over the network.

Is there an easy way to mount one of the shared winxp folders in linux
so that I can view/edit the files. it is ntfs on winxp, is that a problem?

Thanks.
 
Old 03-11-2005, 09:06 AM   #2
bitt_u
Member
 
Registered: Mar 2005
Posts: 39

Rep: Reputation: 15
try this command,
mount -t vfat /dev/... <mount point>
the mount point can be any directory in your system say /tmp/... you have to edit the the fstab file. try giving defaults in the optins column in fstab and fstype is of course fat32. this might boot the shared folders in other machine on booting.
if that doesn't work try installing fedora3 on the xp machine (dual boot).lets call this machine m2.mount files and folders which you want from xp onto the fedora3 of m2. and then by ssh tranfer files from both machines.
if any Qts just ask!!!

Last edited by bitt_u; 03-11-2005 at 09:20 AM.
 
Old 03-11-2005, 09:14 AM   #3
overlord73
Member
 
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541

Rep: Reputation: 30
hi,
make sure,
1) the dir on win-machine is shared
2) create a mountpoint for the shared-dir on ur FCbox

Code:
mount -t smbfs -o username=xxx,password=yyy //winxp/share /mountpoint/
u can ignore the -o option, if ur FC3-user/passwd is identical to WinXP-user/passwd.
 
Old 03-11-2005, 09:18 AM   #4
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
That won't work on a network.
edit: I'm referring to bitt_u now, once again I'm not fast enough :-)

I'm doing exactly that, with this line in /etc/rc.d/rc.local:
Code:
mount -t cifs -o credentials=/etc/mypassword //a-server2/peterh$ /home/peterh/G
That -o credentials=/etc/mypasswd points to the file where username and password is stored, the file /etc/mypasswd is readonly for root only. Syntax:
username=pingu
password=123456

But I believe you must have samba installed? Not sure really, I have both samba & lisa configured and running.

Last edited by pingu; 03-11-2005 at 09:47 AM.
 
Old 03-11-2005, 09:25 AM   #5
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Original Poster
Rep: Reputation: 15
that's close, when I say:


mount -t smbfs -o username=edt,password=nnn //192.168.66.1 /home/edward/testmount/

it says:

3223: session request to 192.168.66.1 failed (Called name not present)


The share on XP is set to "full control for everyone".

What else can I try to get this connected?

Thanks.
 
Old 03-11-2005, 09:30 AM   #6
bitt_u
Member
 
Registered: Mar 2005
Posts: 39

Rep: Reputation: 15
can u try ssh to m2 from m1 after u have FC3 on m2
 
Old 03-11-2005, 09:45 AM   #7
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
First of all, try 'cifs' instead of 'smbfs'
smbfs didn't work for me, I think that works with earlier Windows-versions only.
Secondly, install/configure samba. test it:
In konqueror type in like this in the adress-field: (your servername & share of course...)
smb://a-server2/Install$

Any message you receive will point you to the problem.
 
Old 03-11-2005, 09:45 AM   #8
learnfast
Member
 
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70

Original Poster
Rep: Reputation: 15
i downloaded puTTY
tried to ssh from winxp to fed3 with the ip address (port 22)
and got:
Network Error: connection reset by peer


on my fed3 in services, I tried to click on telnet (to try that) but it said that I need to enable xinetd, which is already running...


so how can I get the ssh connection to work?

thanks.
 
Old 03-11-2005, 09:52 AM   #9
zeddity
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Rep: Reputation: 0
Quote:
Originally posted by learnfast
that's close, when I say:


mount -t smbfs -o username=edt,password=nnn //192.168.66.1 /home/edward/testmount/

it says:

3223: session request to 192.168.66.1 failed (Called name not present)
Pretty sure you need to include the name that windows XP gives the share.

mount -t smbfs -o username=edt,password=nnn //192.168.66.1/<sharename> /home/edward/testmount/
 
Old 03-11-2005, 09:56 AM   #10
zeddity
LQ Newbie
 
Registered: Jul 2004
Posts: 13

Rep: Reputation: 0
Damn you're fast.

Don't know about ssh, but the first thing to try would probably be to try and connect to sshd from the fedora box itself to see if it's actually accepting connections.

ssh 127.0.0.1 on the fedora box.

Last edited by zeddity; 03-11-2005 at 09:57 AM.
 
Old 03-11-2005, 10:08 AM   #11
bullium
Member
 
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146

Rep: Reputation: 17
This should work for you
Code:
smbmount //windowspcname/share /linuxbox/directory -o rw,username=un,password=pw
make sure your /etc/hosts file has your windows host name and IP address in it.

your /etc/hosts file should look something like this

# hosts This file describes a number of hostname-to-address
# mappings for the TCP/IP subsystem. It is mostly
# used at boot time, when no name servers are running.
# On small systems, this file can be used instead of a
# "named" name server. Just add the names, addresses
# and any aliases to this file...
#
# By the way, Arnt Gulbrandsen <agulbra@nvg.unit.no> says that 127.0.0.1
# should NEVER be named with the name of the machine. It causes problems
# for some (stupid) programs, irc and reputedly talk. :^)
#

# For loopbacking.
127.0.0.1 localhost
192.168.1.101 windowspcname
# End of hosts.
 
Old 03-12-2005, 01:50 AM   #12
bitt_u
Member
 
Registered: Mar 2005
Posts: 39

Rep: Reputation: 15
does ftp work for u?

Last edited by bitt_u; 03-12-2005 at 02:04 AM.
 
  


Reply



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
How can I mount a Windows XP shared folder? mlse Linux - Networking 3 09-28-2006 06:36 AM
XP can't access Ubuntu shared folder but xbox (xbmc) does Tristan9669 Linux - Networking 3 08-14-2005 08:40 PM
Can Linux access WinXP's shared folder? davidas Linux - Newbie 5 04-17-2004 04:48 AM
can't access shared folder of other PC's.work on Mandrake 9.2 to WinXP nicolo Linux - Networking 0 03-04-2004 08:39 AM
Can't see or access XP Pro machine with shared files in MDK 9.2 dsfh24 Linux - Networking 0 01-24-2004 09:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:40 AM.

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
Open Source Consulting | Domain Registration