I'm trying to move my OS X installation to a smaller drive because I plan to move to another operating system, but it takes a lot longer than expected and I hope that One can help me here.
The SSD that now contains OS X is divided into 4 partitions: EFI, Yosemite, Recovery HD (linked to Yosemite), El Capitan. I've narrowed each partition (except EFI of course) and I moved it to the left. Thus, only the first ~ 120 GB of the disk are used, the rest is not allocated. Also note that there is a Hackintosh, so there are slight differences between the bootloader and the EFI content. This SSD is working perfectly on all partitions and Disk Utility does not detect any problems.
The first thing I tried was to create partitions on the hard drive that start and end in the same sectors as the SSD (with gpt in terminal iirc), then with Disk Utility (later tried with Gparted) for clone the original partitions on the news and fix them. the disk to repair the partition table. It did not work – the disc was not bootable.
I've read in this book and other sites that disk utility users are simply used to restore a larger disk with enough free space in a smaller disk, and it works. I've tried the same thing but I get a strange error (error OSStatus 6):
the volume is not Apple_HFS or Apple_UFS. Except for EFI, this is not true. The destination disk had an empty partition formatted in HFS +, but the disk utility still reported the error before it could check the destination. Note that I've tried this since El Capitan, Recovery HD and a separate installation dongle from High Sierra.
I tried to create an image of the entire disk. To do this, I formatted another 500GB disk in GPT with an HFS + partition and I used it as a destination for the image file, but Disk Utility lamented that it it needed a space as large as the source drive, even if the image had to be compressed. .
Using CloneZilla did not bring me much further. Trying to clone a disk to another gave me an instant error – even after selecting the option not to check the size of the destination disk relative to the source (I will try again tomorrow with a new SATA-USB adapter that I have today). CloneZilla, like many Linux tools, would have been poorly supported by HFS +. I've also tried to create a disk image with Clonezilla. It seems to work well and the data copy of each partition was finished, but just before the end, an error occurred and the operation was interrupted, rendering the image unusable (I did not record the actual error here, I can rerun it and report if you think it may be relevant). The image was on the same 500GB drive as the one previously used with Disk Utility, but this time in exFAT format.
I then agreed to try a commercial software. I've tried Carbon Copy Cloner, which allows the user to copy only single volumes at a time. I tried to clone all the content, but after that, the drive was no longer bootable. I later tried to dd the EFI partition from the SSD, but that made no difference. Note that the simple volumes on the newly cloned drive did start well if I launched the boot loader (Clover in my case) from another drive (the SSD or the USB installation) . The same thing happened after trying some other methods mentioned above.
At this point, I am running out of ideas and it gets a little frustrating. What do I neglect? How can I clone this disc and use it as if it was the original? Thanks for the help.