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 |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
03-11-2005, 09:57 AM
|
#1
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Rep:
|
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.
|
|
|
03-11-2005, 10:06 AM
|
#2
|
Member
Registered: Mar 2005
Posts: 39
Rep:
|
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 10:20 AM.
|
|
|
03-11-2005, 10:14 AM
|
#3
|
Member
Registered: Apr 2004
Location: ..where no life dwells..
Posts: 541
Rep:
|
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.
|
|
|
03-11-2005, 10:18 AM
|
#4
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep:
|
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 10:47 AM.
|
|
|
03-11-2005, 10:25 AM
|
#5
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Original Poster
Rep:
|
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.
|
|
|
03-11-2005, 10:30 AM
|
#6
|
Member
Registered: Mar 2005
Posts: 39
Rep:
|
can u try ssh to m2 from m1 after u have FC3 on m2
|
|
|
03-11-2005, 10:45 AM
|
#7
|
Senior Member
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350
Rep:
|
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.
|
|
|
03-11-2005, 10:45 AM
|
#8
|
Member
Registered: Mar 2005
Location: berlin
Distribution: Redhat 9, Fedora 3
Posts: 70
Original Poster
Rep:
|
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.
|
|
|
03-11-2005, 10:52 AM
|
#9
|
LQ Newbie
Registered: Jul 2004
Posts: 13
Rep:
|
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/
|
|
|
03-11-2005, 10:56 AM
|
#10
|
LQ Newbie
Registered: Jul 2004
Posts: 13
Rep:
|
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 10:57 AM.
|
|
|
03-11-2005, 11:08 AM
|
#11
|
Member
Registered: Aug 2003
Location: Ohio
Distribution: Ubuntu 12.04, Mint 13, RHES 5.5, RHES 6
Posts: 146
Rep:
|
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.
|
|
|
03-12-2005, 02:50 AM
|
#12
|
Member
Registered: Mar 2005
Posts: 39
Rep:
|
does ftp work for u?
Last edited by bitt_u; 03-12-2005 at 03:04 AM.
|
|
|
All times are GMT -5. The time now is 06:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|