Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MacOS: flash not able to copy custom userdata (Read-only file system error) #195

Open
georg90 opened this issue Mar 13, 2021 · 0 comments
Open

Comments

@georg90
Copy link

georg90 commented Mar 13, 2021

I have the following problem when running the flash tool with a customer user-data file:

HOST:~ username$ sudo flash --userdata /Users/username/Desktop/user-data --hostname pi-master https://github.com/hypriot/image-builder-rpi/releases/download/v1.12.3/hypriotos-rpi-v1.12.3.img.zip
Password:
Using cached image /tmp/hypriotos-rpi-v1.12.3.img

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 /tmp/hypriotos-rpi-v1.12.3.img to /dev/rdisk2 ...
1.27GiB 0:00:48 [26.7MiB/s] [======================================================================================================>] 100%            
0+20800 records in
0+20800 records out
1363148800 bytes transferred in 48.675730 secs (28004691 bytes/sec)
Mounting Disk
Mounting /dev/disk2 to customize...
Copying cloud-init /Users/username/Desktop/user-data to /Volumes/HypriotOS/user-data ...
cp: /Volumes/HypriotOS/user-data: Read-only file system

HOST:~ username$ sudo mount -u -w /Volumes/HypriotOS

HOST:~ username$ cp /Users/username/Desktop/user-data /Volumes/HypriotOS/

As you can see when running the flash tool I get a read-only error. I need to manually remount the SD-Card to be able to copy my custom user-data file.

My setup:
MacOS Catalina 10.15.7
flash 2.7.0

Let me know if more info is needed.

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

No branches or pull requests

1 participant