LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-19-2013, 11:23 PM   #1
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Rep: Reputation: Disabled
(Fedora) Cloning boot partition


Hello.

I'm using Fedora 18.

I'd like to clone my running boot partition to another (mounted or unmounted) partition on the same physical drive. I have a lovely install at the moment, and I'd like to take a 'snapshot', so to speak.

I've been researching this, and dd seems the preferred method, but I've noted problems in reported first-hand experiences when cloning an operational boot 'drive' using dd.

Is this a non-starter, and I should simply suck-it-up and boot from a live CD (or equivalent) to perform this operation? Or is there an option I haven't encountered in my searches?

Thanks in advance for any and all help, or suggestions. It is appreciated.

Edit: I noticed a very similar question to mine just a few posts below. I am extremely embarrassed about that. Though particulars of my situation appear different.

The partition type of my boot partition is 'Linux LVM'. I formatted this partition as EXT4 before installing Fedora.

I prepped the clone-to partition in the same manner: I formatted as EXT4 and used LVM as the partition type. This seems contradictory to the advice below.

Sorry. I admit to being confused.

Last edited by dereism; 02-19-2013 at 11:46 PM. Reason: Grammar, extra info, apology
 
Old 02-20-2013, 09:52 AM   #2
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
If you clone one partition to another the target partition will be erased. I don't think it is possible to clone to a mounted partitions, such operations are normally done with unmounted partitions.
LVM if you don't know is Logical Volume Manager, it has a different way to deal with partition in a disk and it is a good idea to understand that better before mess with it.

My suggestion is to use Clonezilla and to use a different disk as target to clone your partitions.
Quote:
Originally Posted by dereism View Post
...I have a lovely install at the moment...
You don't want to mess that up do you?

Regards
 
1 members found this post helpful.
Old 02-20-2013, 10:04 AM   #3
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you so much for the response, ukiuki.

I did some thinking about it after posting, and it seems to me that cloning to a different drive is solid advice. In fact, this would solve a number of problems as I would like to have this install running from an internal drive rather than from a partition on an external disk as it is currently, and I might as well just tame two birds with one bowl of millet.

I admit I was using the idea behind this post as a 'test' for my final motive. I also admit to being corrupted by my use of Carbon Copy Cloner and SuperDuper under OS X which makes cloning drives, partitions, etc. as easy as pie.

Thanks so much, again.

Last edited by dereism; 02-20-2013 at 10:05 AM. Reason: A fumble.
 
Old 02-20-2013, 11:38 AM   #4
ukiuki
Senior Member
 
Registered: May 2010
Location: Planet Earth
Distribution: Debian
Posts: 1,030

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Glad to help, let us know how that goes, normally with clonezilla everything goes just fine, I dont think you'll have any problems.

Regards
 
Old 02-20-2013, 07:06 PM   #5
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
The thing to remember about using a cloning approach is that it requires that the target has the same HW as the src, as you're copying the mbr, kernel & device drivers.
 
Old 02-21-2013, 08:25 AM   #6
dereism
LQ Newbie
 
Registered: Feb 2013
Location: Tideland
Distribution: Fedora
Posts: 19

Original Poster
Rep: Reputation: Disabled
Thank you for the concern, chrism01.

My goal is move this install from a partition on an external disk onto an internal drive. The install will be booting the same machine, so I am assuming all will be well as long as the bits are intact and in their proper place.

I think I'll probably just go with dd as it has worked well for me in the past.
 
  


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
cloning linux partition to different laptop, invalid partition table dsollen Linux - Software 8 11-23-2009 09:50 PM
Cloning Suse10.2 to a different partition: fails boot, (but works with Suse 10.3) deh6 Linux - Newbie 7 04-01-2008 12:55 AM
Cloning an active partition? kmand Linux - Software 2 11-22-2007 12:59 PM
Partition cloning using dd greenberet Linux - Software 2 04-06-2007 07:20 AM
Moving/cloning partition LeftyAce Debian 17 01-13-2006 04:19 PM


All times are GMT -5. The time now is 03:09 PM.

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