The chemical reactions and pathways resulting in the formation of mycothiol, which consists of N-acetyl-L-cysteine linked to a pseudodisaccharide, D-glucosamine and myo-inositol. Mycothiol is produced in actinomycetes like mycobacteria and serves similar functions to glutathione.