View previous topic :: View next topic |
Author |
Message |
falso n00b
Joined: 22 Feb 2003 Posts: 40 Location: Caparica, Portugal
|
Posted: Mon Sep 20, 2004 10:00 am Post subject: Move system to another partition |
|
|
Hello sirs,
I have a question that i dont know if it is possible to do. Im gonna buy a new harddisk, and i want to change my current gentoo system that is in my current disk with a partition of 5gb to a partition on the new disk that will have 20gb, whats the easiest way to do this? i want to do the move cause i dont want to loose all that time building all the apps that i currently have.
If anyone has any idea on how can i do this without loosing my system please reply.
Regards,
Pedro de Oliveira _________________ I don't intend to offend, I offend with my intent |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Sep 20, 2004 10:13 am Post subject: |
|
|
I guess you just have to copy all the files from your old partition to the new one, change fstab as needed, and reboot on your new parition. Just make sure you preserve your files permissions while copying them (cp -a should do the trick). |
|
Back to top |
|
|
falso n00b
Joined: 22 Feb 2003 Posts: 40 Location: Caparica, Portugal
|
Posted: Mon Sep 20, 2004 10:31 am Post subject: |
|
|
will the /dev directory be ok after that ? that is my problem _________________ I don't intend to offend, I offend with my intent |
|
Back to top |
|
|
oumpah-pah Guru
Joined: 18 Jul 2004 Posts: 575 Location: Lausanne, Switzerland
|
Posted: Mon Sep 20, 2004 11:42 am Post subject: |
|
|
Yes it will. udev or devfs will take care of populating /dev. You don't need to copy anything from it. |
|
Back to top |
|
|
dalek Veteran
Joined: 19 Sep 2003 Posts: 1353 Location: Mississippi USA
|
Posted: Mon Sep 20, 2004 2:21 pm Post subject: |
|
|
I have done this several times. Boot the CD. Mount the partitions from your old drive. Make a new directy for you new install. You may have to create some of the directories for it to mount to. Once you get all that done and copied over, chroot in, install the bootloader.
If you need more info, let me know. Pretty basic. Do NOT do this when booted into Gentoo though. It will leave out a few files that are locked, at least it did for me. It would not boot until I did while booted off the CD.
cp -rpv /mnt/gentoo/ /mnt/newgentoo/
That should do it.
Oh, takes a while too.
Later
_________________ My rig: Gigabyte GA-970A-UD3P mobo, AMD FX-8350 Eight-Core CPU, ZALMAN CNPS10X Performa CPU cooler,
G.SKILL 32GB DDR3 PC3 12800 Memory Nvidia GTX-650 video card LG W2253 Monitor
60TBs of hard drive space using LVM
Cooler Master HAF-932 Case |
|
Back to top |
|
|
falso n00b
Joined: 22 Feb 2003 Posts: 40 Location: Caparica, Portugal
|
Posted: Mon Sep 20, 2004 3:30 pm Post subject: |
|
|
thanks all, at the end of the month ill post how it went _________________ I don't intend to offend, I offend with my intent |
|
Back to top |
|
|
|