View previous topic :: View next topic |
Author |
Message |
chickengenius n00b
Joined: 18 Apr 2005 Posts: 56
|
Posted: Wed May 18, 2005 10:39 pm Post subject: Cloning my install to another drive? |
|
|
I made a mistake and installed gentoo on the wrong drive, well I knew what I was doing but the drive is just to slow! I want to clone to another faster drive. Any suggestions? |
|
Back to top |
|
|
tidu n00b
Joined: 18 May 2005 Posts: 14
|
Posted: Wed May 18, 2005 10:47 pm Post subject: DD |
|
|
hi,
make sure both devices are the same size, than you can do:
Code: | # dd if=/dev/hdX9 of=/dev/hdY8 bs=4k conv=sync |
if not you need to work with resize2fs (but be careful with making filesystems smaller )
regards
tidu |
|
Back to top |
|
|
stevenaleach n00b
Joined: 18 May 2005 Posts: 19
|
Posted: Wed May 18, 2005 11:37 pm Post subject: |
|
|
You can boot into the install CD and copy from there. Here's a rough overview - for more information check here: http://lfs.osuosl.org/hints/downloads/files/lfsbackup.txt
create mount points and mount both partitions. for example create a directory /mnt/source and another /mnt/dest mount the current partition you have installed to on /mnt/source and (after creating the appropriate file system on it) mount the new destination on /mnt/dest.
change to the source directory - this will be the root of the partition you are moving.
Now copy to the new partition:
cp -Rav * /mnt/dest
At this point you can chroot into the new partition - just follow the same instructions as you did when installing originally, substituting /mnt/dest for /mnt/gentoo. once in the new chroot environment, edit the fstab (you should just have to change the root from the old partition to the new) and install grub. |
|
Back to top |
|
|
|