I'd like to create an image of my 20.04 system partition as a backup in case that anything goes wrong so that I can restore it later.
Additionally I want to make the system partition smaller (maybe after having it backed up...) so I can create a seperate partition for some photos and other data (which shouldn't be auto-mounted, but can be mounted when needed)
My problem is that the laptop doesn't have an optical drive and currently I don't have anything here that I could boot from (except a live DVD, which obviously doesn't help much without an optical drive)
So I thought it should somehow be possible to do this when I manually unmount / first, maybe after booting to emergeny mode? Or isn't it possible to unmount / even in emergeny mode?
Might using dd also work when / is mounted read-only?
Any ideas how I can get these simple tasks done without having to reboot from USB media?
Any help is appreciated.
edit:
I've given up on the modifying partitions part now as there really doesn't seem to be a good solution for shrinking a system partition that is mounted - But still I cannot believe there is no way to create a "live" image from a running system, as this is often needed for servers or other computers that you don't have physical access to...?! (And it was already possible in some other OS years ago)