cloudmesh / cloudmesh-pi-burn

Burns many SD cards so we can build a Raspberry PI cluster
Other
18 stars 12 forks source link

burn: Check where Pi Imager caches downloaded images #38

Open rickotten opened 3 years ago

rickotten commented 3 years ago

https://www.raspberrypi.org/forums/viewtopic.php?t=272923

Looks like on OSx, it is the following file:

OSx: ~/Library/Caches/Raspberry\ Pi/Imager/lastdownload.cache

Windows: ~\AppData\Local\Raspberry Pi\Imager\cache\lastdownload.cache

Linux: ~/.cache/Raspberry Pi/Imager/lastdownload.cache

Pi: ? (likely same as linux)

Naturally, it appears it only caches the last download.

jpfleischer commented 2 years ago

where are images stored on raspberry pi using pi imager? read the first line of the file and split on .img. in C:\Users\\AppData\Local\Raspberry Pi\Imager\cache on windows this is where the cache is stored. for example it is try to figure split on \0 (reads like NUL in notepad++) and find the line that contains .img first to get the file name.

laszewsk commented 2 years ago

can we reuse this for burning?

laszewsk commented 2 years ago

we found this and we found the name of teh os is not preserved in the filename, so we may just put in a comment in the FAQ where it is saved. mayebe we went an image name such as --image=rpi-imager and then it uses that image, but ist nt super important

laszewsk commented 2 years ago

remember cms has also rpi-imager build in if it is installed