LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-30-2013, 01:24 PM   #1
bobba.surendra
LQ Newbie
 
Registered: Jan 2011
Location: nagpur
Distribution: centos,fedora 14
Posts: 22

Rep: Reputation: 0
what is Ext'd (LBA)?


This is my partition table. this is the output of fdisk -l command

Device Boot Start End Blocks Id System /dev/sda1 * 63 204796619 102398278+ 7 HPFS/NTFS/exFAT /dev/sda2 204796681 488375999 141789659+ f W95 Ext'd (LBA) /dev/sda5 204796683 337911209 66557263+ 83 Linux /dev/sda6 337911273 488375999 75232363+ 7 HPFS/NTFS/exFAT

can you help me understand the partition tabe especially /dev/sda2 which shows
 
Old 05-30-2013, 02:11 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,742

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
In a nutshell an extended partition ( i.e Ext'd) is a container for logical partitions. It is the means to be able to create more then 4 partitions with a MBR drive. Primary partitions are numbered 1-4 and logical partitions are anything>4.

When hard drives first became available one could only create 4 partitions. To overcome this limitation the primary/logical partition scheme was developed. When you select a primary partition to be an extended partition you can then create addition partitions called logical partitions. An extended partition is not mounted nor does it contain a file system.

To provide some addition confusion since MBR (Master Boot Record) drives are limited <=2TB we now have GPT. GPT also allows one to create more partitions then a MBR drive.
 
1 members found this post helpful.
Old 05-30-2013, 10:31 PM   #3
bobba.surendra
LQ Newbie
 
Registered: Jan 2011
Location: nagpur
Distribution: centos,fedora 14
Posts: 22

Original Poster
Rep: Reputation: 0
thank you very much for that.
I really want to learn more about logical partition and MBR limitations. So can you please tell me where to read, because i already googled it but didn't find a good source.
since this is my partition table:

Device Boot Start End Blocks Id System
/dev/sda1 * 63 204796619 102398278+ 7 HPFS/NTFS/exFAT
/dev/sda2 204796681 488375999 141789659+ f W95 Ext'd (LBA)
/dev/sda5 204796683 337911209 66557263+ 83 Linux
/dev/sda6 337911273 488375999 75232363+ 7 HPFS/NTFS/exFAT

can i partition /dev/sda5 again to create swap partition without re-installing Linux and keep the Linux in that partition only?
 
Old 05-31-2013, 07:18 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,742

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
Quote:
can i partition /dev/sda5 again to create swap partition without re-installing Linux and keep the Linux in that partition only?
I assume you are really asking about sda2 and not sda5. All the space within the extended partition is used. If there were additional free space outside of the extended partition you could either create a primary since 3&4 are not used or expand sda2 and create additional logical partitions. You can add swap space without reinstalling but I suggest adding a swap file which is just as good as a swap partition.


http://www.cyberciti.biz/faq/linux-a...ap-file-howto/

There are different limitations as to the total number partitions based upon the operating system and what linux version you are running. The 4 primary partition limitation is independent of OS, version etc. The latest linux versions due to using SCSI subsystem limit the total partitions to 15.

Some info:
http://en.wikipedia.org/wiki/Master_boot_record
 
Old 06-01-2013, 10:09 AM   #5
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,671
Blog Entries: 4

Rep: Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945Reputation: 3945
The bottom line is, as stated, there are exactly four slots in the (vintage ...) "partition table" on sector-0 of the hard drive. To circumvent that restriction, the notion of an "extended partition" was introduced: the first blocks of that partition contain a different, more-extended version of a "partition table" which the hardware-BIOS doesn't have to understand. Operating systems do. The final physical-partition encompasses all of the logical-partitions that have been defined within it.

Linux will detect the partitions (physical and/or extended) and during boot will assign "sdan" or "hdan" identifiers to them.
 
  


Reply

Tags
fdisk, partition



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
mounting W95 Ext'd (LBA) in FC5 sureshkellemane Linux - Newbie 5 12-11-2006 07:43 PM
Unexpected "W95 Ext'd (LBA)" partition Hawkboy Linux - General 3 10-02-2005 04:21 PM
Filesystems: ext 2, ext 3, reiserfs. Which one? r3dhatter Linux - Newbie 12 07-15-2004 12:53 AM
Change "Hidden W95 FAT32 (LBA)" to ""W95 FAT32 (LBA)" TroelsSmit Linux - Newbie 6 03-27-2004 07:01 PM
what is LBA? cyberswami Linux - Hardware 2 06-26-2003 06:23 AM

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

All times are GMT -5. The time now is 11:30 AM.

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