Copy data from one hard disk to another hard disk
I have sata hard disk it has 4 partitions, I need to copy the data from that hard disk to another sata hard disk with the same partition in the new hard disk ?
|
If both disks have same size you can use dd command for cloning the first disk
Code:
dd if=/dev/sda of=/dev/sdb If the first one is bigger but you think that the data can fit on the second, you can use gparted and to resize partitions on the first disk in the manner to fit on the second and to use dd for each partition Code:
dd if=/dev/sda1 of=/dev/sdb1 Code:
dd if=/dev/sda of=/dev/sdb bs=512 count=1 |
Quote:
sorry need to ask about : dd if=/dev/sda of=/dev/sdb bs=512 count=1 i know this mean copy from /dev/sda to /dev/sdb but the bs and count for what exactly use for ? Thanks |
copy portion of 512 bytes once or the first 512 bytes and nothing more
|
Thanks
|
All times are GMT -5. The time now is 07:53 PM. |