Networking Forums

Networking Forums > Computer Networking > Linux Networking > Mounting a windows machines drives on a linux machine

Reply
Thread Tools Display Modes

Mounting a windows machines drives on a linux machine

 
 
Allan Bruce
Guest
Posts: n/a

 
      09-29-2003, 05:57 PM
Hi there,
I have 2 machines, one running WinXP and one running Linux (Mandrake 9.1).
I have managed to get samba running on the linux machine so I can access the
Linux drive from the windows box. Now, I want to mount the Windows drives
on the Linux machine. Can somebody tell me how this is done?
Thanks
Allan


 
Reply With Quote
 
 
 
 
Chris
Guest
Posts: n/a

 
      09-29-2003, 06:15 PM
Allan Bruce wrote:
> Hi there,
> I have 2 machines, one running WinXP and one running Linux (Mandrake 9.1).
> I have managed to get samba running on the linux machine so I can access the
> Linux drive from the windows box. Now, I want to mount the Windows drives
> on the Linux machine. Can somebody tell me how this is done?
> Thanks
> Allan
>
>


I'm not sure if it can be done. I believe M$ decided they didn't want
that kind of thing happening so they messed with it, I can't connect to
a WinXP drive from a Win2K computer. But that goes to show version
incompatibility.

 
Reply With Quote
 
Stephan Absmeier
Guest
Posts: n/a

 
      09-29-2003, 06:44 PM
Hi,

Allan Bruce schrieb:
> Hi there,
> I have 2 machines, one running WinXP and one running Linux (Mandrake 9.1).
> I have managed to get samba running on the linux machine so I can access the
> Linux drive from the windows box. Now, I want to mount the Windows drives
> on the Linux machine. Can somebody tell me how this is done?
> Thanks
> Allan
>
>


use
smbmount //servername/sharename /localname -o username=xxx
smbumount

I think the other possibility is using
mount -t smbfs
you can write this to fstab like
//servername/sharename /localfolder smbfs rw,noauto,user,umask=000
0 0

Both work with red hat and WindowsXP and Windows98.

Stephan

 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      09-29-2003, 07:09 PM

"Stephan Absmeier" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Allan Bruce schrieb:
> > Hi there,
> > I have 2 machines, one running WinXP and one running Linux (Mandrake

9.1).
> > I have managed to get samba running on the linux machine so I can access

the
> > Linux drive from the windows box. Now, I want to mount the Windows

drives
> > on the Linux machine. Can somebody tell me how this is done?
> > Thanks
> > Allan
> >
> >

>
> use
> smbmount //servername/sharename /localname -o username=xxx
> smbumount
>
> I think the other possibility is using
> mount -t smbfs
> you can write this to fstab like
> //servername/sharename /localfolder smbfs rw,noauto,user,umask=000
> 0 0
>
> Both work with red hat and WindowsXP and Windows98.
>
> Stephan
>


It tries to connect, and asks for the password. Then it says:
6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid
share name)
Do I have to do anything to the windows machine?
Thanks
Allan


 
Reply With Quote
 
Stephan Absmeier
Guest
Posts: n/a

 
      09-29-2003, 07:22 PM


Allan Bruce schrieb:
> "Stephan Absmeier" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
>
>>Hi,
>>
>>Allan Bruce schrieb:
>>
>>>Hi there,
>>>I have 2 machines, one running WinXP and one running Linux (Mandrake

>>

> 9.1).
>
>>>I have managed to get samba running on the linux machine so I can access

>>

> the
>
>>>Linux drive from the windows box. Now, I want to mount the Windows

>>

> drives
>
>>>on the Linux machine. Can somebody tell me how this is done?
>>>Thanks
>>>Allan
>>>
>>>

>>
>>use
>>smbmount //servername/sharename /localname -o username=xxx
>>smbumount
>>
>>I think the other possibility is using
>>mount -t smbfs
>>you can write this to fstab like
>>//servername/sharename /localfolder smbfs rw,noauto,user,umask=000
>> 0 0
>>
>>Both work with red hat and WindowsXP and Windows98.
>>
>>Stephan
>>

>
>
> It tries to connect, and asks for the password. Then it says:
> 6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an invalid
> share name)
> Do I have to do anything to the windows machine?
> Thanks
> Allan
>
>


use

smbclient -L servername -N

to see the available share, on the windows machine you have to share
folders or devices. you can do this in the properties of the folder or
the device. If there's no option to do this you have to install the
service for sharing devices and printers in the network configuration

 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      09-30-2003, 07:15 AM
> > It tries to connect, and asks for the password. Then it says:
> > 6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an

invalid
> > share name)
> > Do I have to do anything to the windows machine?
> > Thanks
> > Allan
> >
> >

>
> use
>
> smbclient -L servername -N
>
> to see the available share, on the windows machine you have to share
> folders or devices. you can do this in the properties of the folder or
> the device. If there's no option to do this you have to install the
> service for sharing devices and printers in the network configuration
>


I see all of the shared drives on the windows machine with the above
command, but I still get a "(You specified an invalid share name)". The
windows machine is successfully sharing its drives with another windows
machine.
Any ideas?
Thanks
Allan


 
Reply With Quote
 
Stephan Absmeier
Guest
Posts: n/a

 
      09-30-2003, 08:29 AM


