[101237] in RedHat Linux List

home help back first fref pref prev next nref lref last post

Re: SWAP Partition

daemon@ATHENA.MIT.EDU (Terrance L Eck)
Wed Nov 25 10:13:06 1998

Date: Wed, 25 Nov 1998 09:14:01 -0600 (CST)
From: Terrance L Eck <eck@ti.com>
To: redhat-list@redhat.com
In-Reply-To: <4.1.19981125085102.00a0a8f0@208.206.219.2>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com

On Wed, 25 Nov 1998, [iso-8859-1] R=E9my FAURES wrote:
> I am currently running a mailling list server, on a RH 4.2 (kernel 2.0.30=
) box.
>=20
> The system is set up with a 1GB hard drive for the Linux native partition
> (IDE1) and a second hard drive (IDE2) for the swap partition (128MB).
>=20
> hda=09IDE1 master=09linux native
> hdb=09IDE1 slave=09cd-rom
> hdc=09IDE2 master=09linux swap
>=20
> The IDE2 hard drive is pretty large, and as I don't use it for anything
> else but the swap, I would like to exchange it for a smaller one I have i=
n
> spare (~250MB)
>=20
> Is there any way I can replace do that ? Can I connect the  smaller HD as
> hdd (IDE2 slave), create a swap partition on it (same size as the current
> one), format the partition and then unplug the hdc and use the new hard
> drive as the swap partition ?
>=20
> How can I do that stpe by step ? Where in the system can I specify the Sw=
ap
> partition ? How can I format it ? Do I need to boot up from a floppy ?
>=20

I'd install the small HDD in hdc (IDE2) and reboot as normal letting
linux complain about swap space problems. The first thing you need=20
to do is run "/sbin/fdisk /dev/hdc" and setup you swap partition. Then
run /sbin/mkswap(sp?) to format the swap partition. Next make sure that
the swap entry line in /etc/fstab points to the correct drive and
partition. After this is all done either reboot or run swapon. Check
the man pages for fdisk, mkswap(sp?), and swapon. Good Luck.

Terry Eck
eck@ti.com=20



-- 
  PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
		http://www.redhat.com http://archive.redhat.com
         To unsubscribe: mail redhat-list-request@redhat.com with 
                       "unsubscribe" as the Subject.


home help back first fref pref prev next nref lref last post