Jasont41
Posts: 70
Joined: Fri Nov 11, 2011 1:22 am

Re: Simple question...

Sat Jan 21, 2012 12:24 am

I would like to connect an externally powered Hard drive to the RPI and access said drive on my windows laptop through an ethernet port or a local wireless connection.  How would I go about this?

ulysses
Posts: 7
Joined: Sat Dec 24, 2011 4:49 pm

Re: Simple question...

Sat Jan 21, 2012 12:43 am

1.) Mount the drive on the RPi as normal

2.) Use Samba on the RPi to export that directory

3.) On the Windows side, go to RPi-IP-address\exported directory

Jasont41
Posts: 70
Joined: Fri Nov 11, 2011 1:22 am

Re: Simple question...

Sat Jan 21, 2012 5:29 am

Would connecting the two with a single ethernet cable work?

User avatar
Chromatix
Posts: 430
Joined: Mon Jan 02, 2012 7:00 pm
Location: Helsinki

Re: Simple question...

Sat Jan 21, 2012 5:52 am

Probably - as long as the two machines get compatible IP addresses.  If your laptop has an auto-crossover capability, it doesn't even have to be a crossover cable.

If IP addresses turn out to be a problem (but just try it first), you could run a DHCP server on the R-Pi after giving it a static address itself.  The DHCP server then tells Windows which IP address to use while talking on your miniature network.
The key to knowledge is not to rely on people to teach you it.

Jasont41
Posts: 70
Joined: Fri Nov 11, 2011 1:22 am

Re: Simple question...

Sat Jan 21, 2012 6:08 am

What if the Raspi was connected to my home network? And I simply share the drive and find it in windows?

User avatar
Chromatix
Posts: 430
Joined: Mon Jan 02, 2012 7:00 pm
Location: Helsinki

Re: Simple question...

Sat Jan 21, 2012 6:25 am

Your home network should give out suitable IP addresses already (usually from the broadband router).  Accordingly, the chances of it "just working" go up a bit.
The key to knowledge is not to rely on people to teach you it.

Jock in a Frock
Posts: 72
Joined: Thu Jan 12, 2012 6:39 pm

Re: Simple question...

Sat Jan 21, 2012 8:47 am

Chromatix said:


Probably – as long as the two machines get compatible IP addresses.  If your laptop has an auto-crossover capability, it doesn't even have to be a crossover cable.

If IP addresses turn out to be a problem (but just try it first), you could run a DHCP server on the R-Pi after giving it a static address itself.  The DHCP server then tells Windows which IP address to use while talking on your miniature network.


The Ethernet port on the R-Pi has Auto MDI/MDIX functionality. In other words, it will auto detect and switch the Tx and Rx legs of the ethernet connection. So it doesn't matter if your PC has this functionality, or whether you use a straight or a crossed Ethernet cable.

User avatar
Burngate
Posts: 6226
Joined: Thu Sep 29, 2011 4:34 pm
Location: Berkshire UK Tralfamadore
Contact: Website

Re: Simple question...

Sat Jan 21, 2012 4:49 pm

MDI / MDIX = 0.994698476

If the laptop also has Auto MDI/MDIX the two could get tied in knots. Is there a way to switch it off? I can't find it in the data sheet for the 9512 used on the pi.

Steady_Bear
Posts: 110
Joined: Sat Jan 14, 2012 12:06 pm

Re: Simple question...

Sat Jan 21, 2012 4:56 pm

Burngate said:


MDI / MDIX = 0.994698476

If the laptop also has Auto MDI/MDIX the two could get tied in knots. Is there a way to switch it off? I can't find it in the data sheet for the 9512 used on the pi.



Disclaimer: I have no experience of MDI/MDIX

Surely the feature was created to allow the simple connecting of two devices in the absence of a controlled network. The most likely scenario of this is with two laptops on the move. Therefore the specification for the ports should already consider the possibility of the two ports both being of the auto switch type.

I could be wrong though. I've seen some awful design decisions in my time.

Tomo2k
Posts: 127
Joined: Mon Dec 19, 2011 10:00 pm

Re: Simple question...

Sat Jan 21, 2012 11:20 pm

Burngate said:


MDI / MDIX = 0.994698476

If the laptop also has Auto MDI/MDIX the two could get tied in knots. Is there a way to switch it off? I can't find it in the data sheet for the 9512 used on the pi.



I've never had any issues connecting Auto MDI/MDIX machines together.

Happens (almost) every time I connect my laptop to a switch, and every time I connect my laptop to the front panel Ethernet jack of the embedded controllers I service and configure.

Jock in a Frock
Posts: 72
Joined: Thu Jan 12, 2012 6:39 pm

Re: Simple question...

Wed Jan 25, 2012 8:41 pm

Yep, it's never been a problem for me, and as a telecoms engineer I have plugged in more devices than you could shake a stick at. Biggest deployment I had was 1,200 IP Phones and PCs into a call centre in Cardiff.

Return to “General discussion”