Following https://www.tomshardware.com/how-to/back-up-raspberry-pi-as-disk-image, I copied an image of Raspian OS lite (64-bit) from a 256 GB SSD to an external drive. After that I tried to shrink that image with pishrink
and nohup
. I think that did not work, because after several hours the 256GB file was still there.
Before running pishrink
I displayed current processes with $$
, because I was worried about the dd
process maybe still running in the background (also started with nohup
). $$
gave a process number and somethingalong the lines of "no command name found". Maybe I killed some important system process there? When I typed pidof dd
it did not print anything. When I ran pishrink
it printed something like [1] [process number] [command name].