Bug 214992 - Cannot install to partition > 15 on PATA
Summary: Cannot install to partition > 15 on PATA
Status: RESOLVED WORKSFORME
: 215766 216524 (view as bug list)
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Installation (show other bugs)
Version: Beta 1 plus
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Karl Eichwalder
QA Contact: Jiri Srain
URL:
Whiteboard:
Keywords:
Depends on: 218122
Blocks:
  Show dependency treegraph
 
Reported: 2006-10-25 16:14 UTC by Felix Miata
Modified: 2006-11-27 15:35 UTC (History)
7 users (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments
patch for util-linux to enable partx (2.02 KB, text/plain)
2006-11-02 17:20 UTC, Carl-Daniel Hailfinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Miata 2006-10-25 16:14:35 UTC
I've run into this insanity elsewhere on SATA due to its absurd limit on partitions per physical device. Now in an attempted factory ftp install from mirrors.kernel.org using 20 Oct kernel and initrd I get these messages:

Your disk /dev/sdc contains 24 partitions. The maximum number of partitions that the kernel driver of the disk can handle is 15. Partitions numbered above 15 cannot be accessed.

Your disk /dev/sda contains 22 partitions. The maximum number of partitions that the kernel driver of the disk can handle is 15. Partitions numbered above 15 cannot be accessed.

Attempting to proceed to the partitioning step caused the graphical installer to abort with exit code 139 on tty3, dumping me to the initial text installation menu.

The i815/ICH2 system has neither SATA nor SCSI nor RAID nor connected USB devices. The only card devices are Matrox G400 AGP and Intel Pro100 PCI NIC. The installation target is /dev/hdc21, which has a previous factory install as /dev/hda21.
Comment 1 Matej Horvath 2006-10-26 12:54:56 UTC

*** This bug has been marked as a duplicate of bug 58805 ***
Comment 2 Felix Miata 2006-10-26 14:03:57 UTC
Bug 58805 is private. Why? How does one discover or follow such a bug? Shouldn't this be left open and set to depend on the hidden bug so others won't need to be filing more duplicates? Is there some workaround so that people won't need to switch to Ubuntu? That bug is marked fixed. When was it fixed?
Comment 3 Andreas Jaeger 2006-10-26 14:34:15 UTC
Bug 58805 is an rather old bug, I cannot make it public due to its permissions but I added you to it so that you can read it yourself.

Basically:
The amount of partitions per block device is hardcoded into the kernel, udev 
won't help in any way with it. So from a kernel point of view, this is  
WONTFIX. (CANTFIX to be more exact ...).

But let me reopen this one. 
Comment 4 Andreas Jaeger 2006-10-26 14:34:43 UTC
Hannes, this is one of the "features" of going to libata.
Comment 5 Felix Miata 2006-10-26 15:09:19 UTC
FIXED seems to be an inappropriate resolution for bug 58805. Based on the way it was handled, either it isn't fixed (e.g. cantfix), or it was left assigned to the wrong component.

If the kernel people have a public bug database with bug(s) on this subject it would be nice to refer to it here. Interested parties might then be able to discover when they can expect to be able to use their existing systems with new SUSE versions without a complete overhaul of their partitioning philosophies and backup strategies. This will be a recurring problem. Disks have gotten too big for the kernel's artificial partition count limitation.
Comment 6 Hannes Reinecke 2006-10-27 07:25:43 UTC
You can always install when specifying 'brokenmodules=ata_piix' on the commandline. This will instruct the installer to omit the 'ata_piix' module (and hence the libata support) and installation will continue as normal.

Reducing to normal as workaround is available. AJ, we should put this in the release notes / documentation somewhere.
Comment 8 Andreas Jaeger 2006-10-27 07:38:42 UTC
Karl, please add something to the release notes.
Comment 9 Steffen Winterfeldt 2006-10-27 10:01:01 UTC
10.2 will default to the 'classical' ide drivers. You can use
'hwprobe=modules.pata' to switch to the libata based variants.

The code just didn't cover the piix vs. ata_piix case. I've fixed that now.
With beta 2 things should be back to normal.
Comment 10 Andreas Jaeger 2006-10-27 16:07:10 UTC
*** Bug 215766 has been marked as a duplicate of this bug. ***
Comment 11 Thomas Fehr 2006-10-31 12:14:09 UTC
*** Bug 216524 has been marked as a duplicate of this bug. ***
Comment 12 Carl-Daniel Hailfinger 2006-11-02 17:20:22 UTC
Created attachment 103559 [details]
patch for util-linux to enable partx

If you have util-linux with attached patch installed, make sure no partition on sda is in use (swap/suspend/mounted), then
# partx -d /dev/sda
# kpartx -a /dev/sda
Now /dev/sda[1-15] have vanished and /dev/disk/by-name/sda[1-255]
appear instead. Mounting these devices works normally.

Problem solved.
Comment 13 Carl-Daniel Hailfinger 2006-11-02 17:29:47 UTC
The partx/kpartx command sequence has to be included in the initrd to work reliably. But then you can even boot from such a disk.

One bug in kpartx would need to be fixed for full compatibility: kpartx does not create mappings for extended partitions, but the in-kernel partitioning code does.
Comment 14 Carl-Daniel Hailfinger 2006-11-03 03:06:08 UTC
cthiel: Can you take a look at this feature while aj is away?
Comment 15 Christoph Thiel 2006-11-03 14:41:24 UTC
Andreas, can you please take care of the util-linux part? (enable partx)?

Hannes, would it be possible to add this as an option to mkinitrd, so users who really need this, can enable it?
Comment 16 Christoph Thiel 2006-11-03 14:55:20 UTC
After talking to Hannes, we won't add this option to mkinitrd.

Karl, let's put this into the release notes, as proposed in comment #8. Thanks!
Comment 17 Carl-Daniel Hailfinger 2006-11-06 16:56:10 UTC
Bug 218122 has my mkinitrd patch for this.
Comment 18 Karl Eichwalder 2006-11-07 08:05:49 UTC
Comments are still too confusing to me.  Please, provide a short text proposal and assign the bug to me.
Comment 19 Matthias Koenig 2006-11-07 13:01:55 UTC
Patch for util-linux submitted.
Comment 20 Christoph Thiel 2006-11-07 14:38:16 UTC
Thanks Matthias! Let's push this bug over to Karl now.
Comment 21 Christoph Thiel 2006-11-07 14:39:26 UTC
Hannes, could you please brief Karl on what needs to be put into the release notes?
Comment 22 Hannes Reinecke 2006-11-24 13:09:19 UTC
Well, actually nothing. The default installation works as before. Only those who'd like to try the new PATA drivers can use the flag during installation. And then they should be aware that sda supports only 15 partitions. Not that you can create more than 15 partitions via YaST, but one should document it.
Comment 23 Karl Eichwalder 2006-11-27 15:35:31 UTC
Because the problem obviously is fixed, it is not needed to add it to the RNs (see #22).  Documenting the new PATA drivers is a documentation issue (FATE?).