JumpDrive not working due to device busy
#1
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?


Attached Files Thumbnail(s)
       
  Reply
#2
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
  Reply
#3
(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.
  Reply
#4
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
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  UI crashes after unplugging USB device, seen on multiple OSes; is my hardware broken? slondr 0 60 09-08-2022, 06:37 PM
Last Post: slondr
  JumpDrive isn't working phytocube 2 384 06-05-2022, 03:22 PM
Last Post: phytocube
  Jumpdrive not booting Kimberley van Buyten 1 248 05-28-2022, 01:00 AM
Last Post: Kimberley van Buyten
  SIM card slot not working dekrets 2 810 02-12-2022, 11:09 AM
Last Post: dekrets
  Can't get autofocus working duncan_bayne 4 1,207 01-22-2022, 09:17 PM
Last Post: duncan_bayne
  PinePhone Beta 3GB modem not working hannescam 15 4,026 01-19-2022, 02:08 AM
Last Post: bcnaz
  Video Out not working BenniTec 7 2,633 10-21-2021, 11:56 AM
Last Post: BenniTec
  How did you get data working on PureTalk? nelstomlinson 2 1,508 09-26-2021, 03:50 PM
Last Post: nelstomlinson
  Still trying, SMS not working Nutmeg 17 3,757 07-28-2021, 08:10 PM
Last Post: bcnaz
  jumpdrive software might be faulty (or my pinephone hardware) zetabeta 3 1,847 07-20-2021, 03:14 PM
Last Post: zetabeta

Forum Jump:


Users browsing this thread: 1 Guest(s)