Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cloning my install to another drive?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
chickengenius
n00b
n00b


Joined: 18 Apr 2005
Posts: 56

PostPosted: Wed May 18, 2005 10:39 pm    Post subject: Cloning my install to another drive? Reply with quote

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
View user's profile Send private message
tidu
n00b
n00b


Joined: 18 May 2005
Posts: 14

PostPosted: Wed May 18, 2005 10:47 pm    Post subject: DD Reply with quote

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 :twisted: )

regards
tidu
Back to top
View user's profile Send private message
stevenaleach
n00b
n00b


Joined: 18 May 2005
Posts: 19

PostPosted: Wed May 18, 2005 11:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum