PiShrink icon indicating copy to clipboard operation
PiShrink copied to clipboard

PiShrink does not ummount or release mounted image after shrink?

Open Jibun-no-Kage opened this issue 2 years ago • 4 comments

PiShrink does not ummount or release mounted image after shrink?

/shrink# mount | grep rootfs

/shrink/2021-12-22 Pi3ModelB0 (Real Time Clock Source Example).img on /media/root/rootfs type ext4 (rw,nosuid,nodev,relatime,errors=remount-ro,uhelper=udisks2)

Should PiShrink not release the mounted image?

Jibun-no-Kage avatar Dec 24 '21 16:12 Jibun-no-Kage

It should unmount the image once it is done with the shrink. Did PiShrink finish successfully?

Drewsif avatar Apr 18 '22 15:04 Drewsif

Right, it is when there is an error or unsuccessful result, the mount point remains. So whatever clean up should be working, seems to fail at least some of the time. Since efsck tends to choke on non linux partition, i.e. boot being vfat, that is on such trigger for the abort and no clean up, based on my experience thus far.

Jibun-no-Kage avatar Apr 19 '22 02:04 Jibun-no-Kage

Ahh that makes sense. Ill leave this open to remember to look into making sure we clean up better

Drewsif avatar Apr 20 '22 17:04 Drewsif

Cool. That is what I was looking for. Thanks.

Jibun-no-Kage avatar Apr 20 '22 21:04 Jibun-no-Kage