Skip to contentSkip to conversation

mac-fdisk and 0x8e partitions for LVM

linux-lvm Patrick Caulfield 2 participants 3 messages Jan 15, 2004 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): 1074115853.3983.24.camel@telecentro2

#1 lore raw
Quoted 3 lines · Leandro Guimar?es Faria Corcete Dutra
	mac-fdisk won't allow me to create a 0x8e partition, thus precluding

LVM usage... any solutions in view? Would pmac-fdisk or parted do the job?

If it's not using a PC partition table; and I suspect it isn't, being a mac, then it doesn't matter what partition type you use.

LVM2 doesn't even check the partition type - it's only for information.

Signature · 1 line
patrick
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines
	mac-fdisk won't allow me to create a 0x8e partition, thus precluding

LVM usage... any solutions in view? Would pmac-fdisk or parted do the job?

There's no such thing as a numerical partition type in Apple partition maps. cfdisk or parted could be used to create a different partition table (precluding use of MacOS). Or LVM could be made Apple partition format aware (using either a new partition type or partition name for detection; I'd prefer the partition name (like, "LVM 1" etc. as that can easily be added with mac-fdisk. (Creating other partition types is only marginally more difficult, simply us 'C' instead of 'c' to create the partition).

To reiterate: I don't see any solution without making LVM accept Apple partition maps in the first place. Which part of LVM checks the partition type? Can you show me some sample code?

Michael

#3 lore raw
Quoted 12 lines · Michael Schmitz
Quoted 3 lines
	mac-fdisk won't allow me to create a 0x8e partition, thus precluding

LVM usage... any solutions in view? Would pmac-fdisk or parted do the job?

There's no such thing as a numerical partition type in Apple partition maps. cfdisk or parted could be used to create a different partition table (precluding use of MacOS). Or LVM could be made Apple partition format aware (using either a new partition type or partition name for detection; I'd prefer the partition name (like, "LVM 1" etc. as that can easily be added with mac-fdisk. (Creating other partition types is only marginally more difficult, simply us 'C' instead of 'c' to create the partition).

Quoted 4 lines

To reiterate: I don't see any solution without making LVM accept Apple partition maps in the first place. Which part of LVM checks the partition type? Can you show me some sample code?

Stick

#define __alpha__

at the top of tools/lib/pv_get_size.c and it will skip the partition type check.

Signature · 1 line
patrick