hypriot / flash

Command line script to flash SD card images of any kind
MIT License
1k stars 176 forks source link

Nothing happens on macos Big sur #196

Closed cmarquezrusso closed 3 years ago

cmarquezrusso commented 3 years ago

I am trying to install ubuntu on a sdcard for a rpi.

When I run flash, the copy process doesnt work. The SDCARD is empty

$ time flash --userdata cloud-config.yml ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz
/usr/local/bin/xz
Uncompressing ubuntu-20.04.2-preinstalled-server-arm64+raspi.img.xz ...
Use /tmp/image.img

Is /dev/disk2 correct? yes

real    1m14.850s
user    0m52.660s
sys 0m7.555s
$

System info: Darwin Cristians-MBP 20.3.0 Darwin Kernel Version 20.3.0: Thu Jan 21 00:07:06 PST 2021; root:xnu 7195.81.3~1/RELEASE_X86_64 x86_64

MacOs Big Sur - 11.2.2 (20D80)

tinsjourney commented 3 years ago

Output of command "diskutil info" has changed in the last version of Big Sur. On line 203 of flash script, it's looking for "Read only-Media", but now the output is "Media Read-only".

as quick workaround you can still change this in the script, while it's fixed upstream.

tinsjourney commented 3 years ago

correction it's fixed in master branch but it's not released yet

xunholy commented 3 years ago

Any idea what version this fix will be release in?

StefanScherer commented 3 years ago

I've published version 2.7.2. Hope that helps 👋