The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Operating Systems > Linux > Red Hat
.
google unix.com



Red Hat Red Hat is the world's leading open source technology solutions provider with offerings including Red Hat Enterprise Linux (RHEL), Fedora, open source applications, security and systems management, virtualization, and Services Oriented Architecture (SOA) solutions.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How much Swap is too much? scotbuff HP-UX 11 03-11-2009 08:05 PM
Swap config - Mirror swap or not? BG_JrAdmin SUN Solaris 3 01-06-2008 10:25 PM
aix swap jabberwocky AIX 6 02-16-2006 10:17 AM
About swap Ty3 UNIX for Dummies Questions & Answers 1 01-06-2006 10:31 AM
Swap macdonto UNIX for Dummies Questions & Answers 3 04-04-2002 11:51 AM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 10-29-2009
dplinux dplinux is offline
Registered User
  
 

Join Date: May 2009
Location: Irving,TX
Posts: 32
swap not defined as swap

free -m : 1023 total swap space

created default partition /dev/sdb1 50M using fdisk. i did write the changes.
#mkswap /dev/sdb1
#swapon /dev/sdb1

free -m : 1078 total swap space
this shows that the swap is on

Question : i did not change the type LINUX SWAP (82) in fdisk.
so why is the swap still working because
#fdisk -l : still shows ID = 83 System= Linux
instead should it now show ID= 83 System = Linux Swap


Thanks
  #2 (permalink)  
Old 10-29-2009
mark54g mark54g is offline
Registered User
  
 

Join Date: May 2008
Posts: 369
Not all programs use the partition type at all.

Also, you can make swap out of a file. How could that work if you were reliant on a partition type?
  #3 (permalink)  
Old 10-29-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
I haven't found anything in linux that actually uses the partition type. To it it's just a label.
  #4 (permalink)  
Old 10-30-2009
dplinux dplinux is offline
Registered User
  
 

Join Date: May 2009
Location: Irving,TX
Posts: 32
what are the partion types then

I completely understand and am aware of swap space on file...
but what i am curious to know is that when we do fdisk and we have bunch of file system types..what are they for then..? are they just there for label since ?

thanks
  #5 (permalink)  
Old 10-30-2009
Corona688 Corona688 is offline
Registered User
  
 

Join Date: Aug 2005
Location: Saskatchewan
Posts: 1,972
I think Windows pays more attention to them than Linux does.
  #6 (permalink)  
Old 10-30-2009
pludi's Avatar
pludi pludi is offline Forum Staff  
Moderator
  
 

Join Date: Dec 2008
Location: .at
Posts: 1,950
It's got more to do with automatic detection, than anything else. If you've got more than 1 UNIX installed, any installation can detect the swap partition just by looking at the ID. For example, if you mark partitions as FD (Linux raid auto), the dmraid utilities will automatically add them to its RAID volume.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 04:51 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0