Unable to shrink the VMDK disk file

I have a Winxp virtual machine, and it was created with a 40 GB SCSI disk, VMWare has recommended.  I used to transfer all kinds of data to and from it, and I noticed that kept virtual disk file becomes larger.

The Windows file as well as all my personal files are total about 4.7 GB.  But the VMDK file is not less 21,7 GB...

After that it shrinks normally did not work, I started the machine virtual in Parted Magic and effectively narrowed the entire NTFS partition up to 5 GB - the other 35 showing as empty space.  But still, I tried shrinking and he defragmentation on 7 times, he didn't budge 21,7 GB.  I even tried to make the option "Get ready to shrink" inside Windows itself, using VMWare Tools, which also did nothing...

I tried in fact to create a new virtual machine identical with a 5 GB drive, then copy the partition through (I had copied on a flashdrive using CloneZilla) - but for some reason, XP does not start if I do that.  Even to make all stages of repair does not fix.

So could someone please understand why this file on the disc is so obnoxiously huge for a 4.7 GB VM and how can I reduce the VMDK?  I really need keep the hard drive space and it seems really stupid...

the other 35 showing as space vacuum

That's the problem. The process of narrowing in VMware Workstation focuses first on the unused space on the partitions, and then shrink the VMDK file. The free space on the disc does contain not more than one partition, it will not be zero. To resolve this problem, you can temporarily create an additional NTFS partition on unused disk space.

André

Tags: VMware

