VirtualBox

Ticket #9705 (new defect)

Opened 3 years ago

Invalid parameter '6' when using createrawvmdk -partitions 5,6,7

Reported by: rhaines Owned by:
Priority: major Component: other
Version: VirtualBox 4.1.4 Keywords:
Cc: Guest type: other
Host type: other

Description

This is on Windows 7 with versions 4.1.2 and 4.1.4

If I run: .\VBoxManage.exe internalcommands createrawvmdk -filename C:\Users\me\disc.vmdk -rawdisk \.\PhysicalDrive0 -partitions 5,6,7

I get the following error:

Oracle VM VirtualBox Command Line Management Interface Version 4.1.4
(C) 2005-2011 Oracle Corporation
All rights reserved.

Usage: VBoxManage internalcommands <command> [command arguments]

Commands:

  createrawvmdk -filename <filename> -rawdisk <diskname>
                [-partitions <list of partition numbers> [-mbr <filename>] ]
                [-relative]
       Creates a new VMDK image which gives access to an entite host disk (if
       the parameter -partitions is not specified) or some partitions of a
       host disk. If access to individual partitions is granted, then the
       parameter -mbr can be used to specify an alternative MBR to be used
       (the partitioning information in the MBR file is ignored).
       The diskname is on Linux e.g. /dev/sda, and on Windows e.g.
       \.\PhysicalDrive0).
       On Linux or FreeBSD host the parameter -relative causes a VMDK file to
       be created which refers to individual partitions instead to the entire
       disk.
       The necessary partition numbers can be queried with
         VBoxManage internalcommands listpartitions

WARNING: This is a development tool and shall only be used to analyse
         problems. It is completely unsupported and will change in
         incompatible ways without warning.

Syntax error: Invalid parameter '6'

If I run it with a single partition as opposed to a list it works, eg: .\VBoxManage.exe internalcommands createrawvmdk -filename C:\Users\me\disc.vmdk -rawdisk \.\PhysicalDrive0 -partitions 6

But any combination of partitions in a list produces the above. I have tried other list separators (-_/\:;<space>) with no luck and I have also tried quoting the list, eg: .\VBoxManage.exe internalcommands createrawvmdk -filename C:\Users\me\disc.vmdk -rawdisk \.\PhysicalDrive0 -partitions '5,6,7'

But that gives an even more basic error:

VBoxManage.exe: error: VMDK: could not create new file 'C:\Users\me\disk.vmdk'
VBoxManage.exe: error: Error code VERR_PATH_NOT_FOUND at D:\tinderbox\win-4.1\src\VBox\Storage\VMDK.cpp(3673) in function vmdkCreateRawImage
VBoxManage.exe: error: Cannot create the raw disk VMDK: VERR_PATH_NOT_FOUND
VBoxManage.exe: error: The raw disk vmdk file was not created

Any ideas?

Many thanks, Rob

Note: See TracTickets for help on using tickets.

www.oracle.com
ContactPrivacy policyTerms of Use