The birth of a dune