Clean up disks
If data from previous OS installations remains 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 boot template.
- In the Boot template field, select Boot to Rescue.
- Click Save and reboot. The server will be rebooted.
2. Clean up disks
-
Connect to the server via SSH or using the KVM console.
-
Output the information about the disks:
lsblkThe disk information will appear in the response. Remember or copy the disk names. For example:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTSsda 8:0 0 1.8T 0 disk└─sda1 8:1 0 1.8T 0 part /mnt/datasdb 8:16 0 931.5G 0 disk└─sdb1 8:17 0 931.5G 0 part /mnt/backupnvme0n1 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,nvme0n1are the disk names. -
Clear the partitions on each disk:
fdisk /dev/<disk_name>Specify
<disk_name>— the disk name you copied in step 2.If there are multiple partitions on the disk, enter
duntil all partitions are deleted. -
Save the changes:
w -
Clear the file system signatures on each disk:
wipefs -fa /dev/<disk_name>Specify
<disk_name>— the disk name you copied in step 2. -
Optional: perform a deep wipe of each disk:
dd bs=512 if=/dev/zero of=/dev/<disk_name> count=2048 seek=$(('blockdev --getsz /dev/<disk_id>' - 2048))Specify
<disk_name>— the disk name you copied in step 2.
3. Change the boot template
Restore the previous server boot template or reboot the server from the OS. When rebooting the server from the OS, the boot template will automatically revert to the one that was set before booting the server in Rescue mode.