My Indian passport book cover is detached from the main book, but all other information, as well as the book is fine. I am traveling to India in 2 days. What should I do? Will there any problem at the airport?
You should be ok.
From what you describe, your passport isn't damaged in a way that makes it unreadable or unrecognizable, as defined by the Indian Ministry of External Affairs.
Q1: What is the definition of damaged passport? A: Damaged passport is classified further based on the extent of damage, i.e.: Damaged Passport - Passport number is readable, name is legible and photo is intact Damaged beyond recognition
So entering should not be a problem. If you're still concerned you can still get an emergency travel document which is a one way travel document issued to Indian citizens who have lost or damaged their passports and need to travel to India on an emergency.