Re: How do I clone a Linux install to larger / and /home partitions (using Partimage images)?
- From: ray <ray@xxxxxxxxxx>
- Date: Sun, 29 Jul 2007 14:16:02 -0600
On Sun, 29 Jul 2007 14:53:14 -0400, Robert Glueck wrote:
I swapped the internal HDD in my laptop for a larger one and
migrated my Linux OS by making images of the / and /home
partitions with partimage and then restoring these images to
the new partitions.
The partimage documentation states that one can restore an
image to a partition that is larger than the original
filesystem size but that space may be lost or become
unavailable doing this.
I want / and /home to live in larger partitions than they
did on the old drive. Hence, I first created larger
partitions for them on the new drive and then tried to
shrink them to the exact same size as the partitions on the
old drive, so as to make the partimage restore operation
appear identical to a restore to the old partitions which
had always worked well. Once that was done, I planned to
expand the new partitions and grow the file systems to the
larger sizes that I'd originally set aside, using GParted.
Shrinking the newly created partitions to the exact same
size (down to the last sector) as the old partitions turned
out to be impossible to do with GParted. I could have
probably done it with fdisk or parted but didn't know how
to. The best I could do was to make these new partitions a
wee bit larger than the old ones. The exact specs are as
follows:
Old partitions:
/ 9.83 GiB 20611269 sectors
/home 20.50 GiB 42989877 sectors
New partitions:
/ 9.84 GiB 20627460 sectors
/home 20.51 GiB 43006005 sectors
The restored OS boots and runs fine on the new drive with
this configuration. I had planned to use GParted to grow
these partitions to the larger sizes for which I had set
aside contiguous space (at the ends of the current smaller
partitions).
However, I'm uncertain about the status of those couple of
ten thousand sectors by which the current partitions are
larger than the respective file systems (both of these are
reiserfs, i.e. reiser3). If I expand the partitions and
grow the filesystems, is there going to be a hole in the
file system or partition that could cause problems, e.g.
corrupt the file system?
How should I handle this situation?
Thanks for your help.
Robert
My suggestion: boot a Gparted Live CD and use that to resize them after
they are restored.
.
- References:
- Prev by Date: Re: An open source program to convert DRM'ed WMA files to others (MP3 & OGG)?
- Next by Date: Re: Installing Linux over the network
- Previous by thread: How do I clone a Linux install to larger / and /home partitions (using Partimage images)?
- Next by thread: Re: An open source program to convert DRM'ed WMA files to others (MP3 & OGG)?
- Index(es):
Relevant Pages
|
|