View previous topic :: View next topic |
Author |
Message |
Specialized Apprentice
Joined: 11 Jan 2005 Posts: 264
|
Posted: Wed Oct 05, 2005 6:03 pm Post subject: Move Gentoo Installation to another HDD |
|
|
Hi,
I've just bought a bigger HDD for my Notebook and I want to transfer my Gentoo-installation to the new drive.
Is there a way to do this or do I have to make a new Installation? |
|
Back to top |
|
|
thoughtform l33t
Joined: 24 May 2004 Posts: 600
|
Posted: Wed Oct 05, 2005 6:04 pm Post subject: |
|
|
boot with the livecd
mount your old and new drive
cp -pidRv /mnt/old/* /mnt/new |
|
Back to top |
|
|
BlackEdder Advocate
Joined: 26 Apr 2004 Posts: 2588 Location: Dutch enclave in Egham, UK
|
|
Back to top |
|
|
tango Apprentice
Joined: 24 Jan 2005 Posts: 251
|
Posted: Wed Oct 05, 2005 6:13 pm Post subject: |
|
|
I often useDisk Archive (dar) for this..
It´s easy to create a backup of the system, then you can extract it on the new hard disk...
http://www.gentoo-portage.com/app-backup/dar
tango |
|
Back to top |
|
|
Specialized Apprentice
Joined: 11 Jan 2005 Posts: 264
|
Posted: Wed Oct 05, 2005 8:01 pm Post subject: |
|
|
I use grub with an boot-partition, can copy this partition the same way?
cp -a /boot /dev/hdc1
/dev/hdc1 is my new boot-partition. |
|
Back to top |
|
|
Matt126 n00b
Joined: 18 Apr 2004 Posts: 16
|
Posted: Wed Oct 05, 2005 11:17 pm Post subject: |
|
|
Specialized wrote: | I use grub with an boot-partition, can copy this partition the same way?
cp -a /boot /dev/hdc1
/dev/hdc1 is my new boot-partition. |
you can't "copy" to /dev/hdc1. that is just an address of a partition. you must mount it first. so after you mount it, you may copy the contents of your existing boot partition onto your new one. however, you will have to run grub as you did when you made the install to set up the master boot record.
good luck,
Matt |
|
Back to top |
|
|
|