It will be necessary to know the notes on the 5th string in order to know on which fret a root 5 bar chord must be fretted. The following diagram illustrates the notes on the 5th string and highlights the location of three separate root 5 bar chords.
C
D
Fm