[SOLVED] Cloning a dual boot (MacOSX, Linux) drive
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a 2009 Mac mini set up as a dual boot with Yosemite and Ubuntu 15.04; the boot loader is rEFind. The internal drive is a 500 gb HD, and I bought a 500 gb SSD that I want to use to replace the slow HD. I have an external enclosure for the SSD and I want to start by cloning the internal drive before replacing it. (I have an enclosure that I can put the SSD in and it can be attached to the mini through either Firewire 800 or USB 2.) The Mac partition is HFS+ and there is also a recovery partition. Ubuntu is on one ext4 partition and there is a swap partition as well. Is it possible to do a bit by bit copy of the whole drive with either Clonezilla or dd and if so, will the drive be bootable? Or do the Mac and Linux partitions have to be done separately and the boot loader reinstalled? Alternatively, I have a Mac utility called Carbon Copy Cloner - will it make a bootable bit by bit copy of the drive, and will it preserve the partition structure?
OK, but I dislike slow drives; which is why I'm going to an SSD. Even if I put Linux on an external SSD, it would run slowly on this Mac - limited by having only usb2 and FireWire 800 ports.
I managed to figure it out, and although this might not be the most efficient way, here is what worked:
(1) Put SSD in external case
(2) Use Clonezilla (or any other Unix formatting utility) to replicate the partition structure of the source disk (in this case, but source and target are same size).
(3) Use Carbon Copy Cloner (CCC) to clone the Mac partition. (This is a Mac utility.)
(4) Use Clonezilla to do a partition to partition clone for the Linux partition
(5) Use gparted from the source disk to format the swap drive of the SSD
(6) Install the SSD inside the computer
Note that one thing I hadn't tried was a disk to disk clone using 'dd', as suggested by schneidz. It may have worked, and it would have covered steps 2-5 if it did. I was worried that it wouldn't have 'blessed' the Mac partition of the target disk (SSD), whereas I knew that CCC would do that. (Note that the clone of a Mac partition has to be 'blessed' to be bootable.) Even if 'dd' alone didn't work, odds are that it would have succeeded in doing all the necessary formatting and cloning in one move except for the 'blessing', leaving me only to run CCC afterwards. I'll try that the next time.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.