LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-03-2005, 10:33 AM   #1
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Rep: Reputation: 15
Network Sharing With Windows and Linux


I have two computers, one linux (slack 10.2) and one windows (xp sp2), on the same internal network. They are setup so that the windows machine has two partitions (c: and d: ), as does the linux box (/ and /home).

The linux machine is always on. The windows machine is only on when in use.

I would like the windows machine to mount the /home directory of the linux machine, so that an icon automatically appears on the windows desktop, and files can be dropped on this icon to be copied over, and the icon can be double clicked, and the contents of the linux machine can be explored using windows explorer. Hopefully this would be quite similar to mounting a network drive between windows machines.

I would also like the linux machine to mount the windows drive, and create an icon on the desktop when the windows machine comes online. Is this possible?

So the questions :

1. how to share the /home partition to windows?

2. how to get it to mount with an icon on the windows destop when windows is booted (single user mode)?

3. how to share the d: partition to linux?

4. how to get the d: partition to automount on linux, when the windows machine comes online?

Hopefully someone will be able to answer these questions for me, more than one method, if possible would be appreciated.

Thanks,

G.
 
Old 11-03-2005, 11:02 AM   #2
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
Wow, this is the first time I've seen someone post in General instead of Linux- General.
(No offense, I just find that amusing)

Samba...

Samba is what you want to use on your linux box to share /home with your windows computer. There are literally tons of info out there on the web about this. I'll find just a few that should suffice.

You need to install Samba but some distros handle it differently. I see that you use Ubuntu, I believe that's a debian relative. Apt-get is what you can use to install samba (client and daemon).

Once it's installed you'll just need to edit a config file in /etc/samba. Also you need to make a username/password using 'smbpasswd' for authentication.

About the documentation, here goes:
http://us3.samba.org/samba/docs/man/...TO-Collection/
http://www.linuxquestions.org/questi...icle&artid=395
http://www.linuxquestions.org/questi...icle&artid=443

Just to note, Samba has a LOT of functionality, but for what you need your config should be quite simple.

Goodluck.
 
Old 11-03-2005, 11:15 AM   #3
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Original Poster
Rep: Reputation: 15
yes, i just realised i've posted this in a terrible location!

oops...

Thanks for the info on samba, i'm using slack again now, but i think i can do the windows part no problem. Any idea about the automount under linux to mount the d: partition?

Thanks,

G
 
Old 11-03-2005, 11:50 AM   #4
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
Once you create the samba partition on the linux box navigate to it in windows.
When configuring samba you have to set a hostname or something like that, in windows click Start>run and type \\foo. Foo being the hostname you set in the config.

It should bring up a new window and show the share drive. Double click it to access it, it should prompt you to enter a username/password type those in.
Once you have access to the share drive then you'll need to map it.

IIRC, the easiest way is to open Explorer (not Internet Explorer) using Win+E or right click start>explore. Then click tools>map network drive.
You type in the path, being //foo, make it whatever drive letter you choose. Just make sure there's a check next to reconnect at login.
Next create a shortcut on the desktop named whatever and link it to the drive letter of the share drive.

Now the user should have a shortcut on his/her desktop pointing to /home on your linux box.
GL

Note: Now that windows support is being covered, this post may need to stay in General. Oops
 
Old 11-03-2005, 12:04 PM   #5
grim1234
Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware 10.2, Fluxbox.
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks very much. I think i've got the windows side covered. Just the (more diffic ult?) setup of automounting a windows drive under linux that's the problem.

Any ideas?

G
 
Old 11-03-2005, 12:29 PM   #6
username17
Member
 
Registered: Aug 2004
Location: Norfolk VA
Distribution: Slackware 11
Posts: 230

Rep: Reputation: 30
Ahh ok, sorry I heard you backwards.

I've never done it that way, I always host the files on linux.

Google should help, as well as the search funtion here.

http://ubit.buffalo.edu/linux/ublinux4/samba.php
http://www.justlinux.com/nhf/Filesys...rmanently.html
http://wiki.arslinux.com/Mounting_Windows_Shares

The syntax appears to be the same as linux mounting a linux samba share.
I used the following in my /etc/fstab file:
//ip_addr/foo /mnt/point smbfs username=foo,password=foo

Hope it helps.
-Jason

Note: Those links show how to do it from the command prompt, the syntax I showed you was for /etc/fstab, so you don't have to do it each boot. I found that I still have to issue "mount /mnt/point" at each boot. If you put auto after "smbfs" it should automatically mount it. I rarely reboot so it's not too big of an issue for me.
 
Old 11-03-2005, 02:13 PM   #7
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
Moved: This thread is more suitable in Linux-Networking and has been moved accordingly to help your thread/question get the exposure it deserves.
 
  


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
Network connection sharing XP+Linux Maverick1182 Linux - Networking 19 09-04-2004 03:06 AM
Sharing Windows printer on campus network jrdioko Linux - Networking 0 08-27-2004 08:37 PM
Sharing between Windows and Linux Enfer Singe Linux - Newbie 13 07-25-2004 11:04 PM
Sharing folders across linux network linuxboy69 Linux - Networking 3 01-09-2004 12:22 PM
Sharing CD over linux network PR0T0N Linux - Networking 8 12-17-2003 06:28 PM

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

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