UPDATE:
I manage to clone the drive’s two partitions (leaving out the unallocated space) by issuing the following command (I specified the last block of disk2 via count=):
dd if=/dev/disk2 of=/dev/disk3 count=49254400
The issue now is that I put in the SATA SSD (via ATA/SATA adapter). The boot starts but fails early. Can someone please tell me what/how I need to change to make the boot work? Heres the code:
Gave up waiting for root device. Common problems:
- Bot args (cat /proc/cmdline)
- Check rootdelay= (did the system wait long enough?)
- Check root= (did the system wait for the right device?)
- Missing modules (cat /proc/modules; ls /dev)
ALERT! /dev/sda2 does not exist. Dropping to a shell!
Busybox v1.18 some text
some text
(initramfs) _
ORIGINAL:
Hi,
I have a 300GB PATA HDD with CB2 on it. More specifically, it has the 50MB Apple recovery partition, 25GB CB2 partition and the rest is unallocated space.
Now, I want to clone the existing data to a brand new 30GB SATA SSD. I am using Mac OS X and I have both drives attached via USB. Can someone please (perhaps @wrxtasy) write what is the appropriate command I should type into terminal to accomplish this.
I must add that I first tried to do this by booting from Gparted LIVE USB stick and then manually copied over both partitions (Apple recovery and CB2). Even though the ATV1 booted, there was some kind of error. Thus I believe that I must clone the whole drive structure (except unallocated space).
Thanks!
/dev/disk2
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *320.1 GB disk2
1: Apple_Recovery 50.0 MB disk2s1
2: Microsoft Basic Data 25.2 GB disk2s2
/dev/disk3
#: TYPE NAME SIZE IDENTIFIER
0: GUID_partition_scheme *30.0 GB disk3
1: EFI 209.7 MB disk3s1
2: Apple_HFS Untitled 1 29.7 GB disk3s2
macbook:~ reinis$ sudo fdisk /dev/disk2
Password:
Disk: /dev/disk2 geometry: 38913/255/63 [625142448 sectors]
Signature: 0xAA55
Starting Ending
#: id cyl hd sec - cyl hd sec [ start - size]
------------------------------------------------------------------------
1: EE 0 0 1 - 1023 254 63 [ 1 - 39] <Unknown ID>
2: AF 1023 254 63 - 1023 254 63 [ 40 - 97617] HFS+
*3: 83 1023 254 63 - 1023 254 63 [ 102400 - 49152000] Linux files*
4: 00 0 0 0 - 0 0 0 [ 0 - 0] unused