Re: random partition/mount question


Subject: Re: random partition/mount question
From: Ed Jaeger (ed.jaeger@bgcorp.com)
Date: Wed Apr 19 2000 - 22:39:57 MDT


Yes. After you install the new drive & reboot create a temporary mount
point for it (mkdir /mnt/home-new). Partition & format the new drive
with fdisk & mke2fs, then mount it on /mnt/home-new. Then copy your
existing /home over - I use cpio to preserve permisions, modification
times, etc:

cd /home
find . -depth -print | cpio -pdmuv /mnt/new-home

When you're done change /etc/fstab to reflect your new drive and then
rename /home to /home-old (otherwise mounting the new drive at /home
will make the existing files unreachable). Then restart.

Phil Kirschner wrote:
>
> Newbie-like question about partitioning/mounting for the list:
>
> If I install linux onto a drive, not giving /home it's own partition, how
> hard would it be to change where /home is mounted from if I bought another
> drive and wanted to put my /home files on there and have it be mounted to
> /home instead of the existing files which would need to be moved over to the
> new drive?
>
> Was that long winded enough? Basically, can I get a new drive, mount it, cp
> the /home directory files to it, and then set that drive to mount as /home
> in /etc/fstab?
>
> Any help would be amazing.
>
> -Phil
>
> --
>
> "Today's CS lecture will be conducted entirely through the medium of
> interpretive dance."
> -Something I've always wanted to hear but never will.

-- 
---
Ed Jaeger

"A man is not old until regrets take the place of dreams."

-- John Barrymore



This archive was generated by hypermail 2a24 : Sun Apr 23 2000 - 22:14:40 MDT