I quick review through the records of the C.S. Marines gives the impression that they served as guards on all sizes and sorts of vessels, including ironclads, not just flag ships. Barracks were sometimes "floating barracks". As an example, these floating barracks were used early in the war just off the coast at Mobile and Pensacola.