Thread: how to use dd command to clone a partition?
my english terribly poor, hope understand mean
since old 1tb hard disk dead, bought brand new 1 of 2tb.
both of 2 hard disks have 1 partition.
want copy data in old hard disk new one, copying speed slow due corruption.
tried dd command , can still read old hard disk fast.
decide using dd backup data.
found if use dd clone partition, not data copied new partition, properties is.
example, if have 2 following partitions:
1. label: aaa /dev/sda1 1tb
2. label: bbb /dev/sda2 2tb
if enter command "sudo dd if=/dev/sda1 of=/dev/sda2",then following result:
1. label: aaa /dev/sda1 1tb
2. lable: aaa /dev/sda2 1tb (actually, partition still occupy 2tb, 1tb can used)
that's not good. though backup data successfully, volume of new partition shrinked.
wonder there way backup data using dd without changing properties of new partition?
many
you can clone complete drive, dd if=/dev/sda of=/dev/sdb bs=1m
can clone partition described. however, noted, destination partition same size 1tb. need use gparted expand partition full 2tb.
use luckybackup backup individual files 1 disk other.
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [other] how to use dd command to clone a partition?
Ubuntu
Comments
Post a Comment