I don't think the D5100 can shoot in Raw and jpeg at the same time. Pretty sure you need to chose or other.