Wipe out eMMC before flashing new OS? - 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) +--- Thread: Wipe out eMMC before flashing new OS? (/showthread.php?tid=15023) Pages:
1
2
|
RE: Wipe out eMMC before flashing new OS? - acrux - 11-12-2021 (11-12-2021, 12:55 PM)susy1075 Wrote: I am very new to Linux… Hmm, you did read the red note before ordering PinePhone: Note: Beta Limited Edition PinePhones are aimed solely at early adopters. More specifically, only intend for these units to find their way into the hands of users with extensive Linux experience. RE: Wipe out eMMC before flashing new OS? - kqlnut - 11-12-2021 (11-12-2021, 12:55 PM)susy1075 Wrote: Hello, If your phone is unusable with the current OS then you also wouldn't be able to flash an SD card from the phone itself ... Also I don't see the point in doing it from the phone itself unless you don't have a computer. I guess it would be possible, but I've never tried it. I would highly suggest using a computer for flashing an image, especially if you are inexperienced. You can find flashing instructions here. The wiki is generally a good place to start. RE: Wipe out eMMC before flashing new OS? - susy1075 - 11-12-2021 (11-12-2021, 05:25 PM)kqlnut Wrote:(11-12-2021, 12:55 PM)susy1075 Wrote: Hello, Thank you for your advice, I tried flashing the sd card from a library computer and balena etcher kept giving me error messages such as “flash failed”. RE: Wipe out eMMC before flashing new OS? - Zebulon Walton - 11-12-2021 A library computer may have restrictions in place that prevent doing things like imaging to a flash drive. Do you have a friend or relative with a computer you can use? RE: Wipe out eMMC before flashing new OS? - kqlnut - 11-13-2021 (11-12-2021, 09:38 PM)susy1075 Wrote: Thank you for your advice, I tried flashing the sd card from a library computer and balena etcher kept giving me error messages such as “flash failed”. Theoretically you should be able to use the same CLI commands (dd or bmaptool) to flash an SD card from the PinePhone itself as from a computer. So if you really want to try and your PinePhone is currently at least somewhat usable (i. e. it boots and stays on), you could do it from a terminal on the phone. If your OS runs okay, you could just launch the terminal application and do it from there. If it doesn't, you would need an external keyboard and log into a tty with Ctrl+Alt+F3 (or another F key, look up ttys if you want to know more about that). In either case you would of course need to have the image you want to flash on your phone. You could download it from within the terminal with wget ("wget [URL]"; you might have to install that first). If you use bmaptool, you don't need to download it manually first, you can just specifiy the URL in the bmaptool command. Be careful though that you specify the right device to flash to. I wouldn't recommend doing it this way to someone completely new to Linux (besides I'm not even sure if it really works). But if you have the patience (to read up on the stuff you don't understand yet) and the need to do it that way ... Be aware though that this whole procedure would only work once with a fresh SD card. Once you have flashed an image to it successfully, the PinePhone will boot from the SD card (since it's before the eMMC in the boot order) and while running an OS from an SD card you should really not attempt to overwrite itself. RE: Wipe out eMMC before flashing new OS? - zetabeta - 11-13-2021 (10-03-2021, 11:30 AM)zkajdan Wrote: Hi,short version: no. if fromatting means creating partitions and filesystem(s), then not needed. however, wiping is sometimes good idea, but rather slow. like, sudo dd bs=1M if=/dev/zero of={device} , if paranoid, sudo dd bs=1M if=/dev/urandom of={device} . if previous o.s. used gpt partition scheme instead of dos, then some partition details are also in the end of the disk (memory card). wiping end and start is good idea. because size varies commans cannot be precise. coulde be like, sudo dd bs=1M if=/dev/zero of={device} seek=29000 , sudo dd bs=1M if=/dev/zero of={device} count=2 ."skip" and 'seek" taked their reference from "bs". these commands wipe end and start of disk. (10-05-2021, 12:45 AM)zkajdan Wrote: - with my first, I immediately ruined the SIM slot because I fell into the infamous use-nano-SIM-with adapter trap ... (I found the warnings against doing that only after I'd ruined it ...) i use nano to micro adapter, i noticed if not being careful it could damage things. adapters could vary though. |