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 08-14-2001, 08:48 PM   #1
loganwva
Member
 
Registered: Jul 2001
Location: West Virginia
Distribution: SuSE 9.1
Posts: 117

Rep: Reputation: 15
how do I mount a windows drive


I have a home network with two computers on it, a Windows XP box with NTFS file system and a Linux Mandrake 8.0 box. I have Samba running on the Mandrake box and can access all my Linux shares from my Windows XP box. What I would like to know is how do I mount my Windows XP shares on my Linux box?
 
Old 08-15-2001, 12:39 AM   #2
DMR
Member
 
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986

Rep: Reputation: 30
I'm not sure about Samba (I'm just getting it going myself, but only with Win98 shares), but until recently the Linux kernel did not support NTFS. Here's a little more info:http://www.linuxhq.com/kernel/v2.4/p..._ntfs.txt.html
 
Old 08-15-2001, 03:55 AM   #3
aXs
LQ Newbie
 
Registered: Aug 2001
Posts: 6

Rep: Reputation: 0
you don't need samba running for that, i can acces my windows partition in linux butnot thru samba, try a evaluation copy of vmware it's great you can get it here i believe for the windows shares to be shown you need to smbfs with the kernel

Last edited by aXs; 08-15-2001 at 04:41 AM.
 
Old 08-15-2001, 12:21 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
The last to replies seem to have got the wrong end of the stick, or i have...

Assuming you've got sharing and so forth set up you should (i guess) be able to mount XP shares the same way as for good old FAT32 shares (win98...).

I've not tried to do it automatically i.e. with /etc/fstab but a simple way to get onto them from linux should be to run...

`smbclient -N -L simon`

-N stops asking for a password (unless of course you have one)
-L simon defines the host (as in trevor and simon for the youngsters in the uk :-))

'mount -o username=xxxx,password=xxxx \\\\simon\\mp3 /mp3'

Again, this is just what I do, you might want different options to automate it in a script file perhaps.

Entries can be added to /etc/fstab along the lines of

\\\\simon\\simon /simon smbfs user=xxx,password=xxx

which will add it automatically, if you want to.

chris
xxxx
 
Old 08-19-2001, 06:32 PM   #5
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
sorry but i dont understand any of that.....everything i run that you posted comes up with errors that it cant be found. and "\\\\" what is that? this is too freakin complicated. There HAS to be an easier way. more examples please.

Nyc0n
 
Old 08-20-2001, 02:47 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
\\\\ is used to define a reference to a computer on a network. Under windows it's just \\ as you should have noticed, but under linux the \ is a special character, so has to be escaped... hence 4. anyway....

What kind of errors are you getting? If you've got all the things installed then there really should be no problem. I know linux can be a confusing chap at times, but this really is very simple compared to other stuff.

I *THINK* you want to have an entry in your /etc/hosts file with the hostname, IP address pair of the XP box.

If you can't find smbclient or such, make sure they're on your path and so forth. You normally need root priveliges to mount things.

chris
xxxx
 
Old 08-20-2001, 05:17 AM   #7
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
I've seen that the samba suite accept double front slashes // instead of the UNC:s \\
 
Old 08-20-2001, 07:39 AM   #8
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
Ok heres what i get......

When i run "smbclient -N -L gamebox" (gamebox is the name of the pc) i get this error....

Can't determine ip for broadcast address 192.168..0.1 (yes there are 2 periods ".." in there for some reason)
WARNING: no network interfaces found
Anonymous login successful
Error returning browse list: ERRDOS - ERRnoaccess (access denied.)

Everything is shared on my win boxes, (windows 2k, by the way)and i have turned on the plaintextpassword thing in the registry too. the win boxes can get on the internet and can see all the other win boxes fine. but either win box can see the linux box and vise versa. i have searched through the network config files like rc.httpd and others, and i dont know where its getting that double period in the ip address error. And why does it say no network interface found, but it logs on anonymously??? there has to be an interface if it logs on, i would think.

