Re: Default disk partition table type?
On Tue, Dec 17, 2002 at 09:21:55AM -0500, Michael Stone wrote: > On Wed, Dec 11, 2002 at 04:59:24PM -0700, Bdale Garbee wrote: > >No. Any new ia64 installation should use GPT, not FAT-style MSDOS labels. > > Are those the ones that put stuff at the end of the disk and break on > linux with odd number of sectors? you speak of the same. the ia64 debian kernel has a patch that adds an ioctl for accessing this last sector. > Mike Stone -- [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
On Wed, Dec 11, 2002 at 04:59:24PM -0700, Bdale Garbee wrote: No. Any new ia64 installation should use GPT, not FAT-style MSDOS labels. Are those the ones that put stuff at the end of the disk and break on linux with odd number of sectors? Mike Stone msg24757/pgp0.pgp Description: PGP signature
Re: Default disk partition table type?
[EMAIL PROTECTED] (Petter Reinholdtsen) writes: > [Bdale Garbee] >> No. Any new ia64 installation should use GPT, not FAT-style MSDOS labels. > > Do you know what parted calls these disk labels? I do not. It calls them "GPT" in both the mklabel command and in the display. A typical example on one of my HP i2000 systems running Debian with parted 1.4.24-4 looks like: (parted) print Disk geometry for /dev/sda: 0.000-17366.445 megabytes Disk label type: GPT MinorStart End Filesystem Name Flags 1 0.017100.000 FAT boot, lba 2100.000500.000 FAT hp-service, lba 3500.000 2548.000 linux-swap lba 4 2548.000 10740.000 ext3 lba 5 10740.000 17366.429 ext3 lba (parted) help mklabel mklabel LABEL-TYPEcreate a new disklabel (partition table) LABEL-TYPE is one of: sun, GPT, bsd, mac, pc98, msdos, loop (parted) Bdale -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
[Bdale Garbee] > No. Any new ia64 installation should use GPT, not FAT-style MSDOS labels. Do you know what parted calls these disk labels? I do not. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
[EMAIL PROTECTED] (Petter Reinholdtsen) writes: > OK. Is this a good approximation? > > #elif defined(ia64) > # define DISK_LABEL "msdos" No. Any new ia64 installation should use GPT, not FAT-style MSDOS labels. Bdale -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
Petter Reinholdtsen <[EMAIL PROTECTED]> writes: > OK. Is this a good approximation? > > /* Need to define on a per arch basis */ > #if defined(__i386__) > # define DISK_LABEL "msdos" > #elif defined(ia64) > # define DISK_LABEL "msdos" > #elif defined(hppa) > # define DISK_LABEL "msdos" > #elif defined(__mips__) && defined(__MIPSEL__) > # define DISK_LABEL "msdos" > #elif defined(__mips__) && defined(__MIPSEB__) > /* Only supported in libparted 1.6.3? */ > # define DISK_LABEL "mips" /* SGI disklabel */ > #else /* not __i386__ */ > # error "Default DISK_LABEL is not known or not supported on this platform" > #endif /* not __i386__ */ Alpha needs MSDOS or OSF disklables, depening on the firmware used. So there needs to be a runtime decision. -- Falk -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
OK. Is this a good approximation? /* Need to define on a per arch basis */ #if defined(__i386__) # define DISK_LABEL "msdos" #elif defined(ia64) # define DISK_LABEL "msdos" #elif defined(hppa) # define DISK_LABEL "msdos" #elif defined(__mips__) && defined(__MIPSEL__) # define DISK_LABEL "msdos" #elif defined(__mips__) && defined(__MIPSEB__) /* Only supported in libparted 1.6.3? */ # define DISK_LABEL "mips" /* SGI disklabel */ #else /* not __i386__ */ # error "Default DISK_LABEL is not known or not supported on this platform" #endif /* not __i386__ */ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
On Tue, Dec 10, 2002 at 12:41:23PM +0100, Petter Reinholdtsen wrote: > What is the partition table type on other platforms/architectures? s390/s390x uses ibm disklabels, which don't seems to be supported by parted. bastian -- A woman should have compassion. -- Kirk, "Catspaw", stardate 3018.2 msg24421/pgp0.pgp Description: PGP signature
Re: Default disk partition table type?
On Wed, Dec 11, 2002 at 06:40:16AM +0100, Karsten Merker wrote: > On Tue, Dec 10, 2002 at 11:34:12PM +0100, Petter Reinholdtsen wrote: > > > > All currently supported mipsel targets use "msdos". > > > > OK. Which #ifdef should I use on these platforms. The output > > from 'echo | gcc -E -dM -' will give me a clue. > > #if ( #cpu(mips) && defined (MIPSEL) ) > > #endif Why not simply make this __MIPSEL__? -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
On Tue, Dec 10, 2002 at 11:32:28PM +0100, Petter Reinholdtsen wrote: > [Guido Guenther] > >> I believe the available values are "bsd", "loop", "mac", "msdos", > >> "pc98" and "sun". I got the values from the parted documentation. > > big endian mips currently only uses SGI disklabels. > > Which of the parted disk label names is this? 'bsd'? Or is it not > supported by parted? According to the source code there's sgi disklabel support in parted 1.6.3 (although incorreclty called 'mips'). Shouldn't we do: --- libparted/disk_mips.c.orig Wed Dec 11 12:13:54 2002 +++ libparted/disk_mips.c Wed Dec 11 12:14:00 2002 @@ -905,7 +905,7 @@ static PedDiskType mips_disk_type = { next: NULL, - name: "mips", + name: "sgi-mips", ops:&mips_disk_ops, features: PED_DISK_TYPE_PARTITION_NAME | PED_DISK_TYPE_EXTENDED }; since there are many mips based systems not using sgi disklabels. The autopartkit should check for __MIPSEB__. Regards, -- Guido msg24419/pgp0.pgp Description: PGP signature
Re: Default disk partition table type?
On Tue, Dec 10, 2002 at 12:41:23PM +0100, Petter Reinholdtsen wrote: > > The current autopartkit contains the following code: > > /* Need to define on a per arch basis */ > #if defined(__i386__) > #define DISK_LABEL "msdos" > #else /* not __i386__ */ > #error "Default DISK_LABEL is not known on this platform" > #endif /* not __i386__ */ > > What is the partition table type on other platforms/architectures? I > believe the available values are "bsd", "loop", "mac", "msdos", "pc98" > and "sun". I got the values from the parted documentation. hppa used msdos. ia64 uses gpt (which parted does support) these days, but has use msdos in the past. m68k uses different ones on different h/w; the mvme boards use msdos. Richard -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
[Karsten Merker] > All currently supported mipsel targets use "msdos". OK. Which #ifdef should I use on these platforms. The output from 'echo | gcc -E -dM -' will give me a clue. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
[Guido Guenther] >> I believe the available values are "bsd", "loop", "mac", "msdos", >> "pc98" and "sun". I got the values from the parted documentation. > big endian mips currently only uses SGI disklabels. Which of the parted disk label names is this? 'bsd'? Or is it not supported by parted? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Default disk partition table type?
On Tue, Dec 10, 2002 at 12:41:23PM +0100, Petter Reinholdtsen wrote: > The current autopartkit contains the following code: > > /* Need to define on a per arch basis */ > #if defined(__i386__) > #define DISK_LABEL "msdos" > #else /* not __i386__ */ > #error "Default DISK_LABEL is not known on this platform" > #endif /* not __i386__ */ > > What is the partition table type on other platforms/architectures? I > believe the available values are "bsd", "loop", "mac", "msdos", "pc98" > and "sun". I got the values from the parted documentation. big endian mips currently only uses SGI disklabels. -- Guido -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Default disk partition table type?
The current autopartkit contains the following code: /* Need to define on a per arch basis */ #if defined(__i386__) #define DISK_LABEL "msdos" #else /* not __i386__ */ #error "Default DISK_LABEL is not known on this platform" #endif /* not __i386__ */ What is the partition table type on other platforms/architectures? I believe the available values are "bsd", "loop", "mac", "msdos", "pc98" and "sun". I got the values from the parted documentation. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]