Hello

alex (<[EMAIL PROTECTED]>) 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
partitions.

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.

best regards
        Andreas Janssen

-- 
Andreas Janssen
[EMAIL PROTECTED]
PGP-Key-ID: 0xDC801674
Registered Linux User #267976


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to