Linux - NewbieThis 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
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'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 10:46 PM.
Reason: Grammar, extra info, apology
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.
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 09:05 AM.
Reason: A fumble.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.