Jump to content

How many partitions on SATA ?


Frank Golden

Recommended Posts

Must not be a SATA drive. Can't have that many partitions with SATA. :)
Eric, what is the limit and does it apply to Windows?
Link to comment
Share on other sites

I answered you, Frank, but the board dropped a bunch of posts from yesterday. :">
Yup, I know it Eric. I did some research and it seems that the 15 partition limit is a Linux issue.I can't find any reference to Windows having a similar limitation. At any rate if a person were to partition a satadrive with more than 15 partitions with Windows installed on one or more of them and linux distros, the linux distroswould be limited to seeing only the first 15 partitions, ignoring the rest.During my search I found this e-mail question/response "explaining" this.http://www.opensubscriber.com/message/fedo...om/5241705.html
Tom Horsley wrote: In an excess of energy I decided to see how many different OSes I could install to compare their behavior with a weird X bug I encountered in FC6: https://bugs.freedesktop.org/show_bug.cgi?id=8790 I figured 20 gig was about enough for each root, and decided to create 7 small /boot partitions near the front of the disk (since so many boot loaders have problems with big addresses) and 7 20 gig partitions after that for different kernels (my disk is a 160 gig sata drive). Windows has no problems doing this, but fdisk -l won't print any info about partitions after /dev/sda15 and if I try to install FC5 on a system that actually has an sda16 and sda17 partition (even if I don't try to use them for anything), anaconda blows up at the partitioning stage when it is about to try to partition and install. If I go back to windows, delete the last two partitions, and re-install, all goes smoothly. Is there some rule I don't know about on the number of partitions? Or is it a rule about the starting address of a partition (can't be too big maybe)?I don't know -- you seem to have worked it out pretty well for yourself.Linux can't cope with anything more than sdx15.This is basically because Linux's SATA support is based on its SCSIsupport, which means it inherits the SCSI device numbers. And the SCSIdevice numbers were designed for large computers, with lots ofrelatively small disks.As a result, the current device numbering (which goes back to thebeginning of Linux) allows for 128 disks, but only sixteen "minor"numbers per disk -- one for the whole disk, four for the primarypartitions, and eleven (sdx5 to sdx15) for logical partitions.The 2.6.x kernel in theory would support "larger" device numbers, whichcould allow for even more SCSI disks and more partitions per disk -- butthat would leave incompatibilities with stuff that expected old-styledevice numbers. Last I heard, the kernel team were planning to switchduring the 2.7.x development tree -- which shows how long ago that was.Since the plans for 2.7 were dropped, everything seems to have gonequiet. http://lwn.net/Articles/54837/ from 2003 is about the most recentstatus update I can find.Sorry.James
Edited by Frank Golden
Link to comment
Share on other sites

V.T. Eric Layton
...if a person were to partition a satadrive with more than 15 partitions with Windows installed on one or more of them and linux distros, the linux distroswould be limited to seeing only the first 15 partitions, ignoring the rest.
That is precisely (well, almost) the problem that I used to have with my previous system setup. I had an EIDE drive with 18 partitions. My Linux /swap was partition #18. If I installed any of the Linux distros using the libATA kernel drivers, I could not get them to see /swap because it was above #15 on the drive. In one instance, I corrected this by compiling my own kernel without libATA (in Zenwalk). This worked great! I remember reading somewhere that SATA drives were limited to 15 partitions PERIOD, regardless of OS. Unfortunately, I can't find any info like that doing a quick Google search. I'm interested in a definitive answer.
Link to comment
Share on other sites

That is precisely (well, almost) the problem that I used to have with my previous system setup. I had an EIDE drive with 18 partitions. My Linux /swap was partition #18. If I installed any of the Linux distros using the libATA kernel drivers, I could not get them to see /swap because it was above #15 on the drive. In one instance, I corrected this by compiling my own kernel without libATA (in Zenwalk). This worked great! I remember reading somewhere that SATA drives were limited to 15 partitions PERIOD, regardless of OS. Unfortunately, I can't find any info like that doing a quick Google search. I'm interested in a definitive answer.
Hi Eric, I don't know if this is definitive but I just created 19 partitions on a spare sata drive to check it out.I created a mix of NTFS, Fat 32, ext3 and a linux swap partition.On the first partition (NTFS) I installed Win 7 RC and on the ext3 partition I installed Ubuntu 8.10 64 bit.Windows was able to see and access 17 of the 19 partitions (the linux partitions being invisible of course).See the screenshot below of My Computer showing the 17 partitions.th_Untitled-21.jpgUbuntu only shows 12 of the possible 15 partitions in Computer.I don't know why Ubuntu doesn't see all 15 but that is what it is.See screenshot below.th_t.jpgI would think however that the practical limit in Windows would be the limited drive letters available (only the 26 letters in the english language).From my testing it appears that the 15 partition limit doesn't apply to Windows. Edited by Frank Golden
Link to comment
Share on other sites

