Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Moving to another filesystem and partition layout
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Wed Mar 08, 2006 10:12 pm    Post subject: Moving to another filesystem and partition layout Reply with quote

My server is using a reiserfs as it's main filesystem and with various partitions for /var, /home, root etc. I would like to move to ext3 or xfs as reiserfs consumes too much CPU on my crappy server and have everything on a single root partition.

What do you think?
Would it suffice to add another harddrive, boot with a livecd, mount the partitions, just cp -r over everything to the second harddrive, repartition and reformat the main driver and then cp -r everything back?

Thanks
Back to top
View user's profile Send private message
nahpets
Veteran
Veteran


Joined: 05 Oct 2003
Posts: 1178
Location: Montreal, Canada

PostPosted: Wed Mar 08, 2006 11:21 pm    Post subject: Reply with quote

I was able to change from reiserfs to ext3 by copying over my root partition to another partition on the same drive and then updating /etc/fstab, so I think you should be able to do it also.

FYI: I think you'd want to use 'cp -a' instead of 'cp -r'.
_________________
Let me guess, you picked out yet another colorful box with a crank that I'm expected to turn and turn until OOP! big shock, a jack pops out and you laugh and the kids laugh and the dog laughs and I die a little inside.
Back to top
View user's profile Send private message
RuiP
l33t
l33t


Joined: 15 Jan 2005
Posts: 643

PostPosted: Wed Mar 08, 2006 11:23 pm    Post subject: Reply with quote

Hi,
i copied my system several times with cp -a (more or less for running away from reiserfs too), never had a problem.
That's how i make my backups and (re)install my tests ~x86 system (when i done too much experimental things on them and they dye i simple cp -a the stable working one and i can go seach for more testings again.)

cp is a wonderfull tool. But i don't use -r flag. I don't understood completly the man page, but sounds weird on that flag.
Just my 2c.

bye.

(beated by 2 mn :lol:)
Back to top
View user's profile Send private message
nxsty
Veteran
Veteran


Joined: 23 Jun 2004
Posts: 1556
Location: .se

PostPosted: Thu Mar 09, 2006 10:44 am    Post subject: Reply with quote

Thanks! I'll try that.

The man page description of cp -r and -R looks weird indeed. "Copy directories recursively, and do something unspecified with objects other than ordinary files or directories." What the hell does that mean? :)
Back to top
View user's profile Send private message
pteppic
l33t
l33t


Joined: 28 Nov 2005
Posts: 781

PostPosted: Thu Mar 09, 2006 11:14 am    Post subject: Reply with quote

The -R switch is included as part of the -a switch.
I prefer cp -axuv for backups...
I have a very basic script to check all the files were copied too, if anyone wants it, rm -rf * always makes me nervous, always 8O
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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