Unable to create media library on read only storage

I solved it by disabling Media LIbrary in WD TV, removing directory .wd-tv from My Passport, then plugging it again and later enabling Media Library option. This time WD TV was able to create the library.