Re: cloning a disk

Stefan Monnier <[email protected]>
Newsgroups gmane.linux.debian.user
Message-ID <[email protected]>
> root@melon:~# fdisk -l
> Disk /dev/sdb: 111.79 GiB, 120034123776 bytes, 234441648 sectors
[...]
> GPT PMBR size mismatch (234441647 != 468862127) will be corrected by write.
> The backup GPT table is corrupt, but the primary appears OK, so that will
> be used.
> The backup GPT table is not on the end of the device.
[...]
> Disk /dev/sdg: 223.57 GiB, 240057409536 bytes, 468862128 sectors
[...]
> I always thought the GPT error message was about the small OS drive but
> I disconnected the 3TB drive and commented out its fstab entry and rebooted

The GPT partitioning format keeps 2 copies of the table of partitions: one
at the beginning of the drive and one at the end, and also the info it
keeps includes the size of the drive.  So when you clone to
a differently-sized drive, the 2nd (aka "backup") is inevitably
lost/misplaced.  This is normal.

Notice how the "size mismatch (234441647 != 468862127)" mentions exactly
(well, off-by-one) the sizes of your two drives.


=== Stefan
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.