A partition sale or lawsuit can be a complicated matter and you should seek legal representation if you haven't done so already. I don't think your question can be answered properly without providing more details on your situation.
Is the lender preventing the sale?
Is there enough equity in the home to pay back the lender once sale is complete?
Maybe someone can advise you better if more information was provided. I would definitely speak to an attorney specializing in this area to guide you.