Speaking of pasta, you can save money and space buying in bulk. I buy several different kinds of pasta, for example organic whole wheat penne, in 10 pound boxes for less than $15-20 at wholesale. They're sealed in plastic bags inside the boxes and their shelf life is probably as close to forever as anything. A small family can easily go through a box in few weeks, so there's no need to worry about an open box going bad(although it probably wouldn't anyway). If you like mac and cheese, you can buy bulk cheese powder in sealed 1 lb. mylar bags, though I don't know what their shelf life is.
Rice is a great grain to store, but even better are quinoa and amaranth. These unique grains(actually seeds but considered a cereal grain) are delicious and have complete proteins, far more nutritous than most other grains. If you're conserned about grinding wheat, sacks of flour should last a few years if stored properly. I reccomend buckwheat in addition to whole wheat, as buckwheat is also a complete protein and quite tasty. Most health food stores will let you purchase bulk food at a slight discount.
I also buy organic almond and cashew butter(peanut just doesn't compare) in 9 pound buckets for an insanely low price, they can last years and are a very nutritious food. However my freinds and I eat a lot of nut butter, for most peaople this may not be as practical. I don't want to post the details of where I get these because not too many people know about it, but if anyone in New York is interested I can give you the details.