Ubuntu: Clear existing partitions
See issue #6090. Reported-by: Mahmoud Hashemi <mahmoud@hatnote.com>
parent
36f0f5a872
commit
882c29a2a6
|
@ -56,10 +56,14 @@ If you have a second system, using SSH to access the target system can be conven
|
||||||
|
|
||||||
## Step 2: Disk Formatting
|
## 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
|
# 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:
|
2.2 Partition your disk:
|
||||||
|
|
||||||
Run this if you need legacy (BIOS) booting:
|
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
|
## 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
|
# 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:
|
2.2 Partition your disk:
|
||||||
|
|
||||||
Run this if you need legacy (BIOS) booting:
|
Run this if you need legacy (BIOS) booting:
|
||||||
|
|
Loading…
Reference in New Issue