- Timestamp:
- Mar 12, 2022 7:40:19 PM (3 years ago)
- svn:sync-xref-src-repo-rev:
- 150459
- Location:
- trunk
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/doc/manual/Config.kmk
r94202 r94203 72 72 man_VBoxManage-mediumproperty.xml \ 73 73 man_VBoxManage-encryptmedium.xml \ 74 man_VBoxManage-checkmediumpwd.xml 74 man_VBoxManage-checkmediumpwd.xml \ 75 man_VBoxManage-convertfromraw.xml 75 76 76 77 ## List of user manual XML files. -
trunk/doc/manual/en_US/man_VBoxManage-convertfromraw.xml
r82969 r94203 20 20 <refentry id="vboxmanage-convertfromraw" lang="en"> 21 21 <refentryinfo> 22 <pubdate> September 2019</pubdate>22 <pubdate>$Date$</pubdate> 23 23 <title>VBoxManage convertfromraw</title> 24 24 </refentryinfo> … … 32 32 <refname>VBoxManage-convertfromraw</refname> 33 33 <refpurpose>convert a raw disk image to a virtual disk image</refpurpose> 34 <refclass> Oracle VM VirtualBox</refclass>34 <refclass>&product-name;</refclass> 35 35 </refnamediv> 36 36 -
trunk/doc/manual/en_US/user_VBoxManage.xml
r94202 r94203 1097 1097 <xi:include href="user_man_VBoxManage-checkmediumpwd.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1098 1098 1099 <sect1 id="vboxmanage-convertfromraw"> 1100 1101 <title>VBoxManage convertfromraw</title> 1102 1103 <para> 1104 This command converts a raw disk image to an &product-name; Disk 1105 Image (VDI) file. The syntax is as follows: 1106 </para> 1107 1108 <screen>VBoxManage convertfromraw <filename> <outputfile> 1109 [--format VDI|VMDK|VHD] 1110 [--variant Standard,Fixed,Split2G,Stream,ESX] 1111 [--uuid <uuid>] 1112 VBoxManage convertfromraw stdin <outputfile> <bytes> 1113 [--format VDI|VMDK|VHD] 1114 [--variant Standard,Fixed,Split2G,Stream,ESX] 1115 [--uuid <uuid>]</screen> 1116 1117 <para> 1118 The parameters are as follows: 1119 </para> 1120 1121 <variablelist> 1122 1123 <varlistentry> 1124 <term> 1125 <computeroutput>--bytes</computeroutput> 1126 </term> 1127 1128 <listitem> 1129 <para> 1130 The size of the image file, in bytes, provided through 1131 stdin. 1132 </para> 1133 </listitem> 1134 </varlistentry> 1135 1136 <varlistentry> 1137 <term> 1138 <computeroutput>--format</computeroutput> 1139 </term> 1140 1141 <listitem> 1142 <para> 1143 Select the disk image format to create. The default format 1144 is VDI. Other options are VMDK and VHD. 1145 </para> 1146 </listitem> 1147 </varlistentry> 1148 1149 <varlistentry> 1150 <term> 1151 <computeroutput>--variant</computeroutput> 1152 </term> 1153 1154 <listitem> 1155 <para> 1156 Choose a file format variant for the output file. This is a 1157 comma-separated list of variant flags. Not all combinations 1158 are supported, and specifying inconsistent flags will result 1159 in an error message. 1160 </para> 1161 </listitem> 1162 </varlistentry> 1163 1164 <varlistentry> 1165 <term> 1166 <computeroutput>--uuid</computeroutput> 1167 </term> 1168 1169 <listitem> 1170 <para> 1171 Specify the UUID of the output file. 1172 </para> 1173 </listitem> 1174 </varlistentry> 1175 1176 </variablelist> 1177 1178 <para> 1179 The <command>stdin</command> form of the command forces 1180 <command>VBoxManage</command> to read the content of the disk 1181 image from standard input. This useful when using the command in a 1182 pipe. 1183 </para> 1184 1185 <note> 1186 <para> 1187 For compatibility with earlier versions of &product-name;, the 1188 <command>convertdd</command> command is also supported and 1189 mapped internally to the <command>convertfromraw</command> 1190 command. 1191 </para> 1192 </note> 1193 1194 </sect1> 1099 <xi:include href="user_man_VBoxManage-convertfromraw.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> 1195 1100 1196 1101 <xi:include href="user_man_VBoxManage-mediumio.xml" xpointer="element(/1)" xmlns:xi="http://www.w3.org/2001/XInclude" /> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r94202 r94203 254 254 { "bandwidthctl", USAGE_S_NEWCMD, HELP_CMD_BANDWIDTHCTL, handleBandwidthControl, 0 }, 255 255 { "debugvm", USAGE_S_NEWCMD, HELP_CMD_DEBUGVM, handleDebugVM, 0 }, 256 { "convertfromraw", USAGE_ CONVERTFROMRAW, VBMG_CMD_TODO, handleConvertFromRaw, VBMG_CMD_F_NO_COM },257 { "convertdd", USAGE_ CONVERTFROMRAW, VBMG_CMD_TODO, handleConvertFromRaw, VBMG_CMD_F_NO_COM },256 { "convertfromraw", USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw, VBMG_CMD_F_NO_COM }, 257 { "convertdd", USAGE_S_NEWCMD,HELP_CMD_CONVERTFROMRAW, handleConvertFromRaw, VBMG_CMD_F_NO_COM }, 258 258 { "usbdevsource", USAGE_USBDEVSOURCE, VBMG_CMD_TODO, handleUSBDevSource, 0 }, 259 259 { "cloudprofile", USAGE_S_NEWCMD, HELP_CMD_CLOUDPROFILE, handleCloudProfile, 0 }, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h
r94202 r94203 108 108 USAGE_I_LOADMAP, 109 109 USAGE_I_SETHDUUID, 110 USAGE_CONVERTFROMRAW,111 110 USAGE_I_LISTPARTITIONS, 112 111 USAGE_I_CREATERAWVMDK, -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r94202 r94203 1233 1233 case 'u': // --uuid 1234 1234 if (RT_FAILURE(RTUuidFromStr(&uuid, ValueUnion.psz))) 1235 return errorSyntax( USAGE_CONVERTFROMRAW,Disk::tr("Invalid UUID '%s'"), ValueUnion.psz);1235 return errorSyntax(Disk::tr("Invalid UUID '%s'"), ValueUnion.psz); 1236 1236 pUuid = &uuid; 1237 1237 break; … … 1261 1261 filesize = ValueUnion.psz; 1262 1262 else 1263 return errorSyntax( USAGE_CONVERTFROMRAW,Disk::tr("Invalid parameter '%s'"), ValueUnion.psz);1263 return errorSyntax(Disk::tr("Invalid parameter '%s'"), ValueUnion.psz); 1264 1264 break; 1265 1265 1266 1266 default: 1267 return errorGetOpt( USAGE_CONVERTFROMRAW,c, &ValueUnion);1267 return errorGetOpt(c, &ValueUnion); 1268 1268 } 1269 1269 } 1270 1270 1271 1271 if (!srcfilename || !dstfilename || (fReadFromStdIn && !filesize)) 1272 return errorSyntax( USAGE_CONVERTFROMRAW,Disk::tr("Incorrect number of parameters"));1272 return errorSyntax(Disk::tr("Incorrect number of parameters")); 1273 1273 RTStrmPrintf(g_pStdErr, Disk::tr("Converting from raw image file=\"%s\" to file=\"%s\"...\n"), 1274 1274 srcfilename, dstfilename); -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp
r94202 r94203 639 639 "\n", SEP); 640 640 641 if (enmCommand == USAGE_CONVERTFROMRAW || enmCommand == USAGE_S_ALL)642 RTStrmPrintf(pStrm,643 "%s convertfromraw %s <filename> <outputfile>\n"644 " [--format VDI|VMDK|VHD]\n"645 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n"646 " [--uuid <uuid>]\n"647 "%s convertfromraw %s stdin <outputfile> <bytes>\n"648 " [--format VDI|VMDK|VHD]\n"649 " [--variant Standard,Fixed,Split2G,Stream,ESX]\n"650 " [--uuid <uuid>]\n"651 "\n", SEP, SEP);652 653 641 if (enmCommand == USAGE_GETEXTRADATA || enmCommand == USAGE_S_ALL) 654 642 RTStrmPrintf(pStrm,
Note:
See TracChangeset
for help on using the changeset viewer.