public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <J.E.J.Bottomley@HansenPartnership.com>
To: David Santinoli <u235@libero.it>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Partition renumbering under 2.4.0
Date: Wed, 17 Jan 2001 10:56:14 -0500	[thread overview]
Message-ID: <200101171556.KAA01055@localhost.localdomain> (raw)

> Note that the ext2 logical partition is called "hdb9" by 2.2.16 and
> "hdb5" by 2.4.0. This makes it difficult to manage multi-boot systems
> with 2.2.x and 2.4.x kernels, as it requires updating fstab between
> boots. Switching to other identification strategies such as ext2
> labels - as discussed in other threads - could be a workaround, as far
> as I know.

Your problem is caused by the identification loop in fs/partitions/msdos.c 
having been split into two parts in 2.4.  One part identifies msdos and 
extended partitions in the first pass and then goes on to identify other 
disklabel partitions in the second.  You can restore consistency either by 
combining the two passes (as was the case in 2.2) or by moving the extended 
msdos partition identification into the second pass.

However, the underlying problem remains the same as it was when I first wrote 
the solaris code:  You only have 11 minors for all of the remaining extended 
partitions, that's why the solaris code does the slice renaming.  Under 2.4, 
if you use devfs, the solaris (and other) slice recognition code could be 
enhanced to give the correct names to all the slices.  This would turn out to 
be something like /dev/ide/hdb2s7 (or something even worse---I'm afraid I only 
really know the naming scheme for SCSI devices) but at least you can find the 
exact slice you're looking for in an easy and intuitive way.

So, would you prefer the quick fix, or the more durable solution (which would 
require you to change your fstab)?

James


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

             reply	other threads:[~2001-01-17 15:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-17 15:56 James Bottomley [this message]
2001-01-19 11:38 ` Partition renumbering under 2.4.0 David Santinoli
  -- strict thread matches above, loose matches on Subject: below --
2001-01-17 11:54 David Santinoli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200101171556.KAA01055@localhost.localdomain \
    --to=j.e.j.bottomley@hansenpartnership.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=u235@libero.it \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox