LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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


Reply
  Search this Thread
Old 06-18-2015, 09:04 PM   #1
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 81

Rep: Reputation: 15
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 11:31 PM.
 
Old 06-18-2015, 09:10 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,281

Rep: Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916Reputation: 916
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.
Old 06-19-2015, 06:57 AM   #3
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 81

Original Poster
Rep: Reputation: 15
Does it matter that the Mac side was formatted with a GPT partition table?
 
Old 06-19-2015, 08:16 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 9,078
Blog Entries: 4

Rep: Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179Reputation: 3179
If it were me, I would be booting Linux from an external drive, not a dual-boot partition. I frankly hate dual-boot.
 
Old 06-19-2015, 06:52 PM   #5
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 81

Original Poster
Rep: Reputation: 15
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.
 
Old 06-20-2015, 03:32 PM   #6
trentfox
Member
 
Registered: Jun 2008
Location: Peterborough, Ontario, Canada
Distribution: Ubuntu 16.04, Unity & Gnome-shell
Posts: 81

Original Poster
Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Boot disk won't start - after cloning the drive in Windows 8 clueless1 Linux - Newbie 1 03-19-2014 10:47 AM
Just Finished Cloning my Dual Boot Setup, but Linux OS won't boot kuyalfinator Linux - Virtualization and Cloud 8 03-08-2011 12:38 AM
Cloning dual-boot drive onto a smaller drive. Harju Linux - Newbie 4 05-29-2010 12:40 PM
Cloning a Dual boot linux magnet Linux - Software 1 10-30-2005 07:04 AM
cloning both partitions, dual boot system, master boot record, logical volume manager saranga2000 Linux - Hardware 3 01-10-2005 12:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration