How to remove a NTFS partition from SSD?

AlexLay

New Member
Jun 7, 2023
3
0
1
México
1686095973521.png

Brand new n00b to Proxmox.
I installed it last night and liked what I saw, so I am going to play with it a bit.
Today I swapped out an old Adata SU630 SSD for a new Samsung NVMe on my son's desktop, so I thought I would throw it in this PVE machine.
As you can see, it is reading the SSD, but it will not let me do anything like create a LVMThin partition, so how would I go about deleting that partition so I can format the whole drive as thin?
Any help would be appreciated and hope to see you guys much more.
Alex
 
The primary thing you have to be aware of is that Proxmox is a hypervisor package. Proxmox is not a black box and is not using a proprietary Operating System. It uses Debian Linux. Linux is infinitely flexible and its impossible to express that flexibility in GUI. Developers had to make a choice of what is a common _Hypervisor_ related action, vs a one time Linux system administration action. Managing partition is the latter.
There are many tools available in Linux that are solely built for partition management, the same way Proxmox is built for Virtualization management. Some of those tools have nice GUI, most are CLI based.
So in this case, you need to find a way to remove a partition and the query you want to input into a search engine is "linux remove partition", followed by reviewing helpful Proxmox wiki entries:
https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)
https://pve.proxmox.com/wiki/Storage:_LVM_Thin


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
The primary thing you have to be aware of is that Proxmox is a hypervisor package. Proxmox is not a black box and is not using a proprietary Operating System. It uses Debian Linux. Linux is infinitely flexible and its impossible to express that flexibility in GUI. Developers had to make a choice of what is a common _Hypervisor_ related action, vs a one time Linux system administration action. Managing partition is the latter.
There are many tools available in Linux that are solely built for partition management, the same way Proxmox is built for Virtualization management. Some of those tools have nice GUI, most are CLI based.
So in this case, you need to find a way to remove a partition and the query you want to input into a search engine is "linux remove partition", followed by reviewing helpful Proxmox wiki entries:
https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM)
https://pve.proxmox.com/wiki/Storage:_LVM_Thin


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
TY for the reply, so the simple answer is that I can't remove the NTFS partition while using proxmox, so I would have to remove the disk and take it to another computer to delete it, or boot from a thumb drive and delete it from that OS?
Also, are the disks in Proxmox hot-swappable?
 
Last edited:
so the simple answer is that I can't remove the NTFS partition while using proxmox, so I would have to remove the disk and take it to another computer to delete it, or boot from a thumb drive and delete it from that OS?
Thats not at all what I was trying to convey.
The "simple" answer is:
a) google "linux remove partition" and arrive to something like https://phoenixnap.com/kb/delete-partition-linux
b) open a terminal, none GUI, window to Proxmox for access to underlying OS. You can use Putty SSH client or Proxmox GUI (Datacenter>Nodes>[node]>_shell)
c) apply commands from the guide you picked in (a) to your actual setup, carefully.
The sequence will likely look as following:
- fdisk /dev/sda
- d
- 1
- d
- 2
- w
d) after reading https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM) create new partition and volume group
- sgdisk -N 1 /dev/sda
- pvcreate --metadatasize 250k -y -ff /dev/sda1
- vgcreate vmdata /dev/sda1
e) continue using https://pve.proxmox.com/wiki/Storage:_LVM_Thin
- lvcreate -n vmlv -l 100%FREE vmdata
- lvconvert --type thin-pool vmdata/vmlv

The commands above are an example and may not be 100% correct or suitable to your system. If you execute them blindly you may destroy your installation. I suggest that you review a few guides on the internet first.

Also, are the disks in Proxmox hot-swappable?
maybe, it depends.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
 
If you don't care about losing the contents of that disks you could click the "wipe" button in the PVE webUI at "YourNode -> Disks" to wipe that disk. This will remove all partitions on it so you can use it to create a new LVMThin storage or whatever you want to use it for.
 
  • Like
Reactions: bbgeek17
Thats not at all what I was trying to convey.
The "simple" answer is:
a) google "linux remove partition" and arrive to something like https://phoenixnap.com/kb/delete-partition-linux
b) open a terminal, none GUI, window to Proxmox for access to underlying OS. You can use Putty SSH client or Proxmox GUI (Datacenter>Nodes>[node]>_shell)
c) apply commands from the guide you picked in (a) to your actual setup, carefully.
The sequence will likely look as following:
- fdisk /dev/sda
- d
- 1
- d
- 2
- w
d) after reading https://pve.proxmox.com/wiki/Logical_Volume_Manager_(LVM) create new partition and volume group
- sgdisk -N 1 /dev/sda
- pvcreate --metadatasize 250k -y -ff /dev/sda1
- vgcreate vmdata /dev/sda1
e) continue using https://pve.proxmox.com/wiki/Storage:_LVM_Thin
- lvcreate -n vmlv -l 100%FREE vmdata
- lvconvert --type thin-pool vmdata/vmlv

The commands above are an example and may not be 100% correct or suitable to your system. If you execute them blindly you may destroy your installation. I suggest that you review a few guides on the internet first.


maybe, it depends.


Blockbridge : Ultra low latency all-NVME shared storage for Proxmox - https://www.blockbridge.com/proxmox
Wow, thanks again for all this... I thought it was a simpler process. In any case, I removed the SSD from the micro and put it on my external drive bay and removed all partitions using windows, and threw it back in the micro and now it reads empty.
I will be reading up on the second part to get it done. Thank you again kind Sir!
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!