In this passage, the protagonist is struggling with the organization of his sea-chest, which has multiple compartments. Despite his efforts to put everything in order, he keeps finding items misplaced, indicating his frustration with the situation. His attempts to close the chest are thwarted by items that seem to escape their designated spaces, symbolizing the chaos in his life as he prepares for an impending journey.
As he finally manages to lock the chest, he remembers that he needs his pocket-pistols for the morning, only to realize they are tucked away in the lowest section of the chest. This realization leads him to a moment of despair, as he reflects on the futility of his preparations. Ultimately, he chooses to seek solace in reading a book, indicating a desire for escape from his troubles.