Swap partition in Linux

mikeshn

Senior member
Oct 9, 2001
367
0
0
I can't get one thing about the partition for Linux. I have on my computer hard drive 20 Gig.

The partition is:
mount point type size
/ ext2 15Gig
swap swap 400Mb
/home/win2000 FAT 4Gig
As I undestand that all Linux partitions MUST be under / or under root, but why swap is not under the root(/)

Thanks in advance
 

Derango

Diamond Member
Jan 1, 2002
3,113
1
0
Swap is different. Swap is mounted as a part of the system memory (or close enough to it). You're not suposed to be able to view or change things that are on the swap partition, so it dosen't go under /

If you check in /dev, there will be an entery for the partition you're using for your swap.