Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Move system to another partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
falso
n00b
n00b


Joined: 22 Feb 2003
Posts: 40
Location: Caparica, Portugal

PostPosted: Mon Sep 20, 2004 10:00 am    Post subject: Move system to another partition Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 10:13 am    Post subject: Reply with quote

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


Joined: 22 Feb 2003
Posts: 40
Location: Caparica, Portugal

PostPosted: Mon Sep 20, 2004 10:31 am    Post subject: Reply with quote

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
View user's profile Send private message
oumpah-pah
Guru
Guru


Joined: 18 Jul 2004
Posts: 575
Location: Lausanne, Switzerland

PostPosted: Mon Sep 20, 2004 11:42 am    Post subject: Reply with quote

Yes it will. udev or devfs will take care of populating /dev. You don't need to copy anything from it.
Back to top
View user's profile Send private message
dalek
Veteran
Veteran


Joined: 19 Sep 2003
Posts: 1353
Location: Mississippi USA

PostPosted: Mon Sep 20, 2004 2:21 pm    Post subject: Reply with quote

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. :wink:

Later

:D :D :D :D
_________________
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
View user's profile Send private message
falso
n00b
n00b


Joined: 22 Feb 2003
Posts: 40
Location: Caparica, Portugal

PostPosted: Mon Sep 20, 2004 3:30 pm    Post subject: Reply with quote

thanks all, at the end of the month ill post how it went :D
_________________
I don't intend to offend, I offend with my intent
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things 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