[blfs-support] moving lfs

Bruce Dubbs bruce.dubbs at gmail.com
Wed Mar 20 11:54:20 PDT 2013

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 -

   -- Bruce

More information about the blfs-support mailing list