0

I am trying to clone old windows 8 HDD disk to new SSD. Both have the same capacity: 250GB

The problem is that dd command stops quickly after copying 10MB only.

Here is the output:

root@x72j:~# dd if=/dev/sdd of=/dev/sdc bs=128M conv=notrunc,noerror
0+1 records in
0+1 records out
10485760 bytes (10 MB) copied, 0.384963 s, 27.2 MB/s

I even tried copying to /dev/null

root@x72j:~# dd if=/dev/sdd of=/dev/null bs=128M conv=notrunc,noerror
0+1 records in
0+1 records out
10485760 bytes (10 MB) copied, 0.00766644 s, 1.4 GB/s

Why it doesn't clone full disk?

1
  • 1
    Have you tried to just use a simple dd if=/dev/sdd of=/dev/sdc with no limiting arguments? Here is an answer that talks to this subject: Check out this answer for details: askubuntu.com/questions/435694/…
    – SDsolar
    Aug 13, 2017 at 16:43

3 Answers 3

1

For anyone experiencing the same issue, it is likely because you have actually created the "file" /dev/sdd

The virtual /dev parition is usually 10MB which is why the dd stops after 10MB.

Even if the "device" /dev/sdd later shows up, it will be blocked by the existing file.

Try ls -la /dev/sd* and you should see some anomalies.

2
  • i don't understand your response. Sorry
    – redochka
    Jan 10, 2017 at 21:40
  • That was it for me...
    – Mr. Muh
    Jun 23, 2021 at 13:51
0

Try this:

exec sudo -i
fdisk -l
umount /dev/sdd?
fsck -y /dev/sdd?
dd if=/dev/sdd of=/dev/sdc bs=1M conv=noerror,sync

Change ? for the corresponding partition of /dev/sdd

1
  • thanks for the response but I am targeting the device sdd and not just its partition.
    – redochka
    Jan 10, 2017 at 21:41
0

Most dd commands can be replaced with cat.

E.g.:

cat /dev/sdd > /dev/sdc 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .