  We present two protocols, one for the storage of light in an atomic ensemble
and the subsequent retrieval, and another one for the generation of
entanglement between light and atoms. They rely on two passes of a single pulse
through the ensemble, Larmor precessing in an external field. Both protocols
work deterministically and the relevant figures of merit - such as the fidelity
or the EPR variance - scale exponentially in the coupling strength. We solve
the corresponding Maxwell-Bloch equations describing the scattering process and
determine the resulting input-output relations which only involve one relevant
light mode that, in turn, can be easily accessed experimentally.
