Hello Stuart,

On Wed, 27 Feb 2019 at 01:57, Stuart Perkins <perkins.stu...@gmail.com>
wrote:

>
> On Tue, 26 Feb 2019 22:30:35 +0100
> 799 <one7tw...@gmail.com> wrote:
> >Honestly I don't understand why it is not possible to shrink a volume as
> >this is something which can done in linux.
> >Does someone has an idea how to "reclaim" the free capacity from an AppVM?
>


> [...]
> Can you mount an additional "drive" in the storage qube?  Copy all the
> files with cp -r or rsync then rearrange things so the new disk image is
> the main one and delete the overgrown one?  Or, conversely, mount the
> storage qube's main drive in a regular appVM and do the same thing there?
>

Of course I could copy data from the Old AppVM to an external HDD, create a
smaller Qube and then copy the data back.
But this doesn't feel like how it should be done in 2019 ;-)
I thought that there might something like using resize2fs to make the mage
smaller from within the AppVM and then use some magic to tell Qubes that it
can free up space.
But, maybe another good idea which you have brought up is, to mount the old
private.img and copy data to the new private.img of the new qube:

mkdir /tmp/old-private.img
sudo mount /var/lib/qubes/appvms/<OLDQUBE>/private.img
mkdir /tmp/new-private.img
sudo mount /var/lib/qubes/appvms/<NEWQUBE>/private.img

Then I could copy data from /tmp/old-private.img to /tmp/new-private.img

While this could be done from dom0, I don't want to do it from there, but
I'd prefer to mount the old private.img into the new AppVM.
I think this something which can be done, from the new AppVM Qubes, to
which I mount the old private.img additionally.
I just have to figure out how to do so, haven't found something yet, but
afaik I've read it some time ago.
If someone has guidance, this would be helpfull and could work as a "poor
man's" reduce disk alternative  ;-)

- O

-- 
You received this message because you are subscribed to the Google Groups 
"qubes-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to qubes-users+unsubscr...@googlegroups.com.
To post to this group, send email to qubes-users@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/CAJ3yz2vSsUapVWLuH0LjpwE6nZSk%3DdwkhPtbfgUHCjToGyaXcg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to