public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Partition IDs in the New World TM
@ 2001-01-22 16:17 Andrew Clausen
  2001-01-22 16:32 ` Brian Gerst
  2001-01-22 22:16 ` Glenn McGrath
  0 siblings, 2 replies; 23+ messages in thread
From: Andrew Clausen @ 2001-01-22 16:17 UTC (permalink / raw)
  To: linux-fsdevel, bug-parted, linux-kernel

Hi all,

We have roughly 10 different types of partition tables.  We hate
them, but it looks like they won't be going away for a long time.

Partition IDs seem to create a lot of confusion.  For example,
most people use 0x83 for both ext2 and reiserfs, on msdos
partition tables.  People use "Apple_UNIX_SVR2" for ext2 on
Mac, etc.

Linux doesn't really use partition IDs.  Well, not entirely
true... it's used on Mac's as a heuristic, for finding swap
devices, etc. - but I think this unnecessary.

LVM also uses it, but I also think it's unnecessary.

So, can anyone remember why we have partition IDs?  (as opposed
to just probing for signatures on the fs)  If new partition table
types come out (which is happening, believe it or not...), how
should Linux/fdisk/parted handle IDs?  Should we have one Linux
type, that we use for everything?  Should we have one type for each
TYPE of data (file system, swap, logical volume physical device, etc.)?

Tchau,
Andrew Clausen
-
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/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Partition IDs in the New World TM
@ 2001-01-22 22:42 Andries.Brouwer
  2001-01-22 17:35 ` Mark I Manning IV
  0 siblings, 1 reply; 23+ messages in thread
From: Andries.Brouwer @ 2001-01-22 22:42 UTC (permalink / raw)
  To: bug-parted, clausen, linux-fsdevel, linux-kernel

Andrew Clausen writes:

> can anyone remember why we have partition IDs?

Partition IDs are not necessary. Linux works fine
when you have no partition table at all, and have a
parttab file in an initrd disk telling the kernel where
the partitions are supposed to be.

No kernel changes required. Today you do not need partition IDs.
Today you can dynamically add and delete partitions,
without involving anything like a partition table.

But people use various schemes to partition their disks,
mainly because also other operating systems like DOS or MacOS
use the same disks. In such a situation it is useful to
agree with the other OS on where the partitions are.

Andries
-
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/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Partition IDs in the New World TM
@ 2001-01-22 22:55 Andries.Brouwer
  0 siblings, 0 replies; 23+ messages in thread
From: Andries.Brouwer @ 2001-01-22 22:55 UTC (permalink / raw)
  To: Andries.Brouwer, linux-kernel, mark4

> does partitioning slow things down?

No.
-
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/

^ permalink raw reply	[flat|nested] 23+ messages in thread
* Re: Partition IDs in the New World TM
@ 2001-01-23 15:46 Andries.Brouwer
  0 siblings, 0 replies; 23+ messages in thread
From: Andries.Brouwer @ 2001-01-23 15:46 UTC (permalink / raw)
  To: adilger, hpa; +Cc: linux-kernel

Andreas Dilger writes:

: What would be wrong with changing the kernel to skip the first page
: of swap, and allowing us to put a signature there?

Swap space already has a signature. Read mkswap(8).
-
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/

^ permalink raw reply	[flat|nested] 23+ messages in thread
[parent not found: <OF03708398.46274A87-ON872569DD.005CA0DE@LocalDomain>]
[parent not found: <OF5F9BE7DB.C1ADFB0E-ON872569DD.006485CC@LocalDomain>]
* Re: Partition IDs in the New World TM
@ 2001-01-24 10:28 Andries.Brouwer
  0 siblings, 0 replies; 23+ messages in thread
From: Andries.Brouwer @ 2001-01-24 10:28 UTC (permalink / raw)
  To: adilger, yakker; +Cc: hpa, linux-kernel

Andreas Dilger wrote:

> It would already be possible to auto-enable any devices with the swap
> signature by doing the same sort of search mount(8) is doing for LABEL
> and UUID.

That would be a very poor idea.
Since different filesystems have signatures in different places,
a partition may well have signatures for several filesystem types.
Similarly, many filesystems leave the first sector alone -
there may be some boot loader there - so if such a filesystem
was created on what used to be a swap partition, also the swap
signature will still be there.

More generally it is a bad idea to start a guessing game.
That leads to systems that usually work, instead of systems that work.

Andries
-
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/

^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2001-01-24 13:41 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-01-22 16:17 Partition IDs in the New World TM Andrew Clausen
2001-01-22 16:32 ` Brian Gerst
2001-01-22 16:47   ` Andrew Clausen
2001-01-22 21:39     ` Russell King
2001-01-22 22:30       ` Andrew Clausen
2001-01-22 22:42         ` Russell King
2001-01-22 23:28           ` Andrew Clausen
2001-01-22 23:35         ` H. Peter Anvin
2001-01-23  4:47           ` Andreas Dilger
2001-01-23  6:23             ` H. Peter Anvin
2001-01-23 19:26             ` Matt D. Robinson
2001-01-24  8:18               ` Andreas Dilger
2001-01-22 22:16 ` Glenn McGrath
2001-01-22 23:35   ` Jason Venner
  -- strict thread matches above, loose matches on Subject: below --
2001-01-22 22:42 Andries.Brouwer
2001-01-22 17:35 ` Mark I Manning IV
2001-01-22 22:55 Andries.Brouwer
2001-01-23 15:46 Andries.Brouwer
     [not found] <OF03708398.46274A87-ON872569DD.005CA0DE@LocalDomain>
2001-01-23 17:08 ` Andrew Clausen
     [not found] <OF5F9BE7DB.C1ADFB0E-ON872569DD.006485CC@LocalDomain>
2001-01-23 18:35 ` Andrew Clausen
2001-01-23 22:01   ` Glenn McGrath
2001-01-24 13:40     ` Andrew Clausen
2001-01-24 10:28 Andries.Brouwer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox