[blfs-support] moving lfs

Bruce Dubbs bruce.dubbs at gmail.com
Wed Mar 20 12:04:23 PDT 2013

Bruce Dubbs wrote:
> Armin K. wrote:
>> I am for tar approach, but in that case no need
>> for "dd" ... If you use "dd" you'll get a copy of your partition which
>> will be the same size as your partition - not cool if you want to resize
>> it. Just extract the tarball on the new partition - worked for me always.
> Yes, you can also use a livecd to do something like this:
> mkdir -p /mnt/{oldroot,newroot}
> mount /dev/sd<old> /mnt/oldroot
> mount /dev/sd<new> /mnt/newroot
> cd /mnt/oldroot
> tar -cf - . | tar -xf -C /mnt/newroot -

Let me also add that if you have a new disk, partition it using gdisk to 
get a GPT Partition table.  No more extended/logical partitions!  Only 
128 primary partitions.  It also keeps partitions on 1MiB boundaries 
which I find useful.

   -- Bruce

More information about the blfs-support mailing list