You are not logged in.

#1 2009-03-17 01:21:03

Killa B
Member
From: United States
Registered: 2008-10-28
Posts: 42
Website

Migrating to a new Hard Drive

My brother has a 20GB HDD for me, and the plan is that we'll leave Windows on our 80GB drive (my Mom uses it) and move Arch Linux to the 20GB drive (I'm currently using an 11GB partition for Linux, so it's actually a step up). So, I'm going to need to move the files over.

What's the best way to do this? I'm going to need to make sure it doesn't randomly get Permission Denied crap and refuse to copy important files. I also need to make sure the file permissions don't get screwed up.

Here's what I'm thinking:

su
cd /
cp -pr "`ls | grep -v dev | grep -v tmp | grep -v media`" "/media/new_hdd_whatever/"

Would that work? Would it fail? Is there something I should change or add?

Any help would be greatly appreciated.

Offline

#2 2009-03-17 07:45:02

MoonSwan
Member
From: Great White North
Registered: 2008-01-23
Posts: 881

Re: Migrating to a new Hard Drive

Grab a copy of Parted Magic and use Ghost for Linux, or Clonezilla to do what you want.  No mess & no worries about file permissions being screwed up later.

Offline

Board footer

Powered by FluxBB