def METHOD_NAME(self, disk: str, file_system: FileSystem) -> None:
    cmd_result = self.node.execute(
        f"echo y | {file_system} {disk}", shell=True, sudo=True
    )
    if get_matched_str(cmd_result.stdout, self.__EXIST_FILE_SYSTEM_PATTERN):
        cmd_result = self.node.execute(
            f"echo y | {file_system} -f {disk}", shell=True, sudo=True
        )
    cmd_result.assert_exit_code()