Debian/Ubuntu: Fix the partition clearing steps
parent
826b6841e4
commit
57dd01c683
|
@ -44,10 +44,15 @@ If you have a second system, using SSH to access the target system can be conven
|
|||
|
||||
## Step 2: Disk Formatting
|
||||
|
||||
2.1 If you are re-using any disks which were previously in an MD array, zero the MD superblock now to avoid corruption if MD were to try to assemble the old array.
|
||||
2.1 If you are re-using a disk, clear it as necessary:
|
||||
|
||||
If the disk was previously used in an MD array, zero the superblock:
|
||||
# apt install --yes mdadm
|
||||
# mdadm --zero-superblock --force /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
Clear the partition table:
|
||||
# sgdisk --zap-all /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
2.2 Partition your disk:
|
||||
|
||||
Run this if you need legacy (BIOS) booting:
|
||||
|
|
|
@ -60,10 +60,11 @@ If you have a second system, using SSH to access the target system can be conven
|
|||
2.1 If you are re-using a disk, clear it as necessary:
|
||||
|
||||
If the disk was previously used in an MD array, zero the superblock:
|
||||
# apt install --yes mdadm
|
||||
# mdadm --zero-superblock --force /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
Clear the partition table:
|
||||
# sgdisk --zap /dev/disk/by-id/scsi-SATA_disk1
|
||||
# sgdisk --zap-all /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
2.2 Partition your disk:
|
||||
|
||||
|
|
|
@ -58,10 +58,11 @@ If you have a second system, using SSH to access the target system can be conven
|
|||
2.1 If you are re-using a disk, clear it as necessary:
|
||||
|
||||
If the disk was previously used in an MD array, zero the superblock:
|
||||
# apt install --yes mdadm
|
||||
# mdadm --zero-superblock --force /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
Clear the partition table:
|
||||
# sgdisk --zap /dev/disk/by-id/scsi-SATA_disk1
|
||||
# sgdisk --zap-all /dev/disk/by-id/scsi-SATA_disk1
|
||||
|
||||
2.2 Partition your disk:
|
||||
|
||||
|
|
Loading…
Reference in New Issue