[TriLUG] HDD Migration

erik at underhanded.org erik at underhanded.org
Wed Jan 5 15:22:53 EST 2005


On Wed, Jan 05, 2005 at 02:19:00PM -0500, Jason Browne wrote:
> I am trying to get some tips on migrating an install of Linux to another,
> bigger HDD?  It is a straight 1 HDD to 1 HDD change...  I know I could use dd
> , but I am trying to see if there is a better way.

dd has worked fine for me many times, as long as you do resize2fs after
the dump.

If you recreate your top level directories (/tmp /bin /sbin etc), you
can use 'cp -a' for most of them with good results.  Don't do it for
lost+found, proc, dev, and sys(I think sys was special at least) though.

For dev, just copy over MAKEDEV and any other non device files, along
with all folders.  Then run MAKEDEV in the new /dev  This is all off the 
top of my head, and probably quite a bit mroe work then a pure copy, but 
it went fairly quickly in the few times I did it, and is a good way to 
make sure everything copied over sanely.

Or, there's ways of just using tar or cpio to do similiar in one step.

But as I said, dd is easy, and hasn't screwed up in my experience.  Just
make sure you shut down as many things as possible to keep your
filesystem from being too much of a moving target. (log files
especially)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://www.trilug.org/pipermail/trilug/attachments/20050105/56215f47/attachment.pgp>


More information about the TriLUG mailing list