Similar Questions

  • HOWTO delete a VMDK to a virtual machine without actually deleting the vmdk disk file?

    How to remove a file VMDK to a virtual machine without actually deleting the vmdk disk file?

    Details:

    My perl script, I need to temporarily remove a vmdk to a virtual machine file. However I do not want the vmdk file should be removed from the virtual machine. For example, the gui vsphere provides this option to delete a virtual disk without deleting the virtual disk from the disk files.

    In my script, I use the ReconfigVM_Task to do this. This does the job, but also removes the vmdk file. How can ensure me that the vmdk file will not delete the disk?

    The code snippet is something are:

    My $devspec = VirtualDeviceConfigSpec-> new)

    device = > $device,

    #device to delete above:

    operation = > VirtualDeviceConfigSpecOperation-> new ('remove'));

    Push (@$ devspec_list, $devspec);

    My $config_spec = VirtualMachineConfigSpec-> new)

    deviceChange = > $devspec_list

    );

    my $task = $template_view-> ReconfigVM_Task (spec = > $config_spec);

    would really appreciate your help

    s

    Take a look at this script: vmdkManagement.pl

    =========================================================================

    William Lam

    VMware vExpert 2009

    Scripts for VMware ESX/ESXi and resources at: http://engineering.ucsb.edu/~duonglt/vmware/

    Twitter: @lamw

    repository scripts vGhetto

    Introduction to the vMA (tips/tricks)

    Getting started with vSphere SDK for Perl

    VMware Code Central - Scripts/code samples for developers and administrators

    VMware developer community

    If you find this information useful, please give points to "correct" or "useful".

  • How to shrink the VMDK file?

    Hi all

    Today, I spread a hard disk to increase the size of the drive on one of the virtual machine.  Later due to required requirements is no longer the hard drive. Therefore, it is possible to remove the disc that I extended?

    Thanks in advance

    There is no way to shrink the vmdk file.

    Only create new, smaller size, replicate data and delete everything first.

    If you need temporary space then create the new disk and simply remove it when it is no longer necessary.

    ---

    VMware vExpert 2009

    http://blog.vadmin.ru

  • The vmdk Preallocated file defragmentation

    I created a virtual machine with a file preallouee vmdk (Type = available thick disk lazy set to zero). Now, update is it possible or not. If Yes, then share the command for ESXi 5.0 U1.

    Virtual disk Development Kit 5.1

    Published on 10 September 2012 |  Download the SDK 5.1

    http://www.VMware.com/support/developer/VDDK/

    See these links below;

    http://pubs.VMware.com/vSphere-50/topic/com.VMware.SDK.doc_50/GUID-E2E3BB5D-EE57-4DC5-A5F0-C990A05C6F6C.html

    The virtual disk (VDDK) SDK is a collection of libraries C, code samples, utilities, and documentation to help you create or access VMware virtual disk storage.

    The kit includes:

    -Virtual libraries and drive installed, a set of function C calls to manipulate the virtual disk files.
    -Examples of C++ code that you can build with Visual Studio or the GNU C compiler.
    -Disk utility Mount to access the files and file systems in the virtual disks on the Windows or Linux guest virtual machines offline.
    -Documentation on the VDDK libraries and command-line utilities.
    -Virtual Disk Manager utility for manipulating virtual disks offline under Windows or Linux (, clone, move, rename, grow, shrink or defragment).

    See Page 11;

    http://www.VMware.com/PDF/VirtualDiskManager.PDF

  • Unable to create the virtual disk: fault. RestrictedVersion.summary

    Hello

    Im trying to create a virtual disk using the CLI on ESX4i.  The script is:

    vmkfstools.pl - Server 10.190.2.51 - c 20 g d eagerzeroedthick - a free /vmfs/volumes/Internal/test.vmdk

    When the script runs I get error: unable to create the virtual disk: fault. RestrictedVersion.summary

    Can someone tell me why please.  Im trying to create a disk of 20 GB with adapter free with eagerzeroedthick on my internal called storage, (no subdirectory).

    The file system is THAT VMFS 3.33 maximum file size is 256 GB.  The block size is 1 MB.  If it is the block size that is the problem how can I easily change?

    It's in a laboratory, not a production environment.  I need the flag eagerzeroedthick like Im trying to create a passive active cluster node MSCS 2 on a single physical node with 2 machines VMS.

    Thank you.

    Mike.

    If you use the free version of ESXi (U4 and later versions), access to tools like the VIMA API are read-only.

    -Matt

    VCP, vExpert, Unix Geek

  • Unable to shrink the vista partition

    I have 200 GB of space free, but unable to shrink the partition through computer management. In the space to shrink, it shows 0.

    Thank you

    I have 200 GB of space free, but unable to shrink the partition through computer management. In the space to shrink, it shows 0.

    Thank you

    If you try to reduce the drive C please follow the steps below

    Shrink C: drive using the command prompt

    ===========================

    1. click the Start button, and then in the "Search" box type CMD.

    2 in the list above, under 'Programs', then right-click on CMD appears above and choose 'Run as administrator' and click 'continue '.

    3. in the opened window, type the following commands one by one and press ENTER after each command:

    C:

    CD %windir%\system32

    DiskPart

    the list volume

    Note: After you run the command 'list volume', it shows all the partition.

    Select the volume

    Note: Please replace the "" for the volume number of the C drive. For example, if drive C volume number is 2, we execute the command 'select volume 2 ".

    Shrink desired =

    Note: Please replace the "" disk space you want to reduce. After running the command, it will shrink MB of free space on drive c. (1 GB = 1024 MB)

    After the arrival of process control, restart the computer and check if we have shrunk the C drive successfully.


    If the problem persists C: drive shrink mode safe

    ======================

    1. reboot your computer and start pressing F8 on your keyboard. On a computer that is configured to start to multiple operating systems, you can press the F8 key when you see the boot menu.

    2. when the Windows Advanced Options menu appears, select Safe Mode, and then press ENTER.

    3 log on to Windows by using the administrator account or any account of a user with administrator privileges.

    After the system in Mode safe start, please try to shrink C: once again in fashion without failure.

    If this post can help solve your problem, please click the 'Mark as answer"If you find it useful, mark it as useful by clicking the 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Unable to save the name of file in Notepad with * (asterisk)

    We are unable to save the name of file in Notepad with * (asterisk)... with this offer special symbol... why?

    I had to ask about the asterisk "" * "symbol..."

    The asterisk is also a special character that cannot be used in a file name or a folder.

  • Unable to see the number of files on the hard disk on Windows 7 computer after the hard drive crashed windows xp system

    Original title: unable to see many folders on separate conputer

    I was using windows xp with service pack 3 and windows 7 on a separate booklets. Suddenly the laptop with XP crashed... The hard drive was Ok - cased with a USB port, but now on the connection with the computer laptop windows7 I saw no many records there - pls help

    the system crashed in fact as I was reading the (visualization of the pictures - JPEG, bmp and also some books .pdf) & suddenly.  In the Xp laptop NVIDIA graphics card was there.  He lacked RECENT documents, I see

    Hello

    Try the methods provided below and check if the problem persists.

    Method 1:

    You can make the disk check to make sure that the hard disk is not damaged.

    See the link below for more information on disk error checking in Windows XP.

    How to perform disk error checking in Windows XP

    http://support.Microsoft.com/kb/315265

    Note:

    Running chkdsk on the drive if bad sectors are found on the disk hard when chkdsk attempts to repair this area if all available on which data may be lost

    Method 2:

    This issue could also be linked to the virus/malware on the hard drive that may have caused the crash of the system.

    Click on the link below to download and run a full scan of the system using the Microsoft Safety Scanner.

    Microsoft safety scanner

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

    Note:

    The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

  • laptop computer (HDD 320GB) with windows 7-64 bit OS.iam unable to shrink the drive c less than 155 GB

    Hello Sir,

    recently I bought the laptop (320GB hard drive) with windows 7-64 bit OS.iam unable to shrink less than 155 GB c drive please help me. I want to reduce this to 90 GB

    Its also the case that win7 takes only supported 4 basic partitions and you can't mention what Disk Management displays for drive 0.

    And also if a pre-installed version of victory, if you manage to create partitions and at a later date, you will need to use your recovery disks, that may well destroy all created partitions.

    For what reason you want to partition?

  • Could not open the vmdk disk or one of the snapshot disks it depends on

    I upgraded vmware fusion 1.x to 2.08, because I was getting the message

    Cannot open disk - hard or one of the snapshot disks it depends on.

    Reason: Cannot lock the file.

    So I thought that would fix it, but it didn't. I can't figure out how to fix it either. At home, I'm a PC user and use VMware player, but at work, we use Mac OS X and the merger.

    Here ARE THE CONTENTS of my VMX file

    ____________________________________

    . Encoding = 'UTF-8 '.
    config.version = '8 '.
    virtualHW.version = "7".
    MemAllowAutoScaleDown = "FALSE".
    pciBridge0.present = 'TRUE '.
    insulation. Tools.hgfs.Disable = "FALSE".
    deploymentPlatform = "windows".
    virtualHW.productCompatibility = "hosted".
    RemoteDisplay.vnc.port = '0 '.
    Tools.Upgrade.Policy = "upgradeAtPowerCycle".
    powerType.powerOff = 'soft '.
    powerType.powerOn = 'soft '.
    powerType.suspend = 'soft '.
    powerType.reset = 'soft '.
    gui.exitonCLIHLT = 'TRUE '.
    displayName = "WindowsXP_IE7."
    NVRAM = "WindowsXP_IE7.nvram."
    memsize = "664".
    guestOS = "winxppro.
    Sound.Present = 'TRUE '.
    sound.fileName = "-1".
    Sound.AutoDetect = "TRUE".
    sound.startConnected = 'TRUE '.
    USB. Present = 'TRUE '.
    EHCI. Present = 'TRUE '.
    USB. Generic.AutoConnect = "FALSE".
    ide0:0. Present = 'TRUE '.
    ide0:0. FileName = "winxp - 000001.vmdk".
    ide0:1.present = 'TRUE '.
    ide0:1.startConnected = 'TRUE '.
    ide0:1.DeviceType = "cdrom-raw"
    ide0:1.AutoDetect = 'TRUE '.
    ethernet0. Present = 'TRUE '.
    ethernet0. ConnectionType = "bridged".
    ethernet0.startConnected = 'TRUE '.
    ethernet0.wakeOnPcktRcv = "FALSE".
    floppy0. Present = 'TRUE '.
    floppy0.startConnected = "FALSE".
    floppy0.filetype = 'file '.
    floppy0. FileName = ' / Users/user/Library/Parallels/winxp/unattended.fdd '.
    floppy0.clientDevice = "FALSE".

    ethernet0. AddressType = 'generated '.
    UUID. Location = "56 4 d a7 74 d0 99 9 c - d2 70 b1 d0 25 18 9 c 5A ac"
    UUID. BIOS = "56 4 d a7 74 d0 99 9 c - d2 70 b1 d0 25 18 9 c 5A ac"
    extendedConfigFile = "WindowsXP_IE7.vmxf".
    ide0:0. Redo = «»
    pciBridge0.pciSlotNumber = "17".
    ethernet0.pciSlotNumber = "32".
    sound.pciSlotNumber = "33".
    ehci.pciSlotNumber = "34".
    ethernet0.generatedAddress = "00: 0C: 29.6 d: 01:00.
    ethernet0.generatedAddressOffset = '0 '.
    ide0:1.filename = "automatic detection".
    tools.syncTime = "FALSE".

    checkpoint.vmState = «»

    sharedFolder.option = "onetimeEnabled".
    sharedFolder.maxNum = '1 '.
    sharedFolder0.present = 'TRUE '.
    sharedFolder0.enabled = 'TRUE '.
    sharedFolder0.readAccess = 'TRUE '.
    sharedFolder0.writeAccess = 'TRUE '.
    sharedFolder0.hostPath = ' / users/person/SharedVMWare.
    sharedFolder0.guestName = "SharedVMWare".
    sharedFolder0.expiration = "never".

    pciBridge4.present = 'TRUE '.
    pciBridge4.virtualDev = "pcieRootPort"
    pciBridge4.pciSlotNumber = "21".
    pciBridge4.functions = '8 '.
    pciBridge5.present = 'TRUE '.
    pciBridge5.virtualDev = "pcieRootPort"
    pciBridge5.pciSlotNumber = "22".
    pciBridge5.functions = '8 '.
    pciBridge6.present = 'TRUE '.
    pciBridge6.virtualDev = "pcieRootPort"
    pciBridge6.pciSlotNumber = "23".
    pciBridge6.functions = '8 '.
    pciBridge7.present = 'TRUE '.
    pciBridge7.virtualDev = "pcieRootPort"
    pciBridge7.pciSlotNumber = "24".
    pciBridge7.functions = '8 '.
    vmci0. Present = 'TRUE '.

    MKS. Enable3D = 'TRUE '.

    ethernet0.linkStatePropagation.enable = 'TRUE '.

    Marked as supposed to answer

    André

  • Unable to defragment the local disk c

    I tried more than 30 times to defragment the local C drive, nothing helps? Whenever I run the maint. Trouble clear fragmentation and turn around to record, local test shows disck C is highly fragmented. I also tried to reduce unnecessary programs, temporary files and useless with no effeect. any ideas out there?

    Ideas:

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem

    Hello

    1st race SFC and CheckDisk to ensure the integrity of disk and file. It is possible that you have something
    stop defragmentation run then after that these see the next message.

    Follow these steps to remove corruption and missing/damaged file system repair or replacement.

    Run DiskCleanup - start - all programs - Accessories - System Tools - Disk Cleanup

    Start - type in the search box - find command top - RIGHT CLICK – RUN AS ADMIN

    sfc/scannow

    How to analyze the log file entries that the Microsoft Windows Resource Checker (SFC.exe) program
    generates in Windows Vista cbs.log
    http://support.Microsoft.com/kb/928228

    Then, run checkdisk - schedule it to run at next boot, then apply OK your way out, then restart.

    How to run the check disk at startup in Vista
    http://www.Vistax64.com/tutorials/67612-check-disk-Chkdsk.html

    How to difficulty Chkdsk will not run at startup in Vista
    http://www.Vistax64.com/tutorials/130824-CHKDSK-will-not-run-startup-Vista.html

    ================================

    After the foregoing:

    How to run Disk Defragmenter from the Vista command prompt
    http://www.Vistax64.com/tutorials/81786-Disk-Defragmenter-command-prompt.html

    How to change the planning for Disk Defragmenter in Vista
    http://www.Vistax64.com/tutorials/72832-Disk-Defragmenter.html

    Here are excellent free 3rd defragmenters party which I use.

    Auslogics Disk Defrag - FREE - works easily and does a great job
    http://www.Auslogics.com/en/software/disk-defrag

    Very powerful - FREE - MyDefrag
    http://www.MyDefrag.com/

    Defraggler - free - defragment your entire hard drive or individual files - unique in the industry.
    This compact and portable Windows application supports NTFS and FAT32 file systems.
    http://www.Piriform.com/Defraggler

    Also check this and other "related links" here:

    How to run Disk Defragmenter from the Vista command prompt
    http://www.Vistax64.com/tutorials/81786-Disk-Defragmenter-command-prompt.html

    I hope this helps.

    Rob Brown - MS MVP - Windows Desktop Experience: Bike - Mark Twain said it right.

  • Unable to run the check disk due to having to restore the system

    When you start the system, it shows that disk needs the consistency check, but then it shows that the drive can be controlled due to the recent installation so system restore first. Although, when you try to restore the system, it is said there are disk errors that should check and may need repair in which it said restart your computer for this. When the computer is retsarted, it shows that the drive needs verification but still, says system needs to restore. So I can't run a check disk or restore the system. Help, please!

    Hi mustakimahmed,

    Welcome to the Microsoft Community and thanks for posting the question. Looks like you are not able to start from desktop due to errors in the disk check and not able to perform the system restore too.

    Try these methods and check:

    Method 1: Run the check disk in windows recovery (winre) mode. Follow these steps:

    (a) open command prompt.

    (b) use the following procedures:

    To repair errors, locate bad sectors and recover readable information, at the command prompt, type chkdsk volume: / r, and then press ENTER.

    Note: If one or more files on the hard disk are open, you will receive the following message is displayed: cannot run Chkdsk because the volume is in use by another process. You want to schedule this volume to check the next time the system restarts? (Y/N)

    Type Y, and then press ENTER to schedule the disk check, and then restart your computer to start the disk check.

    Note: If bad sectors are found in the hard drive, then it could try to fix this particular sector. If you have any data on that, it can get lost.

    Method 2:

    If method 1 fails, because you are not able to perform the disk, or restoring the system check, you may need to contact the manufacturer of the hard drive to get help. As the drive that you are using may be corrupted.

    Hope this information helps. If you have any other questions feel free to respond and we would be happy to help.

  • [msg.dictionary.load.openFailed] unable to open the config.ini file: the system cannot find the specified file.

    Hi, I have a virtual machine with Windows server 2008 R2 x 64-bit, with SharePoint 2010 installed, it was working perfectly before and now I get this error when I take it back.

    [msg.dictionary.load.openFailed] unable to open the file 'C:\Users\MyUserName\AppData\Roaming\VMware\config.ini': the system cannot find the specified file.

    consult the file and I have not found this config.ini file, so I created an empty file with the same name, but still, I get the error

    any suggestion

    Thank you

    Take a look at http://kb.vmware.com/kb/2032746 which describes this problem. You should also see what file is causing the problem when you check vmware.log virtual machine.

    André

  • Change migrated VM, vmdk disk file name / reference data store

    Hi all

    I'm trying to migrate a large number of virtual machines between physical datacenters (using SAN as the migration of mirroring method).

    The problem I encountered is that the operating system and data vmdk is localized on different data for each virtual computer warehouses. When break us the mirror and enter the VMX to the new location, the VMX file is a reference to the old path to the VMDK files (ie: the old data store in the center of source data). Only the VMDK files located in the same folder as the VMX file appear correctly in the vSphere - other client appears with the size of '0 GB' - as vSphere can't find referenced vmdk files.

    I don't want to update the VMX files manually, of course that's why I'm here. :-) But I struggled to find a way to update the hard drive using PowerCLI vmdk file name.

    I have to resort to pure PowerShell and update the file vmx in this way?

    I read all the blogs on the updating of the vmx files - but they have all shown to day extension data "extraconfig". for example:

    http://blogs.VMware.com/vipowershell/2008/09/changing-VMX-fi.html

    This extraconfig does not include the lines in the VMX file that specify the vmdk file name. for example:

    scsi0:1.filename = ' / vmfs/volumes/abcdefgh-503544b2-e46c-d41234567890/myVmName/myVmName_1.vmdk '.

    Ideally, I would have liked to use the command set-hard drive - unfortunately this is actually trying to move the non-existent vmdk to the new data store that I specify - rather than just update the baseline data store.

    I hope someone here can tell me an effective solution - without having to read in the vmx files and edit them using PowerShell.

    Oh, and I wrote a script to print the list of VMDK files attached to each virtual machine (in the datacenter from source before you remove migrated VMs)- so I have my CSV entry ready for use with a viable solution.

    Any help much appreciated!

    Thank you

    FaTony

    If you have the list with the VMDK from the source, and you know how to translate those paths to the new location, you should be able to use the Remove-hard drive and the hard drive New cmdlets.

    Have you tried that?

  • Unable to reduce the virtual disk (Linux RHE 5.4) with converter standalone 4.0.1

    I recently did a V2V with VMware Converter 4.0.1 to move a virtual machine running Linux Red Hat Enterprise VMware Server 2.0 on ESX 3.5 5.4.

    I was surprised to be unable to change the size of the partition. I have a 20 GB partition but only 3 GB is used. So I would reduce it to have a 5 GB partition.

    How can I change the size of partition? I know with Windows, it works well, why with Linux can not do the same?

    Thank you

    Olivier

    Found that in the Manual:

    Limitations of VMware Converter STandalone according to the OS you run the converter on:

    If you run:

    • Windows Server 2003

    • Windows XP

    • Windows Vista

    • Windows Server 2008

    Here are the limitations:

    • Disk cloning only for Linux clients.

    • Reconfiguration or customization for Linux clients is not supported.

    • Installation of the VMware Tools for clients Linux is not supported.

    AWo

    VCP 3 & 4

    Author @ vmwire.net

    \[:o]===\[o:]

    = You want to have this ad as a ringtone on your mobile phone? =

    = Send 'Assignment' to 911 for only $999999,99! =

