Delete a disk partition in VMWare ESXI

To delete a partition in VMWare ESXI, you can use command

partedUtil

First find out all disks available on your server using command

ls /vmfs/devices/disks/

On my server, it show following

Advertisement

[root@ns3048991:~] ls /vmfs/devices/disks/
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________    vml.01000000004e34473354343459202020202020202020202020484753542048
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:1  vml.01000000004e34473354343459202020202020202020202020484753542048:1
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:2  vml.01000000004e34473354343459202020202020202020202020484753542048:2
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:3  vml.01000000004e34473354343459202020202020202020202020484753542048:3
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:5  vml.01000000004e34473354343459202020202020202020202020484753542048:5
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:6  vml.01000000004e34473354343459202020202020202020202020484753542048:6
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:7  vml.01000000004e34473354343459202020202020202020202020484753542048:7
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:8  vml.01000000004e34473354343459202020202020202020202020484753542048:8
t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:9  vml.01000000004e34473354343459202020202020202020202020484753542048:9
t10.ATA_____HGST_HUS726020ALA610____________________N4G3TSMY____________    vml.01000000004e34473354534d59202020202020202020202020484753542048
t10.ATA_____HGST_HUS726020ALA610____________________N4G3TSMY____________:1  vml.01000000004e34473354534d59202020202020202020202020484753542048:1

[root@ns3048991:~]

I want to delete the partition

t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________:3  vml.01000000004e34473354343459202020202020202020202020484753542048:3

To do this, i run

partedUtil delete "/vmfs/devices/disks/t10.ATA_____HGST_HUS726020ALA610____________________N4G3T44Y____________" 3

Here is help for partedUtil

[root@ns3048991:~] partedUtil
Not enough arguments

Usage:
 Get Partitions : get
 Set Partitions : set  ["partNum startSector endSector type attr"]*
 Delete Partition : delete
 Resize Partition : resize
 Get Partitions : getptbl
 Set Partitions : setptbl   ["partNum startSector endSector type/guid attr"]*
 Fix Partition Table : fix
 Create New Label (all existing data will be lost): mklabel
 Show commonly used partition type guids : showGuids
 Get usable first and last sectors : getUsableSectors
 Fix GPT Table interactively : fixGpt
 Show Partition Information : partinfo
 
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement