PINE64
JumpDrive not working due to device busy - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: General Discussion on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=127)
+--- Thread: JumpDrive not working due to device busy (/showthread.php?tid=14600)



JumpDrive not working due to device busy - cnxsoft - 08-07-2021

I'm unable to flash Manjaro to my Pinephone.

I've flashed JumpDrive (pine64-pinephone.img.xz) to a MicroSD card inserted it into my PinePhone (I received the PostMarketOS Edition from last year).
The phone boots fine, and the eMMC flash is detected in my (Ubuntu 20.04) computer.

I'm then trying to flash Manjaro-ARM-plasma-mobile-pinephone-20210807.img.xz to the eMMC flash through USBImager, but it fails with the error "error opening device /dev/sdc: Device or resource busy".

I switched to balenaEtcher but it also fails with an unspecific error.

I think it may be because of the encryption on PostMarketOS, as I'm asked the passphrase to access the driver from either USBImager or balenaEtcher. So I went to Gparted to try to delete the partition and/or clear the encryption part, but it won't allow me to do either. What I could do is format the rootfs partition, but I did not help, and I'm still unable to flash Manjaro.

It looks like I'm the only one with this problem, and I'm stuck right now. Any idea?


RE: JumpDrive not working due to device busy - mouffa - 08-07-2021

1) you have to decompress the .xz to flash the .img
2) give an 'lsblk' command to see whether the /dev/sdc is mounted to any directories, probably 2
3) if yes, unmount with 'umount full-path-to-directory' for all directories
4) now flash the .img

if your application decompresses automatically the image then you can skip step 1

it is useful to learn to do it fundamentally through the terminal with he following command

'sudo dd bs=1M if=image-file of=/dev/sdc status=progress conv=fsync'

that is dump the binary data in 1MB blocks from the file to the eMMC showing the progress of the operation and flushing the buffer


RE: JumpDrive not working due to device busy - cnxsoft - 08-07-2021

(08-07-2021, 08:15 AM)mouffa Wrote: 1) you have to decompress the .xz to flash the .img
2) give an 'lsblk' command to see whether the /dev/sdc is mounted to any directories, probably 2
3) if yes, unmount with 'umount full-path-to-directory' for all directories
4) now flash the .img

if your application decompresses automatically the image then you can skip step 1

it is useful to learn to do it fundamentally through the terminal with he following command

'sudo dd bs=1M if=image-file of=/dev/sdc status=progress conv=fsync'

that is dump the binary data in 1MB blocks from the file to the eMMC showing the progress of the operation and flushing the buffer

Thanks. It worked. I think it's better to do it in the command line, especially the unmount part, as doing so in Nautilus will eject the drive.


RE: JumpDrive not working due to device busy - mouffa - 08-08-2021

ejection is different than unmounting

you can do the same flashing by running an OS from the SD, in this case the eMMC is /dev/mmcblk2 and it is already unmounted, you don't need jumdrive and the PC, it is always useful to have a spare OS on an SD