[Pkg-doc-linux-devel] Bug#501170: mention easiest method to copy partition table

Yves Bellefeuille yan at storm.ca
Mon Oct 6 01:42:26 UTC 2008


jidanni at jidanni.org wrote:

> Mention that this also can be as easy as
> # sfdisk -d /dev/hda|sfdisk /dev/hdb
> assuming one was happy with the /dev/hda table.

As you mention, using this command, one would have the same partition 
structure on the new disk as on the old disk. If one wanted that 
result, one could simply use "dd" to copy the entire disk.

The reason why one would want to move data from one disk to another 
usually is that one wants to move it to a newer, larger disk. Using the 
same partition structure on the new disk as on the old disk would 
defeat the purpose.

Regards,

-- 
Yves Bellefeuille <yan at storm.ca> 
"S-ro Yves Bellefeuille distingis sin kiel plumpan mokanton pri la 
Esperanta Civito." -- Heroldo Komunikas, n-ro 331.





More information about the Pkg-doc-linux-devel mailing list