LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to access a shared folder on a windows machine (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-access-a-shared-folder-on-a-windows-machine-300396/)

learnfast 03-11-2005 08:57 AM

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.

bitt_u 03-11-2005 09:06 AM

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!!! :rolleyes:

overlord73 03-11-2005 09:14 AM

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.

pingu 03-11-2005 09:18 AM

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.

learnfast 03-11-2005 09:25 AM

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.

bitt_u 03-11-2005 09:30 AM

can u try ssh to m2 from m1 after u have FC3 on m2

pingu 03-11-2005 09:45 AM

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.

learnfast 03-11-2005 09:45 AM

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.

zeddity 03-11-2005 09:52 AM

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/

zeddity 03-11-2005 09:56 AM

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.

bullium 03-11-2005 10:08 AM

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.

bitt_u 03-12-2005 01:50 AM

does ftp work for u?


All times are GMT -5. The time now is 07:31 PM.