youbuntu
December 3rd, 2009, 02:17 PM
Hiya :).
I have Ubuntu 9.10 installed on an old 20Gb hdd, and I have another spare 20Gb hdd (both IDE) and I want to clone the first drive to the second, but the drives are VERY slightly (.1-.2Gb) different in size.
Please tell me - how do I do this?.
What I did so far is try this, where SDA is my old drive and SDB is my new one:
Scenario one:
----------------
I simply did: dd if=/dev/sda of=/dev/sdb
Had some grub error, dropped me to grub prompt
Scenario two:
----------------
I created as near an approximation as possible, of my current drive; single ext4 partition, then swap partition in extended. I then did: dd if=/dev/sda1 of=/dev/sdb1 bs=1k
Nothing at all... just a flashing cursor at top left of screen
I would like some help if possible - please restrict the help to within the scope of the "dd" command, because this is what I need to learn if possible, thanks.
PS: my drive is like this:
[======== 18.3Gb ext4 ========][==== swap ====]
^______________ WHOLE DRIVE_____________________^
thanks guys &/or girls :)
I have Ubuntu 9.10 installed on an old 20Gb hdd, and I have another spare 20Gb hdd (both IDE) and I want to clone the first drive to the second, but the drives are VERY slightly (.1-.2Gb) different in size.
Please tell me - how do I do this?.
What I did so far is try this, where SDA is my old drive and SDB is my new one:
Scenario one:
----------------
I simply did: dd if=/dev/sda of=/dev/sdb
Had some grub error, dropped me to grub prompt
Scenario two:
----------------
I created as near an approximation as possible, of my current drive; single ext4 partition, then swap partition in extended. I then did: dd if=/dev/sda1 of=/dev/sdb1 bs=1k
Nothing at all... just a flashing cursor at top left of screen
I would like some help if possible - please restrict the help to within the scope of the "dd" command, because this is what I need to learn if possible, thanks.
PS: my drive is like this:
[======== 18.3Gb ext4 ========][==== swap ====]
^______________ WHOLE DRIVE_____________________^
thanks guys &/or girls :)