I would think however that the practical limit in Windows would be the limited drive letters available (only the 26 letters in the english language).
I'm almost positive I read somewhere that when the 26 English letters are used, then the designation is AA, BB, CC, etc. so another 26 are possible.Of course why anyone would need more than 26 partitions is beyond my comprehension. :hysterical:I can handle three on one computer and that's about my limit. More than that and it is too distracting and time consuming to be sure things are up to date.I'm up to 7 computers in the house - more than I really want and I will be somewhat thankful when MS drops support for windows 2000. Even though support was supposed to end July 2009, security/critical updates are still offered. I'll keep them online and updating until it ends. Then only 3 computers will need updating.
Link to comment
Share on other sites

V.T. Eric Layton
...why anyone would need more than 26 partitions is beyond my comprehension.
BIG hard drive... LOTS of Linux distributions installed! B)
Link to comment
Share on other sites

BIG hard drive... LOTS of Linux distributions installed! B)
Run them in VirtualBox and you need less partitions and can run 100's distros if you likeB) Bruno
Link to comment
Share on other sites

I'm almost positive I read somewhere that when the 26 English letters are used, then the designation is AA, BB, CC, etc. so another 26 are possible.
From Wikipedia article about drive letters.http://en.wikipedia.org/wiki/Drive_letter_assignment
It is not possible to have more than 26 mounted drives. If access to more filesystems than this is required, Volume Mount Points must be used.[6] However, it is possible to mount non-letter drives, such as 1:, 2:, or !: using the command line subst utility in Windows XP or Vista (i.e. "subst 1: c:\temp"), but this is not officially supported and may break programs that assume that all drive letters are A-Z.
I have on my main 320 GB HDD 9 partitions. (4 linux distros, 1 linux swap, Win 7, XP pro, a large NTFS and a large Fat 32 partition) Actually linux sees this as 10 because it counts the extended partition that has 5 logical partitions as an extra partitionwhich in reality it is.I think that for now I'm happy with my present arrangement but I feel for Eric in his need to run many distros because the limitation affects him more than me.As for the impact of the my 9 partitions relative to drive letter assignments the 5 ext3 partitions are completly ignored by Windows. Edited by Frank Golden
Link to comment
Share on other sites

The max for sata drives is 15 . . . and yes that is for Windows too. ;):hysterical: Bruno
Hi Bruno, doesn't apply to Windows. See the results of my testing posted later in this thread.th_Untitled-21.jpg17 partitions, all of them functional and accessible. Not counting the 1 ext3 and one Linux swap partitions that Windows can't see.That's 19 partitions.For some reason Ubuntu only sees 12. The swap makes 13 but of course it can't be mounted.
Link to comment
Share on other sites

V.T. Eric Layton

Yes. Very informative, Frank. I wish we would have started a new thread with this topic, though. Maybe Bruno or someone could split these threads about the SATA stuff off to a new thread?

Link to comment
Share on other sites

Late to the party, but yes, there are no restrictions to the number of partitions possible on a SATA drive other than the BIOS limitation of 4 primary partitions or 3 primary and 1 extended with no limit on the number of logical partitions (although I suspect with a 48-bit LBA system there must be some mathematical limit.) Windows using NTFS can handle more than 15 partitions and assign at least 26 drive letters while any extras can be dealt with using mount points.I suspect in Linux you could overcome the 15 partition limit using LVM, but I'd have to experiment with that.

Link to comment
Share on other sites

V.T. Eric Layton

The limit in Linux is caused by the libATA kernel drivers. I've shown that you can compile your own kernel w/o libATA that will recognize partitions over the 15 limit. Bruno and I both shook our heads about the use of libATA in the current kernels when they first started using it back in 2.6.x in 2006 or so. I never have understood the advantages of libATA. I'm sure it's something to do with hal or udev. It's over my head, though. :hysterical:

Link to comment
Share on other sites

Guess I will have to add my 02 cents worth. I use a 3rd party boot manager called boot-it-nt and can have up to 200 primary partitions on one drive if I so desire. below is the info. I have never tried it but maybe someone in the forum will someday. :thumbsup: MelBootItâ„¢ Next Generation

  • Compatible with all Windows versions (9x/Me/NT/2000/XP/2003/Vista/2008/Win7/Servers)
  • Compatible with x64 (AMD64/EM64T) and Windows 64bit OS (non-GPT)
  • IEEE1394/USB 2.0 high-speed support for imaging/partitioning
  • Support for large hard drives (2 TB) and partitions (1-2 TB)
  • Non-destructive resizing and conversion for FAT/FAT32
  • Non-destructive resizing for NTFS
  • Creation and (secure) deletion of partitions/volumes
  • Undelete partitions/volumes
  • FAT/FAT32 formatting
  • Copying and moving of partitions/volumes
  • Support for Linux Ext2/Ext3 and ReiserFS file systems
  • Imaging (including directly to CD-R/RW or DVD+R/+RW/-R/-RW)
  • Boot any partition on any hard drive (via BIOS)
  • Booting from the CD/DVD drive (via BIOS)
  • Boot multiple operating systems from a single partition
  • Create over 200 primary partitions (if desired)
  • User ID and password protection
  • Free minor-level version upgrades
  • And lots more!

TeraByte Unlimited has been a leading innovator of advanced multi-boot software since the mid-1990s. Click to see a quick history of BootItâ„¢

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...