Maybe you are looking for

  • Is it possible to simulate a XNET CAN device in MAX?

    I ordered one material OR 2 ports 9860-selectable OR XNET C Series Module and 2-wire transceiver capable of CAN - FD.  Of course, my time line for implementation is tight.  I would like to write the driver I need before that happens the hw.  For the

  • The deployment of TestStand-19049 utility error

    I'm running an error when you try to create a new deployment of TestStand (process model, UI, etc.).  Specifically, I want to install the user interface and to transform the model in an absolute path, and that's where I'm running into the issue.  Whe

  • DNS domain and the connection to the AC network

    I'm new to this so forgive me. We are upgrading the workgroup to active directory. We have defined the high field and connected a laptop computer to the domain. As part of this exercise, it must configure the DNS. A laptop that is connected to the wo

  • Windows 8, cannot get the display settings and the password for work

    I tried to change the timming 'turn off display' and "ask password on wake up" (fixed or not) to perform settings.  Whenever I stop using the computer a few seconds later, he goes to the locked screen.  The computer was a display at Costco, so maybe

  • Email hacking via BB blackBerry Smartphones

    My hotmail account has been sending messages, I think to my entire contact list. All of them say "sent from my Blackberry". The account is linked to my flashlight. The fake message asking people to follow a link to a site called www2.newsireport.com.