You are not logged in.

#1 2008-08-25 19:25:46

nh
Member
From: England
Registered: 2008-07-09
Posts: 45

[SOLVED] Best way to move /var to its own partition

I'm currently running Arch with all files in one partition.  (Except for swap.)  Now I'd like to move /var to its own partition, without reinstalling Arch.  What's the best way to do this?  Is it as simple as booting up a live CD, moving all files and directories in /var to the new partition, and modifying Arch's fstab to mount /var there?  Are there any gotchas?

Last edited by nh (2008-08-27 15:18:01)

Offline

#2 2008-08-25 19:30:52

fwojciec
Member
Registered: 2007-05-20
Posts: 1,411

Re: [SOLVED] Best way to move /var to its own partition

nh wrote:

Is it as simple as booting up a live CD, moving all files and directories in /var to the new partition, and modifying Arch's fstab to mount /var there?

Basically yes -- just make sure that you preserve the permissions and such when you're moving the files.

Offline

#3 2008-08-25 20:03:48

grndrush
Member
From: Hamilton, Ontario, Canada
Registered: 2003-12-28
Posts: 136
Website

Re: [SOLVED] Best way to move /var to its own partition

I have /var/cache/pacman on a separate (ext2) partition, and let the rest of /var sit in / (reiserfs). Create the partition with the "N=" parameter, I use 4K or 8K, and fsck's aren't a hassle.

Offline

#4 2008-08-27 14:13:32

nh
Member
From: England
Registered: 2008-07-09
Posts: 45

Re: [SOLVED] Best way to move /var to its own partition

Thanks guys, it seems to have worked.  For good measure, I made the new partition reiserfs. smile

Offline

#5 2008-08-27 15:04:24

tigrmesh
IRC Op
From: Florida, US
Registered: 2007-12-11
Posts: 794

Re: [SOLVED] Best way to move /var to its own partition

Please mark this thread as solved (edit your first post).  That way others can easily find help.  Thanks!

Offline

Board footer

Powered by FluxBB