When the gospel says to love God with all your mind, it means to love God with both your conscious and subconscious minds. In other words, both your body and soul should love God.
It is important to emphasize this point, as it is possible for the body to love God and the soul to love Satan. Too often, we see people who display all the trappings of a piety when in public, yet in private behave in the most despicable ways imaginable.
To counter this behavior, God commanded us in Ephesians 4:23-24, "To be made new in the spirit of your minds and put on a new self created to be like God in true righteousness and holiness".
Renewing the spirit of our minds requires that we put our minds under God's protection, as we read in Romans 8:9, "The mind of the sinful man is death, but the mind that is controlled by the Spirit is life and peace."
If we do not put our minds under God's protection, Satan would take control of our minds, regardless whether we invited him to do so, or not. We should know the hope that comes from Satan eventually leads to tragedy and death, and so choose God.
In order to receive God's protection, we need to be "born again", as we hear Jesus say to Nicodemus in John 3:3: "I tell you the truth, no man can see the kingdom of God unless he is born again."
With this spiritual rebirth, the physical person would undergo a complete transformation in the way he thinks, to the extent that it would seem as though the person he was before had died to make room for the new person he has become.