Connect Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 5 May 2009

How to Identifying types of Partitions in Linux

Posted on 13:55 by Unknown

Each partition on a hard disk is independent of the other partitions. For example, you can divide a hard disk into two partitions to install two different operating systems. An operating system will use its own partition to store data, independent of any other partition on a hard disk.  

The various types of partitions in Linux are: 
 
· Primary partitions 
· Logical and extended partitions 
· Swap partitions 

Each type of partition is assigned a numeric code. This code is automatically generated and has a fixed value. For example, the numerical code of the swap partition is 0x82. 

Primary Partitions 
 
When a partition is created on a hard disk for the first time, it is called the primary partition. A hard disk can have a maximum of four primary partitions. From the primary partitions present on the hard disk, only one partition can be subdivided into logical partitions. The partition with the logical partitions is called the extended partition. You can subdivide an extended partition into a maximum of 63 subsections. 
 
The MBR stores the information about all the primary partitions, such as the size of the Partitions in terms of sectors, blocks, and cylinders, and the offset from the zeroth cylinder.

Logical and Extended Partitions :

A hard disk can be divided into a maximum of four primary partitions. Therefore, you can only install four operating systems on a computer. If you want to install more than four operating systems, divide the extended partition into logical partitions.  
 
A logical partition is similar to a primary partition. Each logical partition consists of a pointer that contains the address of the next logical partition. All the logical partitions of a hard disk need to be contiguous. 
 
The first sector of an extended partition contains a block of partition descriptor, which contains the information about all the logical partitions. Linux imposes a limit on the number of types of partitions on a hard disk and on the number of logical partitions on the hard disk.  

For example, the maximum number of partitions is 63 on an IDE disk and 15 on a SCSI disk.

Swap Partitions :

A process that runs on a system is allocated certain blocks of the RAM, which are known as pages. Linux identifies the pages that a process can access, and stores those pages in the RAM. When the number of processes that run on a computer increases, the kernel releases the space on the RAM. To do this, the kernel writes the inactive pages back to the hard disk. The storage area of the hard disk where the inactive pages are written back is known as the swap space.  
 
You can specify a swap space as a swap partition, swap file, or a combination of a swap partition and a swap file. A swap partition is a separate division of a hard disk used for storing the pages that are written back from the RAM. A swap file is an ordinary file and is used by an operating system to store the inactive pages from the memory

Created by Amit Maheshwari

Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • How to schedule a PHP script in task scheduler
    Quiet often there is a need to execute/run  php  script on some time interval at server side. And that php scripts should run automatically ...
  • HTTP Error 403.19 – Forbidden The configured user for this application pool does not have sufficient privileges to run CGI applications.
    If you get the error “HTTP Error 403.19 – Forbidden The configured user for this application pool does not have sufficient privileges to...
  • Roles and Features showing an error HRESULT: 0x800F0818 in Server Manager of windows server 2008 R2
    When you open Server Manager both Roles and Features display Error and you are unable to add any role or features. When you select the det...
  • How to configure IIS 7 to redirect non-www domain to www domain?
    One of few legacy leftovers that was never dropped over the years is the common use of www domain prefix. It is not a problem per se for us...
  • Error - "Failed to retrieve data for this request (Microsoft.SqlServer.Management.sdk.sfc)"
    ErrError    - In Microsoft SQL Management Studio 2008, you receive the following error message when you try to expand the Databases:      ...
  • Reset Mysql root Password using my.ini
    Follow the below given steps to reset the Mysql root password : 1.Browse to your MySQL installation directory. 2. In there, go to "Data...
  • Disallowed Parent Path
    If you are unable to access the website and facing the below error: Active Server Pages error 'ASP 0131' Disallowed Parent Path /adm...
  • How to resolve Windows Login Error: "An unauthorized change was made to Windows"
    After connecting to windows server via RDC, you receive error “ An unauthorized change was made to Windows ” Resolution: 1) Click the opt...
  • How to upgrade Zen Cart 1.3.9 to Zen Cart 1.5
    To upgrade your Zen Cart 1.3.9 to Zen Cart 1.5, follow the following steps. (For this tutorial, I assume you are using cpanel web hosting) 1...
  • Block IP from accessing website using .htaccess
    Block IP from accessing website using .htaccess To block certain ip address from accessing your website, just create a file with name .hta...

Categories

  • booting Process
  • linux
  • redhat

Blog Archive

  • ►  2013 (68)
    • ►  July (1)
    • ►  May (2)
    • ►  April (11)
    • ►  March (54)
  • ►  2012 (44)
    • ►  September (20)
    • ►  August (1)
    • ►  July (4)
    • ►  June (12)
    • ►  May (2)
    • ►  March (4)
    • ►  February (1)
  • ►  2011 (1)
    • ►  February (1)
  • ▼  2009 (9)
    • ►  September (3)
    • ►  August (2)
    • ►  June (1)
    • ▼  May (2)
      • How to Identifying types of Partitions in Linux
      • Understanding Booting Process in LINUX
    • ►  March (1)
Powered by Blogger.

About Me

Unknown
View my complete profile