https://git.reactos.org/?p=reactos.git;a=commitdiff;h=dd2c7ea3ce05a74034e7c…
commit dd2c7ea3ce05a74034e7cd98af6a61b579a78c5a
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Tue Jun 7 23:08:05 2022 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Tue Jun 7 23:08:05 2022 +0200
[DISKPART] Add help text for the UNIQUEID DISK command
---
base/system/diskpart/diskpart_msg.mc | 288 +++++++++++++++++++++++++++++++++--
1 file changed, 277 insertions(+), 11 deletions(-)
diff --git a/base/system/diskpart/diskpart_msg.mc b/base/system/diskpart/diskpart_msg.mc
index 7fc7419829b..15ccd2c3117 100644
--- a/base/system/diskpart/diskpart_msg.mc
+++ b/base/system/diskpart/diskpart_msg.mc
@@ -2979,7 +2979,29 @@ Syntax: SET ID={<BYTE> | <GUID>} [OVERRIDE] [NOERR]
NOERR For scripting only. When an error is encountered, DiskPart
continues to process commands as if the error did not occur.
Without the NOERR parameter, an error causes DiskPart to exit
- with an error code.\r\n\r\n Intended for Original Equipment Manufacturer (OEM) use only.\r\n\r\n A partition must be selected for this operation to succeed.\r\n\r\n Caution:\r\n\r\n Changing partition type fields with this parameter might cause your\r\n computer to fail or be unable to start up. Unless you are an OEM or an\r\n IT professional experienced with GPT disks, do not change partition\r\n type fields on GPT disks using this pa [...]
+ with an error code.
+
+ Intended for Original Equipment Manufacturer (OEM) use only.
+
+ A partition must be selected for this operation to succeed.
+
+ Caution:
+
+ Changing partition type fields with this parameter might cause your
+ computer to fail or be unable to start up. Unless you are an OEM or an
+ IT professional experienced with GPT disks, do not change partition
+ type fields on GPT disks using this parameter. Instead, always use the
+ CREATE PARTITION EFI command to create EFI System partitions, the
+ CREATE PARTITION MSR command to create Microsoft Reserved partitions,
+ and the CREATE PARTITION PRIMARY command without the ID parameter to
+ create primary partitions on GPT disks.
+
+ This command does not work on dynamic disks nor on Microsoft Reserved
+ partitions.
+
+Example:
+ SET ID=07 OVERRIDE
+ SET ID=ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
.
Language=German
<Add SETID command help text here>
@@ -3051,32 +3073,276 @@ SymbolicName=MSG_COMMAND_UNIQUEID_DISK
Severity=Informational
Facility=System
Language=English
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=German
-<Add UNIQUEID DISK command help text here>
+ Dient zum Anzeigen oder Festlegen des GPT-Bezeichners (GPT =
+ GUID-Partitionstabelle) oder der MBR-Signatur (Master Boot Record)
+ für den Datenträger, der den Fokus hat.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ Für MBR-Datenträger können Sie einen Wert mit einer
+ Länge von vier Bytes (DWORD) im Hexadezimalformat für die
+ Signatur angeben.
+
+ Für GPT-Datenträger können Sie einen GUID für den
+ Bezeichner angeben.
+
+ NOERR Nur für Skripting. Wenn ein Fehler auftritt, setzt DiskPart
+ die Verarbeitung von Befehlen fort, als sei der Fehler nicht
+ aufgetreten. Ohne den Parameter NOERR wird DiskPart bei
+ einem Fehler mit dem entsprechenden Fehlercode beendet.
+
+ Damit dieser Vorgang erfolgreich ausgeführt werden kann, muss ein
+ Datenträger ausgewählt sein. Der Befehl kann für Basisdatenträger und
+ dynamische Datenträger verwendet werden.
+
+Beispiel:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Polish
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Portugese
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Romanian
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Russian
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Albanian
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Turkish
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Chinese
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
Language=Taiwanese
-<Add UNIQUEID DISK command help text here>
+ Displays or sets the GUID partition table (GPT) identifier or master boot
+ record (MBR) signature for the disk with focus.
+
+Syntax: UNIQUEID DISK [ID={<DWORD> | <GUID>}] [NOERR]
+
+ ID={<DWORD> | <GUID>}
+
+ For MBR disks, you can specify a four-byte (DWORD) value in
+ hexadecimal form for the signature.
+
+ For GPT disks, specify a GUID for the identifier.
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ A disk must be selected for this operation to succeed. This command works
+ on basic and dynamic disks.
+
+Example:
+
+ UNIQUEID DISK
+ UNIQUEID DISK ID=5f1b2c36
+ UNIQUEID DISK ID=baf784e7-6bbd-4cfb-aaac-e86c96e166ee
.
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=216d69c59e8809eb56880…
commit 216d69c59e8809eb56880be15b7605ec662d3871
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Jun 5 22:22:16 2022 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Jun 5 22:22:16 2022 +0200
[DISKPART] Add help text for the DETAIL DISK command
---
base/system/diskpart/diskpart_msg.mc | 115 +++++++++++++++++++++++++++++++----
1 file changed, 103 insertions(+), 12 deletions(-)
diff --git a/base/system/diskpart/diskpart_msg.mc b/base/system/diskpart/diskpart_msg.mc
index d079e2dc190..7fc7419829b 100644
--- a/base/system/diskpart/diskpart_msg.mc
+++ b/base/system/diskpart/diskpart_msg.mc
@@ -531,7 +531,7 @@ Syntax: CLEAN [ALL]
that had been previously applied to the disk. The disk's state after
cleaning the disk is 'UNINITIALIZED'.
-Example:
+Beispiel:
CLEAN
.
@@ -1047,7 +1047,7 @@ Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
Partitionen könnnen nicht von dynamischen Datenträgern gelöscht oder auf
dynamischen Datenträgern erstellt werden.
-Example:
+Beispiel:
DELETE PARTITION
.
@@ -1302,34 +1302,125 @@ SymbolicName=MSG_COMMAND_DETAIL_DISK
Severity=Informational
Facility=System
Language=English
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=German
-<Add DETAIL DISK command help text here>
+ Zeigt die Eigenschaften des ausgewählten Datenträgers und die Liste der
+ Volumes auf dem Datenträger an.
+
+Syntax: DETAIL DISK
+
+ Damit dieser Vorgang erfolgreich ausgeführt werden kann, muss ein
+ Datenträger ausgewählt sein.
+
+Beispiel:
+
+ DETAIL DISK
.
Language=Polish
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Portugese
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Romanian
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Russian
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Albanian
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Turkish
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Chinese
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
Language=Taiwanese
-<Add DETAIL DISK command help text here>
+ Displays the properties of the selected disk and the list of volumes on
+ the disk.
+
+Syntax: DETAIL DISK
+
+ A disk must be selected for this operation to succeed.
+
+Example:
+
+ DETAIL DISK
.
MessageId=10020
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=be88af54e7382703334ef…
commit be88af54e7382703334efc89f0fccaa45e8dc86e
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Jun 5 18:23:08 2022 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Jun 5 18:23:08 2022 +0200
[DISKPART] Implements part of the FILESYSTEMS command
---
base/system/diskpart/diskpart_msg.mc | 364 +++++++++++++++++++++++++++++++++--
base/system/diskpart/filesystems.c | 25 ++-
base/system/diskpart/lang/de-DE.rc | 8 +
base/system/diskpart/lang/en-US.rc | 8 +
base/system/diskpart/lang/pl-PL.rc | 8 +
base/system/diskpart/lang/pt-PT.rc | 8 +
base/system/diskpart/lang/ro-RO.rc | 8 +
base/system/diskpart/lang/ru-RU.rc | 8 +
base/system/diskpart/lang/sq-AL.rc | 8 +
base/system/diskpart/lang/tr-TR.rc | 8 +
base/system/diskpart/lang/zh-CN.rc | 8 +
base/system/diskpart/lang/zh-TW.rc | 8 +
base/system/diskpart/resource.h | 6 +
13 files changed, 454 insertions(+), 21 deletions(-)
diff --git a/base/system/diskpart/diskpart_msg.mc b/base/system/diskpart/diskpart_msg.mc
index 248238e30ef..d079e2dc190 100644
--- a/base/system/diskpart/diskpart_msg.mc
+++ b/base/system/diskpart/diskpart_msg.mc
@@ -998,34 +998,266 @@ SymbolicName=MSG_COMMAND_DELETE_PARTITION
Severity=Informational
Facility=System
Language=English
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=German
-<Add DELETE PARTITION command help text here>
+Löscht die Partition, die den Fokus hat.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR Nur für Skripting. Bei einem Fehler setzt DiskPart die
+ Verarbeitung von Befehlen fort, als sei der Fehler nicht
+ aufgetreten. Ohne den Parameter NOERR wird DiskPart bei
+ einem Fehler mit dem entsprechenden Fehlercode beendet.
+
+ OVERRIDE Ermöglicht DiskPart das Löschen einer beliebigen Partition
+ unabhängig von deren Typ. Normalerweise gestattet DiskPart
+ nur das Löschen bekannter Datenpartitionen.
+
+ Sie können keine Systempartition, Startpartition oder Partition löschen,
+ die eine aktive Auslagerungsdatei oder ein Absturzabbild (Speicherabbild)
+ enthält.
+
+ Damit dieser Vorgang erfolgreich ausgeführt werden kann, muss eine
+ Partition ausgewählt sein.
+
+ Partitionen könnnen nicht von dynamischen Datenträgern gelöscht oder auf
+ dynamischen Datenträgern erstellt werden.
+
+Example:
+
+ DELETE PARTITION
.
Language=Polish
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Portugese
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Romanian
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Russian
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Albanian
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Turkish
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Chinese
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
Language=Taiwanese
-<Add DELETE PARTITION command help text here>
+Deletes the partition with focus.
+
+Syntax: DELETE PARTITION [NOERR] [OVERRIDE]
+
+ NOERR For scripting only. When an error is encountered, DiskPart
+ continues to process commands as if the error did not occur.
+ Without the NOERR parameter, an error causes DiskPart to exit
+ with an error code.
+
+ OVERRIDE Enables DiskPart to delete any partition regardless of type.
+ Typically, DiskPart only permits you to delete known data
+ partitions.
+
+ You cannot delete the system partition, boot partition, or any partition
+ that contains the active paging file or crash dump (memory dump) filed.
+
+ A partition must be selected for this operation to succeed.
+
+ Partitions cannot be deleted from dynamic disks or created on dynamic
+ disks.
+
+Example:
+
+ DELETE PARTITION
.
@@ -1380,34 +1612,126 @@ SymbolicName=MSG_COMMAND_FILESYSTEMS
Severity=Informational
Facility=System
Language=English
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=German
-<Add FILESYSTEMS command help text here>
+ Zeigt Informationen zum aktuelle Dateisystem für das ausgewählte
+ Volume und die unterstützten Dateisysteme zum Formatieren des
+ Volumes an.
+
+Syntax: FILESYSTEMS
+
+ Damit diesr Vorgang erfolgreich ausgeführt werden kann, muss ein
+ Volume ausgewählt sein.
+
+Beispiel:
+
+ FILESYSTEMS
.
Language=Polish
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Portugese
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Romanian
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Russian
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Albanian
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Turkish
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Chinese
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
Language=Taiwanese
-<Add FILESYSTEMS command help text here>
+ Displays information about the current file system for the selected
+ volume, and the supported file systems for formatting the volume.
+
+Syntax: FILESYSTEMS
+
+ A volume must be selected for this operation to succeed.
+
+Example:
+
+ FILESYSTEMS
.
diff --git a/base/system/diskpart/filesystems.c b/base/system/diskpart/filesystems.c
index 835b77c4ea8..9257068746a 100644
--- a/base/system/diskpart/filesystems.c
+++ b/base/system/diskpart/filesystems.c
@@ -8,7 +8,30 @@
#include "diskpart.h"
-BOOL filesystems_main(INT argc, LPWSTR *argv)
+#define NDEBUG
+#include <debug.h>
+
+
+BOOL
+filesystems_main(
+ _In_ INT argc,
+ _In_ PWSTR *argv)
{
+ if (CurrentVolume == NULL)
+ {
+ ConResPuts(StdOut, IDS_SELECT_NO_VOLUME);
+ return TRUE;
+ }
+
+ ConPuts(StdOut, L"\n");
+ ConResPuts(StdOut, IDS_FILESYSTEMS_CURRENT);
+ ConPuts(StdOut, L"\n");
+ ConResPrintf(StdOut, IDS_FILESYSTEMS_TYPE, (CurrentVolume->pszFilesystem == NULL) ? L"RAW" : CurrentVolume->pszFilesystem);
+ ConResPrintf(StdOut, IDS_FILESYSTEMS_CLUSTERSIZE);
+
+ ConPuts(StdOut, L"\n");
+ ConResPuts(StdOut, IDS_FILESYSTEMS_FORMATTING);
+ ConPuts(StdOut, L"\n");
+
return TRUE;
}
diff --git a/base/system/diskpart/lang/de-DE.rc b/base/system/diskpart/lang/de-DE.rc
index 545a3550203..6265a226f9a 100644
--- a/base/system/diskpart/lang/de-DE.rc
+++ b/base/system/diskpart/lang/de-DE.rc
@@ -53,6 +53,14 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Aktuelles Dateisystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Zur Formatierung unterstützte Dateisysteme\n"
+ IDS_FILESYSTEMS_TYPE "Typ : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Größe der Zuordnungseinheit: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/en-US.rc b/base/system/diskpart/lang/en-US.rc
index 6657371ba78..a52b7a65b51 100644
--- a/base/system/diskpart/lang/en-US.rc
+++ b/base/system/diskpart/lang/en-US.rc
@@ -53,6 +53,14 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/pl-PL.rc b/base/system/diskpart/lang/pl-PL.rc
index 296bbf2162b..db7010f8a56 100644
--- a/base/system/diskpart/lang/pl-PL.rc
+++ b/base/system/diskpart/lang/pl-PL.rc
@@ -53,6 +53,14 @@ BEGIN
IDS_DETAIL_NO_VOLUME "\nThere is no volume associated with this partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/pt-PT.rc b/base/system/diskpart/lang/pt-PT.rc
index fbeb8f17e51..dce4306f7d4 100644
--- a/base/system/diskpart/lang/pt-PT.rc
+++ b/base/system/diskpart/lang/pt-PT.rc
@@ -70,6 +70,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/ro-RO.rc b/base/system/diskpart/lang/ro-RO.rc
index aef9208a70e..61163ea77bd 100644
--- a/base/system/diskpart/lang/ro-RO.rc
+++ b/base/system/diskpart/lang/ro-RO.rc
@@ -70,6 +70,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/ru-RU.rc b/base/system/diskpart/lang/ru-RU.rc
index a567169c125..a5b1261311a 100644
--- a/base/system/diskpart/lang/ru-RU.rc
+++ b/base/system/diskpart/lang/ru-RU.rc
@@ -70,6 +70,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/sq-AL.rc b/base/system/diskpart/lang/sq-AL.rc
index 1be40265462..3ba5d1c51af 100644
--- a/base/system/diskpart/lang/sq-AL.rc
+++ b/base/system/diskpart/lang/sq-AL.rc
@@ -72,6 +72,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/tr-TR.rc b/base/system/diskpart/lang/tr-TR.rc
index 1e65d05eff2..1e2728f2ff1 100644
--- a/base/system/diskpart/lang/tr-TR.rc
+++ b/base/system/diskpart/lang/tr-TR.rc
@@ -70,6 +70,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/zh-CN.rc b/base/system/diskpart/lang/zh-CN.rc
index 67df9b92f1c..6d5d13322a1 100644
--- a/base/system/diskpart/lang/zh-CN.rc
+++ b/base/system/diskpart/lang/zh-CN.rc
@@ -77,6 +77,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/lang/zh-TW.rc b/base/system/diskpart/lang/zh-TW.rc
index 7e51bc5d8c8..b3c84a90ee7 100644
--- a/base/system/diskpart/lang/zh-TW.rc
+++ b/base/system/diskpart/lang/zh-TW.rc
@@ -71,6 +71,14 @@ BEGIN
IDS_LIST_VOLUME_FORMAT "%c Volume %-3lu %c %-11.11s %-5s %-10.10s %4I64u %-2s\n"
END
+STRINGTABLE
+BEGIN
+ IDS_FILESYSTEMS_CURRENT "Current Filesystem\n"
+ IDS_FILESYSTEMS_FORMATTING "Filesystems available for formatting\n"
+ IDS_FILESYSTEMS_TYPE "Type : %s\n"
+ IDS_FILESYSTEMS_CLUSTERSIZE "Cluster size: \n"
+END
+
STRINGTABLE
BEGIN
IDS_HELP_FORMAT_STRING "%-11.11s - %s"
diff --git a/base/system/diskpart/resource.h b/base/system/diskpart/resource.h
index 44329febfdf..dbf28649036 100644
--- a/base/system/diskpart/resource.h
+++ b/base/system/diskpart/resource.h
@@ -24,6 +24,12 @@
#define IDS_DELETE_PARTITION_FAIL 1070
#define IDS_DELETE_PARTITION_SUCCESS 1071
+#define IDS_FILESYSTEMS_CURRENT 1090
+#define IDS_FILESYSTEMS_FORMATTING 1091
+#define IDS_FILESYSTEMS_TYPE 1092
+#define IDS_FILESYSTEMS_CLUSTERSIZE 1093
+
+
#define IDS_DETAIL_INFO_DISK_ID 1107
#define IDS_DETAIL_INFO_TYPE 1108
#define IDS_DETAIL_INFO_STATUS 1109
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=58eb4e5bde8df108ab4b9…
commit 58eb4e5bde8df108ab4b91ba319c343257e21204
Author: Eric Kohl <eric.kohl(a)reactos.org>
AuthorDate: Sun Jun 5 08:47:22 2022 +0200
Commit: Eric Kohl <eric.kohl(a)reactos.org>
CommitDate: Sun Jun 5 08:47:46 2022 +0200
[DISKPART] Add success and failure messages for the DELETE PARTITION command
---
base/system/diskpart/delete.c | 10 +++++++++-
base/system/diskpart/lang/de-DE.rc | 6 ++++++
base/system/diskpart/lang/en-US.rc | 6 ++++++
base/system/diskpart/lang/pl-PL.rc | 6 ++++++
base/system/diskpart/lang/pt-PT.rc | 6 ++++++
base/system/diskpart/lang/ro-RO.rc | 6 ++++++
base/system/diskpart/lang/ru-RU.rc | 6 ++++++
base/system/diskpart/lang/sq-AL.rc | 6 ++++++
base/system/diskpart/lang/tr-TR.rc | 6 ++++++
base/system/diskpart/lang/zh-CN.rc | 6 ++++++
base/system/diskpart/lang/zh-TW.rc | 6 ++++++
base/system/diskpart/resource.h | 2 ++
12 files changed, 71 insertions(+), 1 deletion(-)
diff --git a/base/system/diskpart/delete.c b/base/system/diskpart/delete.c
index c17498bd863..6841b3d9a27 100644
--- a/base/system/diskpart/delete.c
+++ b/base/system/diskpart/delete.c
@@ -29,6 +29,7 @@ DeletePartition(
PPARTENTRY NextPartEntry;
PPARTENTRY LogicalPartEntry;
PLIST_ENTRY Entry;
+ NTSTATUS Status;
DPRINT("DeletePartition()\n");
@@ -139,7 +140,14 @@ DeletePartition(
CurrentPartition = NULL;
UpdateDiskLayout(CurrentDisk);
- WritePartitions(CurrentDisk);
+ Status = WritePartitions(CurrentDisk);
+ if (!NT_SUCCESS(Status))
+ {
+ ConResPuts(StdOut, IDS_DELETE_PARTITION_FAIL);
+ return TRUE;
+ }
+
+ ConResPuts(StdOut, IDS_DELETE_PARTITION_SUCCESS);
return TRUE;
}
diff --git a/base/system/diskpart/lang/de-DE.rc b/base/system/diskpart/lang/de-DE.rc
index 4b7b5a2836d..545a3550203 100644
--- a/base/system/diskpart/lang/de-DE.rc
+++ b/base/system/diskpart/lang/de-DE.rc
@@ -21,6 +21,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDie angegebene Partition wurde erfolgreich erstellt.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDie gewählte Partition konnte nicht gelöscht werden.\nVergewissern Sie sich, dass die Partition wirklich gelöscht werden kann.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDer gewählte Partition wurde erfolgreich gelöscht.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/en-US.rc b/base/system/diskpart/lang/en-US.rc
index 07f4c0a5fe7..6657371ba78 100644
--- a/base/system/diskpart/lang/en-US.rc
+++ b/base/system/diskpart/lang/en-US.rc
@@ -21,6 +21,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/pl-PL.rc b/base/system/diskpart/lang/pl-PL.rc
index 662761d248c..296bbf2162b 100644
--- a/base/system/diskpart/lang/pl-PL.rc
+++ b/base/system/diskpart/lang/pl-PL.rc
@@ -21,6 +21,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/pt-PT.rc b/base/system/diskpart/lang/pt-PT.rc
index 176a551d0e6..fbeb8f17e51 100644
--- a/base/system/diskpart/lang/pt-PT.rc
+++ b/base/system/diskpart/lang/pt-PT.rc
@@ -23,6 +23,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/ro-RO.rc b/base/system/diskpart/lang/ro-RO.rc
index b867bd0befe..aef9208a70e 100644
--- a/base/system/diskpart/lang/ro-RO.rc
+++ b/base/system/diskpart/lang/ro-RO.rc
@@ -23,6 +23,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/ru-RU.rc b/base/system/diskpart/lang/ru-RU.rc
index 9867d475e57..a567169c125 100644
--- a/base/system/diskpart/lang/ru-RU.rc
+++ b/base/system/diskpart/lang/ru-RU.rc
@@ -23,6 +23,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/sq-AL.rc b/base/system/diskpart/lang/sq-AL.rc
index 9e6948e20a8..1be40265462 100644
--- a/base/system/diskpart/lang/sq-AL.rc
+++ b/base/system/diskpart/lang/sq-AL.rc
@@ -25,6 +25,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/tr-TR.rc b/base/system/diskpart/lang/tr-TR.rc
index 45a8e740645..1e65d05eff2 100644
--- a/base/system/diskpart/lang/tr-TR.rc
+++ b/base/system/diskpart/lang/tr-TR.rc
@@ -23,6 +23,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/zh-CN.rc b/base/system/diskpart/lang/zh-CN.rc
index 810919c5b40..67df9b92f1c 100644
--- a/base/system/diskpart/lang/zh-CN.rc
+++ b/base/system/diskpart/lang/zh-CN.rc
@@ -30,6 +30,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/lang/zh-TW.rc b/base/system/diskpart/lang/zh-TW.rc
index bfc4599ee8d..7e51bc5d8c8 100644
--- a/base/system/diskpart/lang/zh-TW.rc
+++ b/base/system/diskpart/lang/zh-TW.rc
@@ -24,6 +24,12 @@ BEGIN
IDS_CREATE_PARTITION_SUCCESS "\nDiskPart succeeded in creating the specified partition.\n"
END
+STRINGTABLE
+BEGIN
+ IDS_DELETE_PARTITION_FAIL "\nDiskPart failed to delete the selected partition.\nPlease make sure the selected partition is valid to delete.\n"
+ IDS_DELETE_PARTITION_SUCCESS "\nDiskPart successfully deleted the selected partition.\n"
+END
+
/* Disk Information Labels */
STRINGTABLE
BEGIN
diff --git a/base/system/diskpart/resource.h b/base/system/diskpart/resource.h
index 3081fc4ef87..44329febfdf 100644
--- a/base/system/diskpart/resource.h
+++ b/base/system/diskpart/resource.h
@@ -21,6 +21,8 @@
#define IDS_CREATE_PARTITION_FAIL 1050
#define IDS_CREATE_PARTITION_SUCCESS 1051
+#define IDS_DELETE_PARTITION_FAIL 1070
+#define IDS_DELETE_PARTITION_SUCCESS 1071
#define IDS_DETAIL_INFO_DISK_ID 1107
#define IDS_DETAIL_INFO_TYPE 1108