Skip to content

Flash error: hdiutil: couldn't unmount "disk2" - Resource busy #169

@xunholy

Description

@xunholy

Whilst running my flash command as follows;

flash \
    --userdata setup/cloud-config.yml \
    ~/Downloads/ubuntu-19.10.1-preinstalled-server-arm64+raspi3.img

I get a sporatic error where my flash gets to the end and then fails with the following response:

Is /dev/disk2 correct? y
Unmounting /dev/disk2 ...
Unmount of all volumes on disk2 was successful
Unmount of all volumes on disk2 was successful
Flashing ~/Downloads/ubuntu-19.10.1-preinstalled-server-arm64+raspi3.img to /dev/rdisk2 ...
Password:
0+47533 records in
0+47533 records out
3115115520 bytes transferred in 109.241900 secs (28515757 bytes/sec)
Mounting Disk
Mounting /dev/disk2 to customize...
Copying cloud-init setup/cloud-config.yml to /Volumes/system-boot/user-data ...
Unmounting /dev/disk2 ...
hdiutil: couldn't unmount "disk2" - Resource busy
Something went wrong.

Not sure how to reproduce it however it happens at least 7/10 times I attempt to flash my card.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions