I recommend reading
Bike for Life: How to Ride to 100. It goes into detail on training, preparing, and riding in longer events. It talks about what the TdF riders have in their musettes for their 100 mile stages as well as other things to consider for nutrition.
__________________
It's like riding a bicycle