swap partition

Brian23

Banned
Dec 28, 1999
1,655
1
0
I installed linux on my computer. During the partitioning, I shrank my windows partition 10GB smaller and created 2 primary partitions. I set the one to type 83 and mounted it as / and the other to type 82 (swap). The install completed successfully, but when linux is booting it says it's not using a swap partition. Is this bad? Should I fix it? How do I fix it?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
How do you know it's not using the swap partition?

Since you've already created the partition for it, you should be able to just run 'mkswap /dev/whatever' and add a line like '/dev/whatever none swap sw 0 0' to /etc/fstab. Replacing whatever with the correct device node for your swap partition, you can run 'fdisk -l /dev/hda' to have it print the partition table on the primary IDE master.
 

Brian23

Banned
Dec 28, 1999
1,655
1
0
ok, so I just format it with
mkswap /dev/hda3

and then append the following to /etc/fstab
/dev/hda3 none swap sw 0 0

What do I need fdisk for? I already created the partition for hda3, it's just not being used.

Besides it saying during bootup that it's not using a swap partition, if I press ctrl+esc in KDE then a task manager will come up and it says there is no swap.
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
What do I need fdisk for? I already created the partition for hda3, it's just not being used.

fdisk was just to make sure you got the right one, you can run mkswap on any partition no matter what's on it and overwrite a chunk of the data.
 

ASK THE COMMUNITY