Replace hdparm by blockdev to reread the partitions table