this post was submitted on 06 Jan 2025
7 points (100.0% liked)

Linux 101 stuff. Questions are encouraged, noobs are welcome!

1094 readers
18 users here now

Linux introductions, tips and tutorials. Questions are encouraged. Any distro, any platform! Explicitly noob-friendly.

founded 2 years ago
MODERATORS
 

Title. I've tried using dd but it doesn't work -- the .img file is written but it does not boot. Thanks in advance.

top 10 comments
sorted by: hot top controversial new old
[–] [email protected] 5 points 1 week ago (1 children)

The write process with dd most likely worked just fine. However, the system you're inserting it into probably doesn't know what to do with it.

  • is the architecture the same? Most Android devices are ARM-based, which is not compatible with, for example i386 or x86_64 (a.k.a. amd64)
  • Is the boot method compatible? I don't know the boot process of android devices, but it's probably not UEFI.
[–] GustavoM 1 points 1 week ago

The write process with dd most likely worked just fine.

Not on my end. For some reason it (only) works when I write said image on a sketchy/suspicious chinese third party windows software.

[–] [email protected] 4 points 1 week ago

Your gonna need to provide a lot more information, because what your saying sounds very wrong.

Is the img file an android OS? What are you hoping to boot it on?

AFAIK, no phone can boot from external USB, so what exactly are you trying to do?

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (1 children)

Is the Android you copied to the external drive compiled for, i.e. compatible with, your hardware architecture, e.g. x86, x86_64, arm64, ...?

[–] GustavoM 2 points 1 week ago (1 children)

Yep. It's an official image, not from third parties.

[–] [email protected] 3 points 1 week ago* (last edited 1 week ago) (1 children)

Nevertheless, the information which exact image you dd'ed and what the actual hardware you want to run it on is would be helpful (also to others).
Based on your other comment: Did you try to dd on Linux or just on Windows? (Idk if Windows has a native version of dd instead of the suspicious Chinese Windows exe you've used)

[–] GustavoM 2 points 1 week ago* (last edited 1 week ago) (1 children)

Only on Linux. The command was simply sudo dd if=image.img of=/dev/sda bs=1M.

which exact image you dd’ed

This one.

[–] [email protected] 2 points 1 week ago* (last edited 1 week ago) (1 children)

So, you dd'ed the Android image for Orange Pi 5 to an external drive and want to boot your OPi5 from that drive. As far as I remember, in order to do that for a Raspberry Pi, you need to 'tell' the system where to boot from. For OPi, I found some information on how achieve that for Debian/Ubuntu. For Android the steps should be somewhat similar.

[–] GustavoM 1 points 1 week ago

I've tried setting it to boot from an nvme, microsd and external and the result was the same -- the board just sits there with no boot. But, as I said previously, writing it to disk with their sketchy software worked as intended.

...I'm starting to think there is something wrong with the image file.

[–] [email protected] 1 points 1 week ago