<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">I tried clonzilla to move an lvm partitioned disk to a new one. it used various forms of dd copying.
<div>The copy went sucessfully, but it did not boot. Fsck failed with hundreds if not thousands of bad files, duplicate inodes, etc.</div>
<div>In the end I just did a fresh install from the original distribution with no updates and no lvm, It booted properly, I rebooted from the install media, and then I copied using rsync all of the files off the old drive onto the new. i ran grub just to be sure.</div>
<div><br /></div>
<div>Worked fine.</div>
<div><br /></div>
<div>Geoff</div>
</div>
<div name="messageSignatureSection"><br />
Jerusalem, Israel</div>
<div name="messageReplySection">On May 1, 2019, 7:30 AM +0300, Shlomo Solomon <shlomo.solomon@gmail.com>, wrote:<br />
<blockquote type="cite" style="margin: 5px 5px; padding-left: 10px; border-left: thin solid #1abc9c;">The subject says it all. But a few more details. My 1Tb drive is<br />
about to die and I'm moving to a new 3Tb drive. The drive<br />
(/dev/sda) includes 5 partitions - / , /home , /boot/efi , /data ,<br />
swap. Most of the bad blocks seem to be in the /data partition.<br />
Needless to say, I have good backups of everything on an external<br />
drive.<br />
<br />
There are many ways to do this and I'm not looking for instructions,<br />
but "opinions" about what would be most efficient. I've considered a<br />
few options - but each seem to have advantages and dis-advantages:<br />
<br />
1 - A fresh install and then update configurations and copy whatever<br />
else I need from the old drive or from my backup drive. (Advantage - get<br />
rid of old junk, Dis-advantage - seems like a lot of work)<br />
<br />
2 - dd - and then, of course enlarge the partitions and/or add new<br />
partitions to use the added 2Tb. (Advantage - safe, Dis-advantage -<br />
there are many bad blocks on the old drive so ...)<br />
<br />
3 - ddrescue (Advantage - may be better at handling the bad<br />
blocks, Dis-advantage - how safe is this?)<br />
<br />
4 - Clonezilla (I never used this so I don't know)<br />
<br />
I'm assuming that after solutions #2, #3 and #4 I would only need<br />
to switch the sda cable so the new drive would become /dev/sda and<br />
of course edit fstab to correct all the UUID= lines.<br />
<br />
<br />
I'd like to hear opinions about which of these solutions (or any other<br />
solution) is best.<br />
<br />
<br />
<br />
--<br />
Shlomo Solomon<br />
http://the-solomons.net<br />
Claws Mail 3.16.0 - Kubuntu 18.04<br />
<br />
_______________________________________________<br />
Linux-il mailing list<br />
Linux-il@cs.huji.ac.il<br />
http://mailman.cs.huji.ac.il/mailman/listinfo/linux-il<br /></blockquote>
</div>
</body>
</html>