I did, and have provided a very clear answer to the question in fact.
What the government of a country should do if a group of people declare themselves on sedition, start refusing to pay taxes, wants to steal all public resources, harass and drive out of the place the people that think different, take their properties and piss generously on the constitutional rights of the majority of the citizens?
Enforce the law, obviously
"But, but, I want to ignore and twist the law in my benefit!. I should be allowed to do it, because I'm special!, my mom told me!"
You can violate the laws everytime that you want, as long as you accept the consequences, and repair the damage caused to other members of the society.
I'm asking what happens if in a part of a territory the vast majority of population doesn't want to be part of that country.
If you want to talk of Catalonia, I can ask what the Central Government can do when 82% of the population (and this includes half of people that wants independence and half of people that doesn't want independence) would defend a LEGAL and proper done referendum.
The answer to your deliberately ambiguous question is the same. Enforce the law.
> What if a lot of people do not want to remain in this country?
They will pack, leave and try to migrate and be accepted under the umbrella of other countries typically. It is happening a lot in the last decades, by good (and sad) reasons.
> What if the majority of people would hate their country (but want to remain in it).
They could use the tools specified in the law to change the bad parts and improve their country democratically. As they are a majority, they are probably doing this yet since years. They must have in mind still that there are international laws and treaties.
> What would happen if 100% of USA demand the independence from themselves and require to be called "Pantsdemonium, the land of the pants-free" from now on?
Just a change of name (and interesting parties, like the national day of the duck and so). On the other hand, if you can't stand to be in the same room with yourself, go to see a doctor as soon as possible.
> and if it was the 90%?
A change of name plus a 10% of people driven off their own country, typically by violent means, if we study the human history.
> and if it was the 85.45342%?
the same... and more people in exodus.
My question is not ambiguous.
And looking at your "hate", I think that you prefer what happened in Jugoslavia and not what happened in Czechoslovakia
If a 70% of the population of a territory (and I'm not talking about Catalonia, because there is no majority for independence) wants to secede, what the State should do?