[wplug] adding new drives
Chris Romano
romano.chris at gmail.com
Mon Apr 18 15:21:35 EDT 2005
On 4/18/05, Bill Moran <wmoran at potentialtech.com> wrote:
> Chris Romano <romano.chris at gmail.com> wrote:
> > I can can new create directorys and mount those disks to each
> > directory. Now this is where I need some help. I want to have them
> > mounted something like this:
> > sda3 /
> > sdb1 /home
> > sdc1 /tmp
> > sdd1 /var
> > sde1 /var/log
> > sdf1 something
> >
> > so would I do something like this:
> >
> > # cp -R /home /monted/sdb1
>
> If you do it this way, at least use -Rp (p tells the system to maintain
> permissions)
I just read that in the man pages.
> >
> > for each disk then add the entries to fstab?
> > /dev/sdb1 /home reiserfs ????? ? ?
> >
> > What would I put in the last three columns?
>
> The last three columns are:
> 4: Mount options, usually will be "defaults"
> 5: dump requirement - if you don't know what that means, then 0 is OK
> 6: fsck order, should be 1 for / and 2 for everything else.
Got it.
> > Am I going about this
> > right? I never had to add disks or edit the fstab before.
>
> This will work OK. I would recommend booting from a knoppix CD when you
> do the copies and fstab adjustments. cp can have trouble if files are in
> use. Many people recommend using dump | restore when copying the files
> for this kind of adjustment, since it seems to be a little more pedantic
> about maintaining file attributes than cp, but I've never seen cp fail.
> (again, I recommend you boot from Knoppix while doing the copy)
I have a Knoppix disk, so I will try that. Since I will be using
Knoppix, would it be better to use "mv" instead of "cp"?
Thanks,
Chris
More information about the wplug
mailing list