When I use the commandthe image is saved on the raspberry pi 5 itself I think.Code:
rpicam-still --raw --output test.jpg
It will be saved in in whatever directory is current when you run the command. Doesn't matter whether that's on the SD card or a USB drive.
If you open a terminal (or log in to the command line) you'll be initially in your users home directory e.g. /home/pi If you run that command there that's where test.jpg will be saved.
If you want it saved somewhere else you need to provide a path as well as a file name e.g. /home/pi/test.jpg or cd to that directory (cd /home/pi)before running the command. Paths without a leading / are relative to the current directory. Paths with a leading / are treated as absolute and start from the root of the file system.
For saving to a USB drive you need to mount it first or let the desktop's automounter do that for you. That's a topic in and of itself.
Statistics: Posted by thagrol — Tue Mar 11, 2025 3:46 pm