LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mounting a windows drive on a Linux machine (connected via an ethernet network) (https://www.linuxquestions.org/questions/linux-networking-3/mounting-a-windows-drive-on-a-linux-machine-connected-via-an-ethernet-network-157984/)

eddydw 03-15-2004 11:13 AM

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:

skel 03-15-2004 11:33 AM

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)

eddydw 03-18-2004 01:46 PM

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]#

skel 03-18-2004 06:55 PM

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

dav7500 03-22-2004 02:24 PM

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!

vinhhv 03-24-2004 01:30 AM

hello,
It's simple, let's do:
mount -t smbfs -o username=user,workgroup=domain_name //winaddr/sharename /mnt/smb

dav7500 03-24-2004 08:19 AM

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

phatboyz 04-02-2004 10:31 AM

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?

dav7500 04-02-2004 10:38 AM

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.

phatboyz 04-02-2004 11:10 AM

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

jony125 01-27-2006 11:29 PM

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

mickey46834 09-19-2008 02:55 PM

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.

jnreddy 09-23-2008 07:21 AM

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

lightningrod66 01-03-2009 03:13 PM

Hmmm.......
 
Quote:

Originally Posted by jnreddy (Post 3289186)
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

Maybe this is the problem I have? I am trying to connect WinXP Pro (NTFS) and Red Hat 9, but haven't been able to figure it out. Is that correct that NTFS cannot be mounted?


All times are GMT -5. The time now is 09:36 AM.