PDA

View Full Version : How to make SWAP file other location than hda1I



borru
05-14-2004, 10:30 PM
Anyways... i have low memory problem... and i use hda1 as win boot partition (its only 8MB long). Is it bossible to create SWAP on ext2 filesystem?

The location i want to create the SWAP is dev/mnt/hdc6 and it has ext2 on it.

user unknown
05-15-2004, 12:00 AM
yes and no.

You may create a swap-partition on /dev/hdc6

btw: A name like /dev/mnt/hdc6 is a curious mixture of two things:
The devices are organized on linux in /dev, with /dev/hdc6 being the third device at the hd-controller (a, b, c) and 6 the 6th partition.

If you mount something, you do this to /mnt/hdc6 by convention, and not in the /dev-tree.

Now to the question of ext2:
If you create a swap-partition, you don't put a filesystem on that partion.
To prepare it for swap, you call fdisk for hdc:

fdisk hdc
and specify filesystem-type no. 82 (lijnux swap).
You get a list of fs-types with 'l' as 'list'.