Fabric maker Dan River Inc on Wednesday posted a second quarter loss versus a year-ago profit amid sliding sales and hefty charges related to the axing of two factories.