Bug 1027526

Summary: RFE: Labels for logical partitions lost in Windows 2003 after virt-resize for primary partition
Product: [Community] Virtualization Tools Reporter: Xinglong Wu <cakuba>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: unspecified   
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xinglong Wu 2013-11-07 02:29:28 UTC
Description of problem:

I'm using virt-resize to expand the primary partition (C:) in a Windows 2003 image. The command works fine but after expanding, when I boot into Windows 2003, all the other partitions (D:, E:, and F:) are lost. After using the disk management tool within Windows 2003, I can re-label the above three partitions and all the files are still there. But it is really annoying because every time you have to do some work by hand after expanding the disk size.

Version-Release number of selected component (if applicable):

Host OS: RHEL6.3
libguestfs: libguestfs-1.16.19-1.el6.x86_64             
            libguestfs-tools-c-1.16.19-1.el6.x86_64              
            libguestfs-winsupport-1.0-7.el6.x86_64


How reproducible:
always


Steps to Reproduce:
1. create a Windows 2003 VM with primary partition (C:) and one or more logical partitions (D:, E:, etc.)
2. use virt-resize to expand the parimary partition (C:)


Actual results:

after virt-resize and booting up Windows 2003, primary partitions are expanded as expected, but disk labels for logical partitions (D:, E:, etc.) are lost. All the files in logical partitions are OK, but I need to manually re-label the logical partitions.


Expected results:

after virt-resize and booting up Windows 2003, both primary and logical partitions should be correctly labeled without manual setup.


Additional info: