LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-24-2003, 06:15 AM   #1
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Rep: Reputation: 30
which filesystem is my swap partition?


as the title says, i would like to know which
partition type my swap partition is, since if
it is not ext3 nor reiserfs, i can disable ext3
kernel support and trim it a bit further.

thanks in advance.
 
Old 07-24-2003, 06:43 AM   #2
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
swap file or partition does not contain a filesystem ,but the word is that you could turn swap into a filesystem made for swap called swapfs.Swap is where 'pages' of memory is stored ,if it fills up the memory.Memory management falls under a special branch of the OS and is one of the most important part.Swap space can be a dedicated swap partition , a swap file, or a combination of swap partitions and swap files.
 
Old 07-24-2003, 07:08 AM   #3
quip
Member
 
Registered: Jun 2003
Distribution: Slackware
Posts: 100

Rep: Reputation: 15
AFAIK, swap has its own "filesystem" called swap, hence the reason you must use the command mkswap when you are creating a swap partition, when you are creating it by hand with fdisk. Usually your distro's installer does this for you. You can disable ext3 support with no worries concerning swap.
 
Old 07-24-2003, 07:30 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
fdisk -l will display it if it's correctly created (filesystem type 82 I believe?)

Cool
 
Old 07-24-2003, 07:32 AM   #5
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Well very much ,I think that you are confusing the term swap space with filesystem.mkswap creates a swap space not a filesystem.Anyway ,according to my OS book,Swapping is usually done direct to a raw partition (directory hierarchy is irrelevant). In Solaris swapping is done to a combination of raw partitions and files (most local machines have 1 swap partition).But as I said swapfs is the new thing,it is mostly used for a temporary storage in windows machines but using the raw linux swap partition.The partitions are differenciated by the partition id,and so swap also have a partition id,in this way the linux os differenciates another partition with swap space.

Last edited by rch; 07-24-2003 at 07:36 AM.
 
Old 07-24-2003, 07:34 AM   #6
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
Ok the id of swap partition is 82
 
Old 07-24-2003, 07:35 AM   #7
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
and masterC swap is not a filesystem fdisk is looking at the partition id only
 
Old 07-24-2003, 07:49 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Thanks!

Cool
 
Old 07-24-2003, 08:15 AM   #9
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Quote:
Originally posted by rch
In Solaris swapping is done to a combination of raw partitions and files (most local machines have 1 swap partition).But as I said swapfs is the new thing,it is mostly used for a temporary storage in windows machines but using the raw linux swap partition.
Solaris has been using the swapfs concept for quite some time now. By default Solaris puts /tmp in swap unless you create a separate slice for it.
 
Old 07-24-2003, 08:26 AM   #10
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
thank you all for the replies. i will recompile
my kernel now without ext3 support
 
Old 07-24-2003, 08:50 AM   #11
rch
Member
 
Registered: Feb 2003
Location: Santa Clara,CA
Distribution: Mandriva
Posts: 909

Rep: Reputation: 48
stickman thanks for the info,you see I don't use solaris,never even touched a machine with that os running, and I have no idea whatsoever about solaris(except what I have read ,and that's peanuts),I don't even know whether the kernel is microkernel or monolithic(like linux).
(and MasterC you're welcome ,I am pretty sure that this must be a unique day when I am telling a mod(and someone with 8600 posts) something that they do not know)
 
Old 07-24-2003, 09:05 AM   #12
neenee
Member
 
Registered: Feb 2003
Location: Netherlands
Distribution: debian (sid)
Posts: 693

Original Poster
Rep: Reputation: 30
reporting back from my kernel recompile;
it works like a charm. thanks all.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Do I have a problem with my swap filesystem? terrier77 Linux - Newbie 4 07-12-2005 05:48 AM
do you really need a SWAP partition? Lleb_KCir Linux - General 15 08-05-2004 09:20 PM
3 issues: Making swap, fixing partitions, changing ownership of mounted filesystem. Dunedain Linux - Newbie 2 01-27-2004 03:52 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 08:45 AM
Should I be using a SWAP partition? Gene126 Linux - General 3 08-14-2002 09:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration