Mounting a windows drive on a Linux machine (connected via an ethernet network)
Hi All,
I want to be able to share (have access to) my C drive on my Laptop (running Windows XP) from my Desktop running Red Hat Linux. What do I need to do in order to accomplisch this? I can connect my laptop via an ethernet repeater to my Desktop (running RH7.3 linux). Thanks in advance Eddy:scratch: |
first you need to make a directory where you want the share to be mounted, i use /mnt/smb but you can use anything you want
so, from a terminal do this (as root): mkdir /mnt/smb mount -t smbfs -o username=user //winaddr/sharename /mnt/smb where: user is a user on your windows network/machine winaddr is the network address of your windows machine (ip or hostname) and sharename is the name of the share also, you should be able to add an entry in your fstab so you just have to type mount /mnt/smb look at man fstab you will need support for smb filesystems (which you should have unless you have re-compiled your kernel without it) |
Hello ,
Thanks for the suggestion,however I tried the following as root ipconfig /all (on my Windows PC).This gives me following IP address 192.168.1.101 ifconfig -a on Linux machine .This gives me ip adress 192.168.1.100. Both PC's are behing a wireless base station. Then on my RH73 Linux machine I did : mkdir /mnt/smb mount -t smbfs -o username=user //winaddr/sharename /mnt/smb where: user is a user on my windows machine network/machine winaddr is the network address of your windows machine (ip or hostname) and sharename is the name of the share . I used $c as sharename since I want to share my C drive on my Windows machine Below you find the reult of the mount command with the fields specifieds as mentioned aboveDo you have any further suggestions. 3831: session request to 192.168.1.101 failed (Called name not present) 3831: session request to 192 failed (Called name not present) Password: 3831: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed [root@localhost root]# |
you say they are behind a wireless base station.. does that mean you are using a wireless network adapter on your linux box?
also, what happens if you ping 192.168.1.101 from linux (ie type ping 192.168.1.101 from a command-line) one more thing, for hidden windows shares the $ comes after the name so your c drive would be c$ so lets say i was a user on your network, i would run: mount -t smbfs -o username=skel //192.168.1.101/c$ /mnt/smb as root from a command-line if this works you should also look man mount and man fstab those man pages should give you the info you need to make it mount automagically hope it works skel |
Hi,
I tried the same command & get the same failed result. Any ideas? I can ping fine via IP between RH Linux 9 and WinPC box [root@salinux3077 mnt]# mount -t smbfs -o username=xxx,uid=xxx,gid=xxx //winpc/d$ /mnt/winpc 15988: session request to winpc failed (Called name not present) 15988: session request to 203 failed (Called name not present) Password: 15988: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed Thanks! |
hello,
It's simple, let's do: mount -t smbfs -o username=user,workgroup=domain_name //winaddr/sharename /mnt/smb |
Voila. That did the trick!
It's odd since I was able to map previously using below cmd: mount -t smbfs -o username=xxx,uid=xxx,gid=xxx //winpc/d$ /mnt/winpc No matter since I'm good to go. Thank you!! |
I am having a problem mont win NT drive
Is it possible to mount a Win NT drive using samba. I have tried the following command.
mount -t smbfs -o username=name,password=password,workgroup=butt //hostname/mail /mnt/backup. I keep getting a access denied. I have use both the host name and the ip address. Am I doing something wrong? |
It's tricky. Sometimes you need one variable, sometimes you dont...at least that's what i've learned through experience & previous problems.
Re-try the mount cmd w/ and w/o workgroup, uid, gid variables. |
I have tried it with and without the workgroup and it doesn't work still. I guess that I need to use gid and uid
|
access denied error
[QUOTE=eddydw]Hello ,
Thanks for the suggestion,however I tried the following as root ipconfig /all (on my Windows PC).This gives me following IP address 192.168.80.3 ifconfig -a on Linux machine .This gives me ip adress 192.168.1.100. Both PC's are behing a wireless base station. Then on my RHEL$ Linux machine I did : mkdir /mnt/smb mount -t smbfs -o username=user //winaddr/sharename /mnt/smb where: user is a user on my windows machine network/machine winaddr is the network address of your windows machine (ip or hostname) and sharename is the name of the share . I used $c as sharename since I want to share my C drive on my Windows machine Below you find the reult of the mount command with the fields specifieds as mentioned aboveDo you have any further suggestions. mount -t smbfs -o username=administrator //sys24/d$ /mnt/ Password: 7838: session setup failed: ERRDOS - ERRnoaccess (Access denied.) SMB connection failed |
Mounting a windows drive on a Linux machine (connected via an ethernet network)
I use windows xp on one and ubuntu on another and I was able to just enable file sharing on the xp and share all of C drive (no password, full access to files) then on linux click home folder then on the left network servers and C on XP popped right up no configuring at all, then drug a link to the desktop so it's always there. Not sure if that will help anyone but was simple and worked right off the bat.
|
interesting
hi,
friends topic is interesting i not yet tried tomorrow i try i want to clarify one thing can we mount ntfs and fat. i came to know ntfs is not possible to mount thanks in advance jnreddy |
Hmmm.......
Quote:
|
All times are GMT -5. The time now is 09:36 AM. |