Allan Bruce schrieb:
>>>It tries to connect, and asks for the password. Then it says:
>>>6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an

>>

> invalid
>
>>>share name)
>>>Do I have to do anything to the windows machine?
>>>Thanks
>>>Allan
>>>
>>>

>>
>>use
>>
>>smbclient -L servername -N
>>
>>to see the available share, on the windows machine you have to share
>>folders or devices. you can do this in the properties of the folder or
>>the device. If there's no option to do this you have to install the
>>service for sharing devices and printers in the network configuration
>>

>
>
> I see all of the shared drives on the windows machine with the above
> command, but I still get a "(You specified an invalid share name)". The
> windows machine is successfully sharing its drives with another windows
> machine.
> Any ideas?
> Thanks
> Allan
>
>

if
smbclient -L servername -N
works on the linux machine try
smbmount ... workgroup=your_windows_workgroup
else
try the ip-address

have a look on 'man smbmnt' or 'man smbmount'

 
Reply With Quote
 
Stephan Absmeier
Guest
Posts: n/a

 
      09-30-2003, 08:31 AM


Allan Bruce schrieb:
>>>It tries to connect, and asks for the password. Then it says:
>>>6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an

>>

> invalid
>
>>>share name)
>>>Do I have to do anything to the windows machine?
>>>Thanks
>>>Allan
>>>
>>>

>>
>>use
>>
>>smbclient -L servername -N
>>
>>to see the available share, on the windows machine you have to share
>>folders or devices. you can do this in the properties of the folder or
>>the device. If there's no option to do this you have to install the
>>service for sharing devices and printers in the network configuration
>>

>
>
> I see all of the shared drives on the windows machine with the above
> command, but I still get a "(You specified an invalid share name)". The
> windows machine is successfully sharing its drives with another windows
> machine.
> Any ideas?
> Thanks
> Allan
>
>



if
smbclient -L servername -N
works on the linux machine try
smbmount ... workgroup=your_windows_workgroup
else
try the ip-address

no more ideas in the moment
maybe have a look on 'man smbmnt' or 'man smbmount'

Stephan

 
Reply With Quote
 
John Armstrong
Guest
Posts: n/a

 
      09-30-2003, 09:37 AM
On Tue, 30 Sep 2003 08:15:23 +0100, Allan Bruce wrote:

>>> It tries to connect, and asks for the password. Then it says:
>>> 6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an

> invalid
>>> share name)
>>> Do I have to do anything to the windows machine?
>>> Thanks
>>> Allan
>>>
>>>

>>
>> use
>>
>> smbclient -L servername -N
>>
>> to see the available share, on the windows machine you have to share
>> folders or devices. you can do this in the properties of the folder or
>> the device. If there's no option to do this you have to install the
>> service for sharing devices and printers in the network configuration
>>

>
> I see all of the shared drives on the windows machine with the above
> command, but I still get a "(You specified an invalid share name)". The
> windows machine is successfully sharing its drives with another windows
> machine.
> Any ideas?
> Thanks
> Allan


Any spaces in the sharename? If so you may need to put quotes around it.
 
Reply With Quote
 
Allan Bruce
Guest
Posts: n/a

 
      09-30-2003, 09:47 AM

"John Armstrong" <(E-Mail Removed)> wrote in message
news:1ejg1lwvpiu9g$.(E-Mail Removed)...
> On Tue, 30 Sep 2003 08:15:23 +0100, Allan Bruce wrote:
>
> >>> It tries to connect, and asks for the password. Then it says:
> >>> 6830: tree connect failed: ERRDOS - ERRnosuchshare (You specified an

> > invalid
> >>> share name)
> >>> Do I have to do anything to the windows machine?
> >>> Thanks
> >>> Allan
> >>>
> >>>
> >>
> >> use
> >>
> >> smbclient -L servername -N
> >>
> >> to see the available share, on the windows machine you have to share
> >> folders or devices. you can do this in the properties of the folder or
> >> the device. If there's no option to do this you have to install the
> >> service for sharing devices and printers in the network configuration
> >>

> >
> > I see all of the shared drives on the windows machine with the above
> > command, but I still get a "(You specified an invalid share name)". The
> > windows machine is successfully sharing its drives with another windows
> > machine.
> > Any ideas?
> > Thanks
> > Allan

>
> Any spaces in the sharename? If so you may need to put quotes around it.


I didnt think there was - I was trying the drive letter as the share name,
but it was requiring the label and the drive letter, e.g.
//picard/"games (d)"
And now it works )
thanks guys
Allan


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to remotely login into a pure IPv6 Linux machine from a DualStack windows machine chaitan Linux Networking 1 11-21-2007 05:37 PM
Mounting Windows 2003 shares on Linux - SMB Signing Andy Wolsten Windows Networking 2 06-16-2006 02:55 AM
Mounting shares over multiple win server 2003 drives josh.moore.it@gmail.com Linux Networking 1 11-02-2005 07:25 PM
can linux talk to windows machines Bernhard Kastner Linux Networking 4 10-05-2004 01:29 AM
Having trouble mounting remote drives Dad Linux Networking 0 12-26-2003 03:33 AM



1 2 3 4 5 6 7 8 9 10 11