-
Notifications
You must be signed in to change notification settings - Fork 207
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
Error: Partition(s) 1, 2 on /dev/loop0 have been written #211
Comments
I believe this is Linux kernel bug, and running |
Hi @eugene-tarassov ,I tried the method you mentioned, but there was still the same error after running it. |
I am also running into this problem. Updating to the latest Linux kernel did not fix it for me. Do you have any other suggestions? |
The script works fine for me. I don't see such errors. One possible cause of the error is stale (or leaked) file descriptor in the kernel. |
Hi @eugene-tarassov , I am getting the exact same issue as the original poster. I tried the My machine has the following:
Thank you very much for your help and time! Kind regards, |
I don't know how to get the tools to work on Ubuntu 22.04.4. I'm using Ubuntu 20.04.6 and I don't see such errors. |
Hello . I am encountering the exact same issue. I am using Ubuntu 20.04.6 . Thanks in advance |
I tried:
It worked OK. I also tried Ubuntu 22.04.4 LTS machine, and got the error:
As a work around, you can download SD card image from the releases area of this repo, and use dd to copy it to SD card. It has a bit older Linux kernel - 6.3.12 vs 6.7.9, but it should work just fine. |
Thanks a lot for the quick response @eugene-tarassov ! |
Hello, I had the same problem and managed to fix it by changing two things in mk-sd-image script:
|
According to my tests, adding -P option for losetup does fix the error, while replacing sfdisk with fdisk appears not needed. |
@eugene-tarassov yes, you are right. The -P option fixes it. Thanks for this remark. |
Hello, I have completed the process of setting up the system environment, but when I using the "mk-sd-image.sh" script to set up the SD card, an error message is reported as follows.In addition,my develop environment is Ubuntu20.04.
How can I fix this?
The text was updated successfully, but these errors were encountered: