Clean the disks
If there is data from previous OS installations on the disks, perform a full manual disk cleanup.
1. Boot the server in Rescue mode
- In the Control Panel, on the top menu, click Products and select Dedicated Servers.
- In the Servers section, open the Server page → Operating System tab.
- Click Change Upload Template.
- In the Boot Template field, select Boot to Rescue.
- Click Save and reboot. The server will be rebooted.
2. Clean the disks
-
Display information about the disks:
lsblk
Example output:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 1.8T 0 disk
└─sda1 8:1 0 1.8T 0 part /mnt/data
sdb 8:16 0 931.5G 0 disk
└─sdb1 8:17 0 931.5G 0 part /mnt/backup
nvme0n1 259:0 0 465.8G 0 disk
├─nvme0n1p1 259:1 0 512M 0 part /boot/efi
├─nvme0n1p2 259:2 0 16G 0 part [SWAP]
└─nvme0n1p3 259:3 0 449.3G 0 part /Here
sda
,sdb
,nvme0n1
are disk identifiers. -
Copy the disk IDs you obtained in step 2.
-
Clear the partitions on each disk:
fdisk /dev/<disk_id>
Specify
<disk_id>
is the disk ID of the disk you copied in step 3.If the disk has multiple partitions, type
d
until all partitions are deleted. -
Save your changes:
w
-
Clear the file system signatures on each disk:
wipefs -fa /dev/<disk_id>
Specify
<disk_id>
is the disk ID of the disk you copied in step 3. -
Optional: perform a deep clean of each disk:
dd bs=512 if=/dev/zero of=/dev/<disk_id> count=2048 seek=$(('blockdev --getsz /dev/<disk_id>' - 2048))
Specify
<disk_id>
is the disk ID of the disk you copied in step 3.
3. Modify the upload template
Return the server boot template to the previous one When you reboot the server from the OS, the boot template will automatically change to the one that was set before the server was booted in Rescue mode. the server booted in Rescue mode.