"You don't know what you have"

Am I right that there is an expression that goes: "You don't know what you have until you lose it." or something like that? If yes, what other expressions are there which mean something similar or opposite?

"You never miss the water till the well runs dry"--that's an old one.

Don't it always seem to go,
You don't know what you've got til it's gone.
They paved paradise,
Put up a parking lot.
Big Yellow Taxi, Joni Mitchell

Familiarity breeds contempt
and
a prophet is never honoured in his home town
are two.