PINE64
Can't install arch-phosh with dd, only with etcher. - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PinePhone (https://forum.pine64.org/forumdisplay.php?fid=120)
+--- Forum: PinePhone Software (https://forum.pine64.org/forumdisplay.php?fid=121)
+---- Forum: Arch Linux on PinePhone (https://forum.pine64.org/forumdisplay.php?fid=159)
+---- Thread: Can't install arch-phosh with dd, only with etcher. (/showthread.php?tid=15370)



Can't install arch-phosh with dd, only with etcher. - pineuser0 - 11-20-2021

When I run
Code:
dd if=archlinux-pinephone-phosh-20211022.img of=/dev/sda2 status=progress
the phone, when the uSD card containing jumpdrive is taken out, takes a forever loading screen with the arch penguin.

when I run ./balenaEtcher-1.5.115-x64.AppImage, I write archlinux-pinephone-phosh-20212022.img to /dev/sda2. Once I take jumpdrive out and restart the phone, the boot process begins with regular text moving through the screen. I now have the phone set up as I had before with everything being accessible and working after I go through the lock screen.

What could be the problem here? Could this be a sign of future problems with the phone's installation with balena etcher as well as other installation methods on my pinephone?


RE: Can't install arch-phosh with dd, only with etcher. - Danct12 - 11-21-2021

sda2 is a partition within your drive/sd card, you need to write it to the whole device (sda) instead.


RE: Can't install arch-phosh with dd, only with etcher. - dukla2000 - 11-21-2021

(11-20-2021, 02:42 AM)pineuser0 Wrote: ...
Code:
dd if=archlinux-pinephone-phosh-20211022.img of=/dev/sda2 status=progress
...

I'ld add a bs=4M to that command to speed it up a bit as well.


RE: Can't install arch-phosh with dd, only with etcher. - cabbie001 - 11-23-2021

As Danct12 points out, you need to use the base partition of your target drive, which according to you is /dev/sda.
As in:
dd if=archlinux-pinephone-phosh-20211022.img of=/dev/sda bs=1M status=progress conv=fsync

Then, before rebooting don't forget to resize the resulting 2nd partition:
(with jumpdrive still operating, and issuing command from host linux computer):
parted /dev/sda
(parted) resizepart 2 100%
(parted) quit
Otherwise you won't have access to the full available disk space on the emmc drive. Strange, the Mobian system takes care of this by automatically resizing on first boot, but Arch and Manjaro seem to leave it up to the user.


RE: Can't install arch-phosh with dd, only with etcher. - Danct12 - 11-23-2021

(11-23-2021, 01:36 AM)cabbie001 Wrote: the Mobian system takes care of this by automatically resizing on first boot, but Arch and Manjaro seem to leave it up to the user.

No? The file system gets resized automatically on boot.


RE: Can't install arch-phosh with dd, only with etcher. - cabbie001 - 11-23-2021

(11-23-2021, 04:28 AM)Danct12 Wrote:
(11-23-2021, 01:36 AM)cabbie001 Wrote: the Mobian system takes care of this by automatically resizing on first boot, but Arch and Manjaro seem to leave it up to the user.

No? The file system gets resized automatically on boot.

Well if that's true then I'm happy to learn it.
My comment was based on the experience that only Mobian seemed to send out a notification alert during first boot that the partition re-sizing was happening.
If Arch also does then then I stand corrected. Thank you.