reinstall the RouteOS on HDD

I put the RouteOS in a HDD, and find some bad sectors in the disk, can I reinstall the RouteOS without lost my license?, I have license 6 in that HDD

use netinstall, then you will not lose your license