Re: Moving /home to its own partition.
alex (<firstname.lastname@example.org>) wrote:
> Suppose Debian was installed on hda with only two partitions, swap
> and / and you have accumulated much data in /home.
> Later, you add another hard drive, hdb, and decided to place swap
> and a separate /home partition on this new drive while keeping / on
> the original hda.
> How would you create new swap and /home partitions om hdb so Debian
> would use these instead of the original /home and swap?
First, you make the partitions, for example with cfdisk.
Then you need to create a file system on your new home partition (with
mkfs.ext3 for example, depending on what filesystem you want to use)
and use mkswap with your swap partition. Use swapon to activate swap
Next, mount your new partition somewhere, e.g. in /mnt, move the data
from /home there, unmount the partition and remount it in /home. Add a
line for the partition in your fstab.
Registered Linux User #267976