How to clean, format and prepare GPT array for proxmox
install
apt install hdparm
check:
hdparm -I /dev/sdb
out:
/dev/sdb:
ATA device, with non-removable media
Model Number: CT500P1SSD8
Serial Number: 1913E1F4
Firmware Revision: P3CR
Standards:
Likely used: 1
Configuration:
disk xfer rate <= 5Mbs
data strobe offset option
track offset option
Logical max current
cylinders 25601 0
heads 0 0
sectors/track 0 0
--
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 0 MBytes
device size with M = 1000*1000: 0 MBytes
cache/buffer size = unknown
Capabilities:
IORDY not likely
Can perform double-word IO
R/W multiple sector transfer: not supported
DMA: not supported
PIO: pio0
install
apt install parted
prepare:
parted /dev/sdb mklabel gpt
out:
Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Yes/No? y
Information: You may need to update /etc/fstab.
To initialize a disk with a new GPT, use the initialize subcommand:
proxmox-backup-manager disk initialize sdb
Before deleting a partition, back up your data. All data is automatically deleted when a partition is deleted.
Reload the partition table to verify that the partition has been deleted.
The terminal prints out the partition structure of the disk selected in Step 2.
sudo mkfs -t ext4 /dev/sdb1
lsblk -f
hdparm -Ttv /dev/sdb1
out:
/dev/sdb1:
multcount = 0 (off)
readonly = 0 (off)
readahead = 131064 (on)
geometry = 60801/255/63, sectors = 976771087, start = 2048
Timing cached reads: 12072 MB in 2.00 seconds = 6041.48 MB/sec
Timing buffered disk reads: 1214 MB in 3.04 seconds = 398.73 MB/sec
SPEED: 398.73 MB/sec