From Melville's Marginalia Online:
The acclaimed writer of Moby-Dick, Billy Budd, Sailor and other revered works of American literature was also, as might be expected, a great reader of books. Yet few even among American literary scholars are familiar with the scope and variety of Herman Melville's personal library, and the profound influence of his reading on the growth of his intellect and on the composition of his own fiction and poetry. From youth onward Melville educated himself through rigorous, systematic reading, a habit of life and mind he assumed after the bankruptcy and death of his father required him to withdraw from formal schooling. By the time of his death in 1891, Melville’s library numbered some 1,000 volumes before being dispersed among friends, family members, and second-hand book sellers in Manhattan and Brooklyn.