Re: [aclug-L] Adding Harddrive
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
fdisk /dev/hdb
n p 1 1 <CR>
t 1 82
w
swapoff /dev/hda<number of swap partition>
fdisk /dev/hda
d p <number of swap parition>
n p <number of old swap partition> <CR> <CR>
w
mkswap /dev/hdb1
swapon /dev/hdb1
mkfs -t ext2 /dev/hda<number of old swap partition>
pico /etc/fstab
In other words:
Create a new partition on the new drive of type 82 (Linux Swap).
Turn swap off (swapoff /dev/hdaX). mkswap the new partition. Turn swap
on there (swapon /dev/hdbX). Edit /etc/fstab to reflect the changes.
On Sun, 8 Aug 1999, David Carmichael wrote:
> One I hope quick and easy to answer question:
>
> If I install a second {slave} harddrive, what do I need to do to move the
> Linux Swap File to the new harddrive and recover the space on the master for
> the '\' or '\root'
>
> --David
>
>
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Jonathan Hall * jonhall@xxxxxxxxxxxx * PGP public key available
Systems Admin, Future Internet Services; Goessel, KS * (316) 367-2487
http://www.futureks.net * PGP Key ID: FE 00 FD 51
-= Running Debian GNU/Linux 2.0, kernel 2.0.36 =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
|