back and forth between Ethernet and SD on Wiznet 5100 shield

AWOL:

    pinMode(10, HIGH);

pinMode(4, LOW);


Did you mean to use digitalWrite?

Darn!
Yes.
Thank you!

And I also realize that setting the pin HIGH actually disables it.

I turns out that all I need to do is disable the shield's SPI with digitalWrite(10, HIGH); so that the SD card can be initialized. Found it on a post on these forum.

After that it appears I don't need to do anything else.