Hi!

I have a working Windows 10 (without qubes tools) VM with a 60GB root drive 
that Windows partitioned like this:

500MB System-Partition
38GB C-Drive
473MB Repair-Partition
20GB unallocated

I would like to extend the C-Drive to include the 20GB free space but for that 
I have to move the Repair-Partition to the end of the drive and make the 
unallocated space become adjacent to the C-drive partition. Windows won’t allow 
me to move this partition out of the way and Google brings up information, that 
it can safely be moved but one needs to use a boot disk with a third party tool 
to get the moving done while Windows is not running.

Well... this being Qubes I thought I can use a disp vm, hook up the root image 
of the Windows VM to it and use gparted to do the work. To be sure I don’t 
destroy my Windows VM in the process I was cloning the VM first and then 
working on the clone. So here is what I have done:

In dom0:
qvm-clone windows10 windows10-c
ls -l /dev/mapper | grep windows10

(that showed /dev/mapper/qubes_dom0-vm—windows10–c—root to be a link to 
/dev/dm-18 and ...windows10–c—root—1592406155–back to be a link to /dev/dm-7)

Naiv as I am, I did (again in dom0)

losetup -P -f /dev/dm-18

Which gave me /dev/loop2 which I then attached to a disp VM as /dev/xvdi via 
the Qubes Devices widget. In the disp VM I ran gparted and moved the repair 
partition to the end and extended the C-Drive partition right the way as well. 
That all worked fine and after detaching the volume and removing the /dev/loop2 
back in dom0 m, fdisk -l /dev/dm-18 showed the changed partition table exactly 
the way I wanted it.

But when I boot the cloned windows10-c VM of which I presumably just changed 
the partitions and go into the disk manager of Windows 10, it presents me with 
the old, unchanged partitioning listed all the way at the top of this message. 
Nothing had changed at all.

So obviously I am missing some important part here, but I have no clue as to 
what that might be.

Can anybody enlighten me, please? I have tried Google and the Qubes 
documentation quite extensively and if there is any further information 
available there, I proved to be unworthy of finding it...

Regards, Frank




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/qubes-users/5791-1592407611-233091%40sneakemail.com.

Reply via email to