In 2012 he carried: the following coal producing states:
1. IL
2. PA
3. IN
4. OH
5. CO
6. NM
7. VA
8. MD
9. WA
In 2008 he carried the following coal producing states:
1. IL
2. PA
3. IN
4. OH
5. CO
6. NM
7. VA
8. MD
9. WA
So in both elections he carried 9 coal producing states.
http://www.nma.org/pdf/c_production_state_rank.pdf
http://elections.nytimes.com/2008/results/president/map.html
Obama did not carry Indiana in 2012.
See here:
https://en.wikipedia.org/wiki/United_States_presidential_election_in_Indiana,_2012