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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
08-21-2004, 09:37 PM
|
#1
|
Member
Registered: Jun 2004
Posts: 256
Rep:
|
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?
|
|
|
08-21-2004, 09:57 PM
|
#2
|
Senior Member
Registered: Feb 2003
Location: N'rn WI -- USA
Distribution: Kubuntu 8.04, ClarkConnect 4
Posts: 1,142
Rep:
|
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.
|
|
|
08-21-2004, 10:24 PM
|
#3
|
Moderator
Registered: Aug 2002
Posts: 26,120
|
Actually an IDE can have up to 64 partitions, a SCSI drive is 16.
|
|
|
08-21-2004, 11:53 PM
|
#4
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
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 >
|
|
|
08-22-2004, 12:11 AM
|
#5
|
Member
Registered: Mar 2003
Distribution: FreeBSD 6.1, NetBSD 3.0.1
Posts: 170
Rep:
|
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.
|
|
|
08-22-2004, 02:43 AM
|
#6
|
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503
Rep:
|
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.
|
|
|
08-22-2004, 07:47 AM
|
#7
|
Moderator
Registered: Aug 2002
Posts: 26,120
|
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.
|
|
|
All times are GMT -5. The time now is 02:21 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|