Open Wuodan opened 3 years ago
'hdparm -z' failed on about 80% of attempts with error: BLKRRPART failed: Device or resource busy
A simple 'sync' before it did not help, but with this loop the second execution does the job.
I was having this problem too and adding the changes in this PR resolved it for me.
'hdparm -z' failed on about 80% of attempts with error: BLKRRPART failed: Device or resource busy
A simple 'sync' before it did not help, but with this loop the second execution does the job.