LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-15-2004, 11:13 AM   #1
eddydw
LQ Newbie
 
Registered: Jan 2003
Location: Belgium (Wetteren)
Distribution: Red Hat Linux 7.3
Posts: 11

Rep: Reputation: 0
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
 
Old 03-15-2004, 11:33 AM   #2
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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)
 
Old 03-18-2004, 01:46 PM   #3
eddydw
LQ Newbie
 
Registered: Jan 2003
Location: Belgium (Wetteren)
Distribution: Red Hat Linux 7.3
Posts: 11

Original Poster
Rep: Reputation: 0
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]#
 
Old 03-18-2004, 06:55 PM   #4
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
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
 
Old 03-22-2004, 02:24 PM   #5
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Rep: Reputation: 15
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!
 
Old 03-24-2004, 01:30 AM   #6
vinhhv
LQ Newbie
 
Registered: Aug 2002
Location: VietNam
Posts: 12

Rep: Reputation: 0
hello,
It's simple, let's do:
mount -t smbfs -o username=user,workgroup=domain_name //winaddr/sharename /mnt/smb
 
Old 03-24-2004, 08:19 AM   #7
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Rep: Reputation: 15
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!!
 
Old 04-02-2004, 10:31 AM   #8
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
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?
 
Old 04-02-2004, 10:38 AM   #9
dav7500
Member
 
Registered: Feb 2004
Posts: 45

Rep: Reputation: 15
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.
 
Old 04-02-2004, 11:10 AM   #10
phatboyz
Member
 
Registered: Feb 2004
Location: Mooresville NC
Distribution: CentOS 4,Free BSD,
Posts: 358

Rep: Reputation: 30
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
 
Old 01-27-2006, 11:29 PM   #11
jony125
LQ Newbie
 
Registered: Jan 2006
Posts: 3

Rep: Reputation: 0
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
 
Old 09-19-2008, 02:55 PM   #12
mickey46834
LQ Newbie
 
Registered: Sep 2008
Posts: 1

Rep: Reputation: 0
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.
 
Old 09-23-2008, 07:21 AM   #13
jnreddy
Member
 
Registered: May 2008
Location: INDIA
Distribution: RHEL
Posts: 171

Rep: Reputation: 15
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
 
Old 01-03-2009, 03:13 PM   #14
lightningrod66
LQ Newbie
 
Registered: Jan 2005
Location: Indiana USA
Distribution: Ubuntu Server 12.04 LTS
Posts: 12

Rep: Reputation: 0
Hmmm.......

Quote:
Originally Posted by jnreddy View Post
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?
 
  


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
slow boot when ethernet cable not connected to network hyperriven Linux - Networking 4 04-10-2005 01:47 PM
linux machine does not connect to the network in windows network Bzuco Linux - Networking 2 07-19-2004 04:44 AM
when fedora machine is connected to the internet via network windiws machines cannot purbeck Linux - Networking 1 01-24-2004 07:50 AM
printing to a printer connected to windows machine arrao18 Linux - Networking 0 07-16-2003 12:25 AM
Mounting a Solaris SCSI drive on Linux machine Crac Linux - Newbie 4 05-29-2002 07:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:44 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