Re: Resize KVM NTFS file system

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On 06/06/2015 06:19 PM, Mark LaPierre wrote:
I resized a partition inside a KVM RAW file system disk image.  When I
start the Win7 virtual machine it does not report the new partition
size.  It shows the file system as 15GB instead of the 50GB size of the
partition that it lives on.  I gather from hours so reading the manual
that I need to increase the NTFS file system size to fill the new larger
partition where it lives.

The ntfresize command does not seem to be compatible with disk image
files.  Do I have to mount the disk image file with a loopback first?

It's generally recommended to use Windows tools to do NTFS re-sizing.
I can't help with that, but from Linux you would need to run
    kpartx -a -v /path/to/image/file
to create the /dev/mapper/loop?p? devices for the partitions within
the image. You can then access those devices just like regular disk
partitions.

Run "kpartx -d -v /path/to/image/file" to delete the loop devices.

--
Bob Nichols     "NOSPAM" is really part of my email address.
                Do NOT delete it.

_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux