Não é possível excluir a partição no diskpart - argumento inválido?

5

Estou tentando excluir uma partição em um UFD usando o Diskpart. Eu estou correndo através de um prompt CMD elevado. Mas o problema é que relata que estou usando um argumento inválido. Por favor, veja o log abaixo.

Microsoft Windows [Version 6.3.9600]
(c) 2013 Microsoft Corporation. All rights reserved.

C:\WINDOWS\system32>diskpart

Microsoft DiskPart version 6.3.9600

Copyright (C) 1999-2013 Microsoft Corporation.
On computer: SKANNING24

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          465 GB  1024 KB        *
  Disk 1    Online         3819 MB  3670 MB        *

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary             49 MB    64 KB
  Partition 2    System              98 MB    51 MB

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
* Partition 1    Primary             49 MB    64 KB
  Partition 2    System              98 MB    51 MB

DISKPART> delete

Microsoft DiskPart version 6.3.9600

DISK        - Delete a missing disk from the disk list.
PARTITION   - Delete the selected partition.
VOLUME      - Delete the selected volume.

DISKPART> delete partition 1

The arguments specified for this command are not valid.
For more information on the command type: HELP DELETE PARTITION

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
* Partition 1    Primary             49 MB    64 KB
  Partition 2    System              98 MB    51 MB

DISKPART> select partition 2

Partition 2 is now the selected partition.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary             49 MB    64 KB
* Partition 2    System              98 MB    51 MB

DISKPART> delete partition 2

The arguments specified for this command are not valid.
For more information on the command type: HELP DELETE PARTITION

DISKPART> help delete partition

    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

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary             49 MB    64 KB
* Partition 2    System              98 MB    51 MB

DISKPART> delete partition 2 override

The arguments specified for this command are not valid.
For more information on the command type: HELP DELETE PARTITION

DISKPART>

Q: Qual é o "argumento" neste caso? E por que não é válido?

Esta não é a primeira vez que estou usando o Diskpart, já o usei várias vezes antes, sempre que havia partições de recuperação ocultas especiais em uma unidade de disco que não podiam ser removidas com ferramentas de disco convencionais como Diskmgmt.msc. Então, tenho certeza que acertei a sintaxe e estou fazendo tudo de acordo com as páginas de ajuda.

Estou trabalhando no Windows 8.1 e o UFD é um SanDisk Cruzer Blade de 4 GB, novo. Eu só tinha o PassMark Memtest86 instalado e isso é tudo que eu já usei. Eu tenho formatado o UFD hoje para remover o Memtest86 (formato rápido no Explorer), mas uma partição EFI oculta foi deixada no UFD. Veja a captura de tela abaixo.

    
por Samir 13.03.2014 / 11:50

1 resposta

7

Argumento inválido! Eu entendi agora.

Não há necessidade de anexar o comando ao número da partição quando a partição já estiver selecionada.

Em vez de:

select partition 2
delete partition 2 override

Use isto:

select partition 2
delete partition override

Tão simples quanto isso ...

Microsoft Windows [Version 6.2.9200]
(c) 2012 Microsoft Corporation. Med ensamrätt.

C:\Windows\system32>diskpart

Microsoft DiskPart version 6.2.9200

Copyright (C) 1999-2012 Microsoft Corporation.
On computer: SKANNING26

DISKPART> list disk

  Disk ###  Status         Size     Free     Dyn  Gpt
  --------  -------------  -------  -------  ---  ---
  Disk 0    Online          698 GB      0 B        *
  Disk 1    Online         3819 MB  3670 MB        *

DISKPART> select disk 1

Disk 1 is now the selected disk.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 1    Primary             49 MB    64 KB
  Partition 2    System              98 MB    51 MB

DISKPART> select partition 1

Partition 1 is now the selected partition.

DISKPART> delete partition 1

The arguments specified for this command are not valid.
For more information on the command type: HELP DELETE PARTITION

DISKPART> delete partition

DiskPart successfully deleted the selected partition.

DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
  Partition 2    System              98 MB    51 MB

DISKPART> select partition 2

Partition 2 is now the selected partition.

DISKPART> delete partition

Virtual Disk Service error:
Det går inte att ta bort en skyddad partition utan att parametern Tvinga skyddad
 har angetts.


DISKPART> list partition

  Partition ###  Type              Size     Offset
  -------------  ----------------  -------  -------
* Partition 2    System              98 MB    51 MB

DISKPART> delete partition override

DiskPart successfully deleted the selected partition.

DISKPART> list partition

There are no partitions on this disk to show.

DISKPART>

    
por 13.03.2014 / 12:36