Author Topic: dd if=/dev/sda of=/dev/sdd  (Read 704 times)

0 Members and 1 Guest are viewing this topic.

Offline a323109

  • /dev/null
  • *
  • Posts: 19
  • Cookies: -4
    • View Profile
dd if=/dev/sda of=/dev/sdd
« on: August 07, 2014, 01:42:45 pm »
What's wrong with "dd" ?

I usually use dd to create system back-up pasting one partition from a disk to another partition in another disk. This work well, no need for complicated programs ecc. To make the cloned system bootable i install grub by terminal grub-install /dev/sdd, update grub-2...well...not exactly this way...cloning disks is tricky matter.

One day i decided to copy an entire disk to another not partitioned, the result was a disk seen by gparted as totally unallocated but the system worked well, without even format it in etx4.

Coping a file.iso i get a functioning live
Coping an installed system i get a perfect clone

What is dd not copying?
root@matrix:/home/neo# Wake up Neo_

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: dd if=/dev/sda of=/dev/sdd
« Reply #1 on: August 07, 2014, 05:29:10 pm »
dd is fully capable of cloning files, partitions and whole disks. Not sure why it would show that in gparted. Anyway, this is a helpful page: https://wiki.archlinux.org/index.php/Disk_cloning
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true

Offline a323109

  • /dev/null
  • *
  • Posts: 19
  • Cookies: -4
    • View Profile
Re: dd if=/dev/sda of=/dev/sdd
« Reply #2 on: August 07, 2014, 11:36:40 pm »
dd is fully capable of cloning files, partitions and whole disks. Not sure why it would show that in gparted. Anyway, this is a helpful page: https://wiki.archlinux.org/index.php/Disk_cloning

Not even the partition table!



Well /dev/sde is a usb with a live system created copying a file.iso using dd,, maybe the partition table is not present in a live system, im not sure. But this is not the only weird thing about it, gparted sees unallocated space. That is the live i've used to install Utopic Unicorn in another usb. I noticed this behaviour when i experimentally tryed to install systems with 'Kali way of install'. It doesnt really matter, it is almost irrelevant...everything works well so, why bother?

I have another usb not live, it has a installed system inside, copied directly from HD using dd, it's the same: it works fine exept gparted sees unallocated space.

#############################

Edit

#############################

Thought to this: the problem must be bs=

I think appropiate block-size must be in the command line, it should be dd if=/dev/sda of=/dev/sdd bs=512 (or 512x2=1024...or 512x4=2048) until the phisical blocks match the copied block.
« Last Edit: August 08, 2014, 05:25:38 pm by a323109 »
root@matrix:/home/neo# Wake up Neo_