LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 08-21-2004, 09:37 PM   #1
blackzone
Member
 
Registered: Jun 2004
Posts: 256

Rep: Reputation: 30
fdisk partition


confused about partition.

Read a book and says MBR is limited to 4 primary partition, or 3 primary + 1 extended.

Does that mean 1 harddisk can only have a max of 4 primary partition. Or all harddisk together can only have a max of 4 primary partition.
==================================================

so that means if all my disk is primary, I can't have:
/dev/hda1
/dev/hda2
/dev/hda3
/dev/hdb1
/dev/hdb2
==================================================

and how do I check if my current disk is primary or extended?
 
Old 08-21-2004, 09:57 PM   #2
ranger_nemo
Senior Member
 
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142

Rep: Reputation: 47
Each disk can have four primary partitions. If you include logical partitions, each disk can have up to 15 partitions.

To check your disk, run "fdisk -l", and it will list the partitions you have.
 
Old 08-21-2004, 10:24 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Actually an IDE can have up to 64 partitions, a SCSI drive is 16.
 
Old 08-21-2004, 11:53 PM   #4
2damncommon
Senior Member
 
Registered: Feb 2003
Location: Calif, USA
Distribution: Debian Wheezy
Posts: 2,838

Rep: Reputation: 48
From my kernel boot log:
Code:
hda: hda1 hda2 hda3 hda4 < hda5 hda6 hda7 hda8 hda9 hda10 hda11 hda12 hda13 hda14 hda15 hda16 hda17 hda18 >
hda2: <solaris: [s0] hda19 [s1] hda20 [s2] hda21 [s7] hda22 >
hda3: <bsd: hda23 hda24 hda25 hda26 hda27 >
 
Old 08-22-2004, 12:11 AM   #5
Tuvok
Member
 
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170

Rep: Reputation: 30
Re: fdisk partition

Quote:
Originally posted by blackzone
and how do I check if my current disk is primary or extended?
fdisk -l /dev/hda

If you want to know about the size of current partition:
df -h

Last edited by Tuvok; 08-22-2004 at 12:15 AM.
 
Old 08-22-2004, 02:43 AM   #6
Crashed_Again
Senior Member
 
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah...the first three partitions are primary partitions. Then the fourth partition(/dev/hda4) is the extended partition. When you create the extended partition in fdisk you create it to use the rest of the disk. Then everything after that(/dev/hda5, /dev/hda6, etc.) will be a logical partition that is housed within the extended partition. So /dev/hda4 can't really be assigned to a specific directory since its not a useable partition.
 
Old 08-22-2004, 07:47 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 11,801

Rep: Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721Reputation: 721
Actually, you can assign the extended partition filesystem type to any one of the 4 primary partitions. In fact, windows will use the 2nd primary parititon as extended when creating additional drives.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Partition Id in fdisk DaVenom Linux - General 3 09-06-2005 08:45 AM
Cannot delete partition with fdisk jackpal Linux - Hardware 2 07-18-2005 11:57 AM
Partition with fdisk fails!? nr5 Linux - Software 12 01-11-2005 02:03 PM
FDisk Partition for DSL totalshredder Linux - Newbie 1 01-03-2005 05:03 PM
How do I partition on fdisk? Sa3atsky Slackware 4 09-10-2004 06:47 PM


All times are GMT -5. The time now is 06:37 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration