swap partition problem on install

Help with issues regarding installation of Debian

swap partition problem on install

Postby 11evele » 2005-02-09 04:47

i'm using woody cd install....i have one 12 gig drive as hda with xandros and suse. i'm installing debian on my 40 gig hdb but when it asks for swap partition it automatically associates it with hda1 with no other choice. i chose no swap and when i get to linux partition it shows hda1, hdb1 and hdb5, b5 is were i wanted the debian swap. i put debian on hdb1 and i'm going through with the no swap install to see what happens but once i am in debian can i create a swap? thanks guys, sorry for this debian newbie question...any help would be greatly appreciated!
Posts: 1
Joined: 2005-02-09 04:27

Postby lacek » 2005-02-09 12:22

The chices offered are the swap partitions which are already exist on the disk at the time the installer wants you to choose one.
So, if there is a Linux swap partition, you may choose only this one, and the installer probably doesn't create any more swap spaces.
There are a few things about the swap space you need to know:
- Swap space can be 'shared' between Linux distributions. Since swap space contains nothing but memory contents, there is no need to worry about it.
- You can create swap space later. You have two options here: make a swap to a partition (which is recommended), or create a swap file (like Windows do).
Using a swap file is somewhat slower. Here is how to do swap:
If you use a file, you'll need to create the swap file:
Code: Select all
dd if=/dev/zero of=/var/swap bs=1024k count=256

Be sure not to put your swapfile to /tmp, to /var/tmp, or to /var/run/ because these locations erased at system startup.

If the file (or the partition) is ready, you need to create a swap:
Code: Select all
mkswap <swapfile|/dev/partition>

If it is done, insert a line to /etc/fstab like this:
Code: Select all
<swapfile|partition>       none            swap    sw
Moderator Team Member
Posts: 769
Joined: 2004-03-11 18:49
Location: Budapest, Hungary

Return to Installation

Who is online

Users browsing this forum: No registered users and 12 guests