Skip to content

Fix for hdparm error: BLKRRPART failed ...#192

Open
Wuodan wants to merge 1 commit into
hypriot:masterfrom
Wuodan:hdparm_in_loop
Open

Fix for hdparm error: BLKRRPART failed ...#192
Wuodan wants to merge 1 commit into
hypriot:masterfrom
Wuodan:hdparm_in_loop

Conversation

@Wuodan

@Wuodan Wuodan commented Jan 3, 2021

Copy link
Copy Markdown

'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.

'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.
@pbolduc

pbolduc commented Jan 5, 2021

Copy link
Copy Markdown

I was having this problem too and adding the changes in this PR resolved it for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants