Ubuntu: Clear existing partitions

See issue #6090.

Reported-by: Mahmoud Hashemi <mahmoud@hatnote.com>
Richard Laager 2017-05-07 23:07:45 -05:00
parent 36f0f5a872
commit 882c29a2a6
2 changed files with 10 additions and 2 deletions

@ -56,10 +56,14 @@ 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:
# mdadm --zero-superblock --force /dev/disk/by-id/scsi-SATA_disk1
Clear the partition table:
# sgdisk --zap /dev/disk/by-id/scsi-SATA_disk1
2.2 Partition your disk:
Run this if you need legacy (BIOS) booting:

@ -54,10 +54,14 @@ 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:
# mdadm --zero-superblock --force /dev/disk/by-id/scsi-SATA_disk1
Clear the partition table:
# sgdisk --zap /dev/disk/by-id/scsi-SATA_disk1
2.2 Partition your disk:
Run this if you need legacy (BIOS) booting: