Will bankruptcy stop an eviction?
Perhaps. If you file bankruptcy prior to a judgment for possession being obtained by the landlord, the eviction action is stayed. This may allow you enough time to pay the rental arrears, or under a Chapter 13 you may create a plan to repay these arrears over a period of time. You will also be required to post monthly escrow payments to the bankruptcy court. If the landlord is not willing to wait for repayment, he will most likely be able to get relief from the stay to proceed with eviction. The landlord is entitled to possession of his property and at best you will be able to remain in the property until you have received your discharge from bankruptcy or the landlord obtains an order from the bankruptcy court to go forward with the eviction.
If you file bankruptcy after a judgment for possession has been obtained by the landlord, there is no automatic stay and the landlord can proceed with eviction.