Is it possible to check in advance that the 'set active flag in partition table' will not be succesful?