Unknown Error While Determining Volume Size



  • Warning, NTFS File System Did Not Shrink Properly.
    Unknown Error While Determining Volume Size

    Been using Clonedeploy with no issues for quite some time. While trying to upload an update version of my image I am getting plagued with this particular error. I am going to try a few things and attempt it again but in an effort to save time I thought I would post here to see if anyone has any ideas. Thanks.

    ** Looking For Active Task For 6c:4b:90:63:12:dc.MJ06ZKNY.B261AC80-6371-11E8-A81A-72E660A64F00 **

    {"computerId":"false","task":"ond","taskId":null}

    ...... This Computer Was Not Found

    ** Looking For Active Task For 6c:4b:90:63:12:dc **

    {"computerId":"false","task":"ond","taskId":null}

    ...... This Computer Was Not Found

    This Computer Is Not Registered. No Active Web Tasks Were Found For This Computer. Starting Registration.

    ** Displaying Boot Arguments **

    BOOT_IMAGE=kernels\4.13.2 initrd=images\initrd.xz root=/dev/ram0 rw ramdisk_size=156000 web=http://10.11.100.21/clonedeploy/api/ClientImaging/ USER_TOKEN= consoleblank=0 MAC: 6c:4b:90:63:12:dc
    Linux client_console.localdomain 4.13.2 #2 SMP Fri Sep 29 14:06:46 EDT 2017 i686 GNU/Linux

    Boot Image Version: 1008

    ** Using On Demand Mode **

    ** Creating Active Task **

    computer_name=Spare-21 image_name=Win10_M710_9-4-18 profile_id=13 server_ip=10.11.100.21 pre_scripts="" post_scripts="" file_copy=False sysprep_tags="" task_completed_action="Reboot" osx_target_volume="" munki_repo_url="" change_computer_name=true fix_bootloader=true partition_method=dynamic dp_id="1"

    ...... Success

    ** Checking Current Queue **

    ...... Complete

    ** Mounting SMB Share **

    ...... Connecting To Local_Default

    ...... Success

    ** Looking For Hard Drive(s) **

    ...... Displaying Available Devices
    RO RA SSZ BSZ StartSec Size Device
    rw 256 512 1024 0 159744000 /dev/ram0
    rw 256 512 4096 0 128035676160 /dev/nvme0n1
    rw 256 512 4096 2048 272629760 /dev/nvme0n1p1
    rw 256 512 4096 534528 16777216 /dev/nvme0n1p2
    rw 256 512 4096 567296 126696292352 /dev/nvme0n1p3
    rw 256 512 4096 248020992 1048576000 /dev/nvme0n1p4
    Disk /dev/ram0: 152.4 MiB, 159744000 bytes, 312000 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes

    Disk /dev/nvme0n1: 119.2 GiB, 128035676160 bytes, 250069680 sectors
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: A368A019-FFA1-4476-819D-763607A7804B

    Device Start End Sectors Size Type
    /dev/nvme0n1p1 2048 534527 532480 260M EFI System
    /dev/nvme0n1p2 534528 567295 32768 16M Microsoft reserved
    /dev/nvme0n1p3 567296 248020991 247453696 118G Microsoft basic data
    /dev/nvme0n1p4 248020992 250068991 2048000 1000M Windows recovery environment

    ...... Found Drive(s)

    ...... Drive(s): /dev/nvme0n1

    ** Processing /dev/nvme0n1 **

    Get hd_schema: profileId=13&clientHdNumber=0&newHdSize=128035676160&schemaHds=&clientLbs=512

    {"BootPartition":"","Guid":"83B140F7-7978-494E-91A2-6A454EE6F97E","IsValid":"original","Message":null,"PartitionType":"gpt","PhysicalPartitionCount":4,"PhysicalPartitions":[{"Compression":"lz4","EfiBootLoader":"","FileSystem":"ntfs","Guid":"EE881A71-872C-43D0-8980-F1C3AD1ADC1D","ImageType":"Block","Number":"1","PartcloneFileSystem":"ntfs","Prefix":null,"Type":"","Uuid":"62C45538C4551021","VolumeGroup":null},{"Compression":"lz4","EfiBootLoader":"","FileSystem":"vfat","Guid":"4D970AF5-2363-44E6-9C91-EC1802E5271A","ImageType":"Block","Number":"2","PartcloneFileSystem":"fat","Prefix":null,"Type":"","Uuid":"AE55-BC80","VolumeGroup":null},{"Compression":"lz4","EfiBootLoader":"","FileSystem":"","Guid":"19D51548-5A4B-4FB4-91AA-C59D9AD0317D","ImageType":"Block","Number":"3","PartcloneFileSystem":"imager","Prefix":null,"Type":"","Uuid":"","VolumeGroup":null},{"Compression":"lz4","EfiBootLoader":"","FileSystem":"ntfs","Guid":"524506BE-3838-45C9-B74D-BB17797CB72D","ImageType":"Block","Number":"4","PartcloneFileSystem":"ntfs","Prefix":null,"Type":"","Uuid":"38EA5848EA580492","VolumeGroup":null}],"SchemaHdNumber":0,"UsesLvm":"false"}

    ...... HD Matches Original Size Of Image, Dynamic Partition Layout Will Not Be Used

    ** Clearing MBR / GPT **
    GPT data structures destroyed! You may now partition the disk using fdisk or
    other utilities.
    2047+0 records in
    2047+0 records out
    1048064 bytes (1.0 MB) copied, 0.00570493 s, 184 MB/s

    ** Restoring MBR / GPT On /dev/nvme0n1 **
    2047+0 records in
    2047+0 records out
    1048064 bytes (1.0 MB) copied, 0.158799 s, 6.6 MB/s
    Caution: invalid backup GPT header, but valid main header; regenerating
    backup header from main header.

    Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
    on the recovery & transformation menu to examine the two tables.

    Warning! One or more CRCs don't match. You should repair the disk!

    GPT fdisk (gdisk) version 1.0.0

    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: damaged

    ****************************************************************************
    Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
    verification and recovery are STRONGLY recommended.


    Command (? for help): b back up GPT data to a file
    c change a partition's name
    d delete a partition
    i show detailed information on a partition
    l list known partition types
    n add a new partition
    o create a new empty GUID partition table (GPT)
    p print the partition table
    q quit without saving changes
    r recovery and transformation options (experts only)
    s sort partitions
    t change a partition's type code
    v verify disk
    w write table to disk and exit
    x extra functionality (experts only)
    ? print this menu

    Command (? for help):
    Final checks complete. About to write GPT data. THIS WILL OVERWRITE EXISTING
    PARTITIONS!!

    Do you want to proceed? (Y/N): OK; writing new GUID partition table (GPT) to /dev/nvme0n1.
    The operation has completed successfully.

    ...... Complete

    ** New Partition Table Is **
    GPT fdisk (gdisk) version 1.0.0

    Partition table scan:
    MBR: protective
    BSD: not present
    APM: not present
    GPT: present

    Found valid GPT with protective MBR; using GPT.
    Disk /dev/nvme0n1: 250069680 sectors, 119.2 GiB
    Logical sector size: 512 bytes
    Disk identifier (GUID): 83B140F7-7978-494E-91A2-6A454EE6F97E
    Partition table holds up to 128 entries
    First usable sector is 34, last usable sector is 250069646
    Partitions will be aligned on 2048-sector boundaries
    Total free space is 2669 sectors (1.3 MiB)

    Number Start (sector) End (sector) Size Code Name
    1 2048 923647 450.0 MiB 2700 Basic data partition
    2 923648 1128447 100.0 MiB EF00 EFI system partition
    3 1128448 1161215 16.0 MiB 0C01 Microsoft reserved ...
    4 1161216 250068991 118.7 GiB 0700 Basic data partition

    { "Compression": "lz4", "EfiBootLoader": "", "FileSystem": "ntfs", "Guid": "EE881A71-872C-43D0-8980-F1C3AD1ADC1D", "ImageType": "Block", "Number": "1", "PartcloneFileSystem": "ntfs", "Prefix": null, "Type": "", "Uuid": "62C45538C4551021", "VolumeGroup": null }

    ** Starting Image Download For /dev/nvme0n1p1 **

    lie_reporter 356 partclone & lz4 -d /storage/images/Win10_M710_9-4-18/hd0/part1.ntfs.lz4 | partclone.ntfs -B -r -o /dev/nvme0n1p1
    Partclone v0.2.90 http://partclone.org
    Starting to restore image (-) to device (/dev/nvme0n1p1)
    we need memory: 22660 bytes
    image head 4160, bitmap 14400, crc 4100 bytes
    Calculating bitmap... Please wait... get device size 471859200 by ioctl BLKGETSIZE64,
    done!
    File system: NTFS
    Device size: 471.9 MB = 115199 Blocks
    Space in use: 395.9 MB = 96663 Blocks
    Free Space: 75.9 MB = 18536 Blocks
    Block size: 4096 Byte
    Syncing... OK!
    Partclone successfully restored the image (-) to the device (/dev/nvme0n1p1)

    ** Restoring GUID On /dev/nvme0n11 **

    ...... part gptGUID: EE881A71-872C-43D0-8980-F1C3AD1ADC1D
    The operation has completed successfully.

    ** Changing Computer Name On /dev/nvme0n1p1 **

    ...... Could Not Find Answer File, Attempting Registry Change
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/Windows/System32/config/SYSTEM) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..

    { "Compression": "lz4", "EfiBootLoader": "", "FileSystem": "vfat", "Guid": "4D970AF5-2363-44E6-9C91-EC1802E5271A", "ImageType": "Block", "Number": "2", "PartcloneFileSystem": "fat", "Prefix": null, "Type": "", "Uuid": "AE55-BC80", "VolumeGroup": null }

    ** Starting Image Download For /dev/nvme0n1p2 **

    lie_reporter 356 partclone & lz4 -d /storage/images/Win10_M710_9-4-18/hd0/part2.fat.lz4 | partclone.fat -B -r -o /dev/nvme0n1p2
    Partclone v0.2.90 http://partclone.org
    Starting to restore image (-) to device (/dev/nvme0n1p2)
    we need memory: 30276 bytes
    image head 4160, bitmap 25600, crc 516 bytes
    Calculating bitmap... Please wait... get device size 104857600 by ioctl BLKGETSIZE64,
    done!
    File system: FAT32
    Device size: 104.9 MB = 204800 Blocks
    Space in use: 30.7 MB = 59954 Blocks
    Free Space: 74.2 MB = 144846 Blocks
    Block size: 512 Byte
    Syncing... OK!
    Partclone successfully restored the image (-) to the device (/dev/nvme0n1p2)

    ** Restoring GUID On /dev/nvme0n12 **

    ...... part gptGUID: 4D970AF5-2363-44E6-9C91-EC1802E5271A
    The operation has completed successfully.

    { "Compression": "lz4", "EfiBootLoader": "", "FileSystem": "", "Guid": "19D51548-5A4B-4FB4-91AA-C59D9AD0317D", "ImageType": "Block", "Number": "3", "PartcloneFileSystem": "imager", "Prefix": null, "Type": "", "Uuid": "", "VolumeGroup": null }

    ** Starting Image Download For /dev/nvme0n1p3 **

    lie_reporter 356 partclone & lz4 -d /storage/images/Win10_M710_9-4-18/hd0/part3.imager.lz4 | partclone.imager -B -r -o /dev/nvme0n1p3
    Partclone v0.2.90 http://partclone.org
    Starting to restore image (-) to device (/dev/nvme0n1p3)
    we need memory: 8772 bytes
    image head 4160, bitmap 4096, crc 516 bytes
    Calculating bitmap... Please wait... get device size 16777216 by ioctl BLKGETSIZE64,
    done!
    File system: raw
    Device size: 16.8 MB = 32768 Blocks
    Space in use: 16.8 MB = 32768 Blocks
    Free Space: 0 Byte = 0 Blocks
    Block size: 512 Byte
    Syncing... OK!
    Partclone successfully restored the image (-) to the device (/dev/nvme0n1p3)

    ** Restoring GUID On /dev/nvme0n13 **

    ...... part gptGUID: 19D51548-5A4B-4FB4-91AA-C59D9AD0317D
    The operation has completed successfully.

    { "Compression": "lz4", "EfiBootLoader": "", "FileSystem": "ntfs", "Guid": "524506BE-3838-45C9-B74D-BB17797CB72D", "ImageType": "Block", "Number": "4", "PartcloneFileSystem": "ntfs", "Prefix": null, "Type": "", "Uuid": "38EA5848EA580492", "VolumeGroup": null }

    ** Starting Image Download For /dev/nvme0n1p4 **

    lie_reporter 356 partclone & lz4 -d /storage/images/Win10_M710_9-4-18/hd0/part4.ntfs.lz4 | partclone.ntfs -B -r -o /dev/nvme0n1p4
    Partclone v0.2.90 http://partclone.org
    Starting to restore image (-) to device (/dev/nvme0n1p4)
    we need memory: 1552512 bytes
    image head 4160, bitmap 1544252, crc 4100 bytes
    Calculating bitmap... Please wait... get device size 127440781312 by ioctl BLKGETSIZE64,
    done!
    File system: NTFS
    Device size: 50.6 GB = 12354003 Blocks
    Space in use: 47.8 GB = 11666040 Blocks
    Free Space: 2.8 GB = 687963 Blocks
    Block size: 4096 Byte
    Syncing... OK!
    Partclone successfully restored the image (-) to the device (/dev/nvme0n1p4)
    Mounting volume... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Checking the alternate boot sector... FIXED
    NTFS volume version is 3.1.
    Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
    NTFS partition /dev/nvme0n1p4 was processed successfully.

    volumeMargin: 76838784512

    ** Expanding NTFS Volume on /dev/nvme0n1p4 **

    Expanding NTFS Volume To: 127430295552
    ntfsresize v2017.3.23 (libntfs-3g)
    Device name : /dev/nvme0n1p4
    NTFS volume version: 3.1
    Cluster size : 4096 bytes
    Current volume size: 50601996800 bytes (50602 MB)
    Current device size: 127440781312 bytes (127441 MB)
    New volume size : 127430291968 bytes (127431 MB)
    Checking filesystem consistency ...
    Accounting clusters ...
    Space in use : 47785 MB (94.4%)
    Collecting resizing constraints ...
    Schedule chkdsk for NTFS consistency check at Windows boot time ...
    Resetting $LogFile ... (this might take a while)
    Updating $BadClust file ...
    Updating $Bitmap file ...
    Updating Boot record ...
    Syncing device ...
    Successfully resized NTFS on device '/dev/nvme0n1p4'.

    ...... Success
    Mounting volume... OK
    Processing of $MFT and $MFTMirr completed successfully.
    Checking the alternate boot sector... FIXED
    NTFS volume version is 3.1.
    Going to un-mark the bad clusters ($BadClus)... No bad clusters...OK
    NTFS partition /dev/nvme0n1p4 was processed successfully.

    ** Restoring GUID On /dev/nvme0n14 **

    ...... part gptGUID: 524506BE-3838-45C9-B74D-BB17797CB72D
    The operation has completed successfully.

    ** Changing Computer Name On /dev/nvme0n1p4 **

    ...... Could Not Find Answer File, Attempting Registry Change
    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    Value <\ControlSet001\Services\Tcpip\Parameters\NV Hostname> not found!

    Unknown command: Spare-21, type ? for help

    Hives that have changed:

    Name

    None!

    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    EDIT: <\ControlSet001\Control\ComputerName\ComputerName\ComputerName> of type REG_SZ (1) with length 26 [0x1a]
    [ 0]: Image_Update

    Now enter new strings, one by one.
    Enter nothing to keep old.
    [ 0]: Image_Update
    ->

    Hives that have changed:

    Name

    0 </mnt/ntfs/Windows/System32/config/SYSTEM>
    Commit changes to registry? (y/n) [n] : 0 </mnt/ntfs/Windows/System32/config/SYSTEM> - OK
    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    Value <\ControlSet001\Services\Tcpip\Parameters\Hostname> not found!

    Unknown command: Spare-21, type ? for help

    Hives that have changed:

    Name

    None!

    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    EDIT: <\ControlSet001\Services\Tcpip\Parameters\HostName> of type REG_SZ (1) with length 26 [0x1a]
    [ 0]: Image_Update

    Now enter new strings, one by one.
    Enter nothing to keep old.
    [ 0]: Image_Update
    ->

    Hives that have changed:

    Name

    0 </mnt/ntfs/Windows/System32/config/SYSTEM>
    Commit changes to registry? (y/n) [n] : 0 </mnt/ntfs/Windows/System32/config/SYSTEM> - OK
    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    EDIT: <\ControlSet001\Services\Tcpip\Parameters\NV HostName> of type REG_SZ (1) with length 26 [0x1a]
    [ 0]: Image_Update

    Now enter new strings, one by one.
    Enter nothing to keep old.
    [ 0]: Image_Update
    ->

    Hives that have changed:

    Name

    0 </mnt/ntfs/Windows/System32/config/SYSTEM>
    Commit changes to registry? (y/n) [n] : 0 </mnt/ntfs/Windows/System32/config/SYSTEM> - OK
    reged version 0.1 140201, (c) Petter N Hagen
    Simple registry editor. ? for help.

    Value <\ControlSet001\services\Tcpip\Parameters\NV Hostname> not found!

    Unknown command: Spare-21, type ? for help

    Hives that have changed:

    Name

    None!

    openHive(/mnt/ntfs/WINDOWS/system32/config/system) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) failed: No such file or directory, trying read-only
    openHive(/mnt/ntfs/WINDOWS/system32/config/system) in fallback RO-mode failed: No such file or directory
    reged version 0.1 140201, (c) Petter N Hagen
    Unable to open/read a hive, exiting..

    ** Restoring GUID On /dev/nvme0n1 **
    The operation has completed successfully.

    83B140F7-7978-494E-91A2-6A454EE6F97E

    Updating NVRAM
    mount: mounting none on /sys/firmware/efi/efivars failed: No such file or directory

    Existing NVRAM
    efibootmgr: EFI variables are not supported on this system.

    1

    2

    3

    4

    Updated NVRAM
    efibootmgr: EFI variables are not supported on this system.

    ** Closing Active Task **



  • I don't think this is the correct log, this is a deployment. But anyway, some common problems could be, a fragmented drive, hibernation, pending windows updates, bitlocker. You can also try to disable shrinking the volumes from the profile upload options.



  • Hibernation is turned off (and that error actually tells you to turn it off). It's a NVME SSD so fragmentation is unlikely, but worse comes to worse I'll defrag it even though I don't like to defrag a SSD.

    Bitlocker is a good guess as we do use it here but the machine I was uploading never had it on yet. Pending WIndows update however does make a lot of sense. Thanks for these starting points.

    Sorry about posting the wrong log, I usually don't have to go into the main CD console to fetch logs, so I don't know where everything is located.