You are not logged in.

#1 2007-01-28 12:00:59

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Make a new partition /home

On one of my machines arch was running alongside XP, now i have removed XP how can i make that new partition /home?

I have formatted it, made it xfs,now where to i go from here? (wanting to keep all my theme settings etc)


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#2 2007-01-28 12:19:52

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Make a new partition /home

create a temporary mount point for it in /mnt/, mount it and use cp -a to copy the contents over. From there you can remove your original /home and replace it by remounting the new one you created in /mnt.

Offline

#3 2007-01-28 15:33:49

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Make a new partition /home

Whats the correct numbering to place in it to my new fstab ?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#4 2007-01-28 16:37:07

Cerebral
Forum Fellow
From: Waterloo, ON, CA
Registered: 2005-04-08
Posts: 3,108
Website

Re: Make a new partition /home

Crooksey wrote:

Whats the correct numbering to place in it to my new fstab ?

My fstab is ordered like:

removable devices (noauto)

swap
/
/boot
/home

Offline

#5 2007-01-28 17:36:47

Crooksey
Member
From: UK ~
Registered: 2006-08-14
Posts: 415
Website

Re: Make a new partition /home

i Mean...

/dev/sda3 / xfs defaults 0 1
#/dev/sda4 /home xfs defaults 0 1

Are the 0's and 1's correct for /home ?


Arch Linux since 2006
Python Web Developer + Sys Admin (Gentoo/BSD)

Offline

#6 2007-01-28 17:56:59

hugin
Member
Registered: 2006-05-19
Posts: 93

Re: Make a new partition /home

Crooksey wrote:

i Mean...

/dev/sda3 / xfs defaults 0 1
#/dev/sda4 /home xfs defaults 0 1

Are the 0's and 1's correct for /home ?

That is the way mine is.  Now the way I understand it; from 'man fstab' is that the first 0 tells the dump command something (i've never actually seen anything here.) and the last 1 is the order in which fscks are run at reboot.  / should be 1, any others 2+.  now here is the kicker, partitions on the same drive get checked sequentially, so I would assume it wouldn't matter as long as it is non-zero; (as long as your / partition is closer to 0 than /home).  Maybe I'm wrong, but that is the way I've interpreted it.


/swogs


Open Toes; Open Mind; Open Source.

Offline

#7 2007-01-28 18:48:42

mutlu_inek
Member
From: all over the place
Registered: 2006-11-18
Posts: 683

Re: Make a new partition /home

The fifth entry has to do with automated backups. I never dealt with this, though.

A zero as the last (sixth) entry means that the filesystem will not be checked at all. This is the case for swap, proc, floppy and CD drives, etc. But it can also be handy in case there are known problems and you might want to ignore them until you get your hands on a backup drive (well, in that case do not automount).

The root file system should always get "1" so that it will be checked first.

All other filesystems are to be attributed a "2". They will be checked after /. I have never seen values over two. hugin, did you ever set it to three?

Last edited by mutlu_inek (2007-01-28 18:49:47)

Offline

Board footer

Powered by FluxBB