Linux - Software This 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-18-2015, 08:04 PM
|
#1
|
Member
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83
Rep:
|
Cloning a dual boot (MacOSX, Linux) drive
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?
Last edited by trentfox; 06-18-2015 at 10:31 PM.
|
|
|
06-18-2015, 08:10 PM
|
#2
|
LQ Guru
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,326
|
theoretically, plugging in both drives and doing a dd from a live-usb should work since they are both the same exact size.
|
|
1 members found this post helpful.
|
06-19-2015, 05:57 AM
|
#3
|
Member
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83
Original Poster
Rep:
|
Does it matter that the Mac side was formatted with a GPT partition table?
|
|
|
06-19-2015, 07:16 AM
|
#4
|
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 11,311
|
If it were me, I would be booting Linux from an external drive, not a dual-boot partition. I frankly hate dual-boot.
|
|
|
06-19-2015, 05:52 PM
|
#5
|
Member
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83
Original Poster
Rep:
|
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.
|
|
|
06-20-2015, 02:32 PM
|
#6
|
Member
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 83
Original Poster
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 10:42 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|