I just pre grind my coffee beans the amount I need for the time I'll be gone and do it right before I go, put it in a ziplock bag, and pack it.
Or you can carry a lightweight plastic grinder that stores a few days of beans, as I used to. Modern versions cost between $25 and $150 dollars depending on how much of a coffee snob one wants to be.
It's all about water extraction of volatile flavors and caffeine. Reminder - although the caffeine is not volatile, and will not evaporate into the atmosphere after roasting, many of the flavors do. (The smell around freshly roasted beans are those volatile flavors escaping into the air.) Grinding increases how quickly those flavors disappear, so many of us grind right before use. A roasted bean at room temperature loses a lot of flavor and becomes stale after a week or two, depending on the nature of the roast.
Something to think about on long trips and when figuring out how one's going to compromise between freshly roasted and ground beans and the realities of camp.
You don't seem to understand, I travel light, I'm not going to take everything including a microwave oven to go camping!
(...and you seem to forget - I'm the coffee snob that previously posted that to keep weight down, I have given up carrying a stove, gas, French press or espresso boiler, old hand grinder and coffee - at least on summer trips.)
My last post was simply to remind folks, that if they want really good coffee on the trail, it can be done - and I've done it, at the cost of about 3 pounds.
Life's too short for bad coffee, so if I need to keep the weight down, I get my coffee from the local coffee baristas.