Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
new var partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
leonglass
Apprentice
Apprentice


Joined: 08 Aug 2006
Posts: 278

PostPosted: Tue May 15, 2007 11:04 pm    Post subject: new var partition Reply with quote

I want to move my /var dir onto a separate partition. Is it safe enough to mount the new partition somewhere then do the following
Code:

cd /var
find . -depth -print0 | cpio -0pdmv <mounted partition>
Then erase the old /var dir (after checking and how to check) and edit fstab to mount the new partition on boot. Or is there a better way to do it.
Back to top
View user's profile Send private message
BitJam
Advocate
Advocate


Joined: 12 Aug 2003
Posts: 2513
Location: Silver City, NM

PostPosted: Wed May 16, 2007 12:08 am    Post subject: Reply with quote

For /var I would boot with a LiveCD and then copy everything over when the system's not running.
Back to top
View user's profile Send private message
leonglass
Apprentice
Apprentice


Joined: 08 Aug 2006
Posts: 278

PostPosted: Wed May 16, 2007 7:08 am    Post subject: Reply with quote

ok thanks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security 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