Complete.Org: Mailing Lists: Archives: discussion: August 1999:
Re: [aclug-L] Adding Harddrive
Home

Re: [aclug-L] Adding Harddrive

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: aclug-L@xxxxxxxxxxxx
Subject: Re: [aclug-L] Adding Harddrive
From: Jonathan Hall <jonhall@xxxxxxxxxxxx>
Date: Sun, 8 Aug 1999 15:54:37 -0500 (CDT)
Reply-to: aclug-L@xxxxxxxxxxxx

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  =-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


[Prev in Thread] Current Thread [Next in Thread]