Second error -
When i run your seond suggestion, the "mount -o user,pass etc"
I get this error "mount: special device \\gamebox\c does not exsist. this was assuming that in your example "\\\\simon\\mp3" that the "mp3" was the drive name you wanted to mount? am i wrong? and "simon" was the machine name? and then the trailing "/mp3" was where you wanted to mount the drive. i typed this "mount -o username=xxxx,password=xxxx \\\\gamebox\\c /gamebox"

where have i gone wrong?

also i didnt want to try the fstab suggestion yet, cause if i cant mount the drive manually i know it wont be able to do it automaticly.....

!!PLEASE HELP!!

Nyc0n
 
Old 08-20-2001, 02:11 PM   #9
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Ahh well the mount command was wrong, i meant to say 'smbmount' sorry!

'smbmount' *should* be the same as typing 'mount -t smbfs' but i'm not totally sure. Try both.

If you get two dots in the IP address, that would surely mean that that is what is defined in the /etc/hosts file. make sure it's right there. If that doesn't work, try referring to the machine by it's IP rather than by its name.

You are aware that the -N option stops asking for a password, which you might need to enter somehow afterall.

Other than that there's not much else I can suggest. It will work if you keep trying, but i've not come across those errors.

chris
xxxx
 
Old 08-20-2001, 04:14 PM   #10
Nyc0n
Member
 
Registered: Aug 2001
Location: Brandon, FL
Distribution: Slackware All The Way Baby!
Posts: 31

Rep: Reputation: 15
thanks for the help but it still doesnt work. i guess ol Microshaft has linux beat on this one......sorry to say.....
 
Old 08-20-2001, 04:27 PM   #11
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
Ahh come on.. did they beat Linux or did they beat YOU? :-)

chris
xxxx
 
Old 02-23-2003, 02:30 PM   #12
TheRealPugsley
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
I had the same issues, have you tried this nifty little "newbie" program, LinNeighborhood? It's very easy and does all the cryptic stuff for you.


-Noob
 
Old 02-23-2003, 02:31 PM   #13
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
please don't drag up really really old threads.... this is 18 months dead... it gets very confusing
 
Old 02-23-2003, 02:39 PM   #14
TheRealPugsley
LQ Newbie
 
Registered: Feb 2003
Posts: 2

Rep: Reputation: 0
Whoops! Im sorry, But...while youre here....
whats the command to mount a share via command line?

It's on computername "food" and folder share name "lunch"
i.e. //food/lunch/
Im running RH 7.3 and "food" is a windows fat32 drive on windows 98.

Thanks in advance if ya know!
 
Old 12-15-2004, 04:05 PM   #15
grenness
LQ Newbie
 
Registered: Dec 2004
Distribution: SUSE 9.2 Pro
Posts: 1

Rep: Reputation: 0
Quote:
Originally posted by TheRealPugsley
I had the same issues, have you tried this nifty little "newbie" program, LinNeighborhood? It's very easy and does all the cryptic stuff for you.


-Noob
Hi. I downloaded LinNeighborhood and installed the RPM (I have SUSE 9.2 Pro).
I though I should be able to browse my Windows network (workgroup) but can't find any LinNeighborhood icon...
(I am extremely new to Linux, and have been using Windows for 10 years... I highly prefer the GUI, and I'm really lost in the Shell...)

Any help would be great!

I have SUSE 9.2 on my laptop, and two desktop PCs with Windows XP Pro both in the same Workgroup. They can see eachother and can browse eachother's files etc.

Thanks!

/Christopher
 
  


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
Mount windows drive davholla Linux - General 15 01-01-2010 10:59 PM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
mount to a windows drive jmarsh Linux - Networking 3 10-28-2003 10:49 AM
How do you mount a Windows drive? GeneWeber Linux - Networking 3 10-05-2003 08:46 PM
how do I mount my Windows C drive in RedHat 7.2 sgroy45 Linux - Distributions 8 04-08-2002 08:00 AM

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

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