Quote:
Originally Posted by NiLuJe
@geekmaster/@eureka: Err, wasn't the point of doing it in a diags RUNME instead of USBNet to be able to dump an *unmounted* part? Because doing it from usbnet on main would be dumping main from main == bad, no? (And since it's an unknown firmware/kernel, doing it from a flashed older diags+ssh isn't a great idea either).
(Take that with a grain of salt, I'm not familiar with the RUNME stuff, and I still can't remember wich part is main/diags... ^^)
|
Exactly! If you go back and read my post(s) about this, I say the RUNME.sh should run from diags and dump main, then change bootmode to main and reboot, then detect that it is in main (/proc/bootmode) and dump diags, then quit...
That not only dumps UNMOUNTED partitions, but also UNMODIFIED partitions. The only changes are to /mnt/us and /var/local (where the payload goes).
I want UNMODIFIED partition images. SSH requires CHANGES to main and/or diags before it can even RUN...
Remember that it has to delete RUNME.done exactly ONE time, so it can run again after rebooting to main...
I have already written a version of this script a couple of months ago, but I do not have it with me... It might even be posted somewhere, but the MR search engine isn't finding it for me. It must be buried somewhere in my thousands of posts and PMs, but good luck finding it...