[wplug] adding new drives
Bill Moran
wmoran at potentialtech.com
Mon Apr 18 15:15:46 EDT 2005
Chris Romano <romano.chris at gmail.com> wrote:
> I just installed Slack 10.1 on an older windows box. It has 6 SCSI
> drives. During the install, slack only picked up the first disk. I
> just installed everything under "/". After install I did the
> following for the other five disks.
>
> # fdisk /dev/sdb
> d (delete part)
> n (new part)
> p (primary)
> 1 (1st one)
> w (write)
>
> # mkfs.reiserfs /dev/sdb1
>
> 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)
>
> 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.
> 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)
--
Bill Moran
Potential Technologies
http://www.potentialtech.com
More information about the wplug
mailing list