A singular equation with positive and free boundary solutions