From: Geert U. <ge...@li...> - 2003-09-18 01:28:44
|
On Wed, 17 Sep 2003, Sven Luther wrote: > Finally, i have a question concerning the partition DosType of > partitions of the following filesystems : > > - ext3 (i used LNX\1) > - fat16 > - fat32 > - hfs (MAC\0 ?) > - jfs > - ntfs > - reiserfs > - sun-ufs > - hp-ufs > - xfs > > Or maybe i could use one of the UNI\x for some of them, or some kind of > RSV\0 (for reserved) dostype. > > What is currently in use for these ? Since AmigaOS doesn't care[*], you can use whatever you want. E.g. 0x45585433 (EXT3 in HEX ASCII) for ext3. BTW, most of these file systems use some 32-bit magic value in their superblock, don't they? You may want to use that one. I think cfdisk determines the type of the partition from the superblock, since all my Linux partitions (on ia32) have type 0x82 in the partition table, while cfdisk identifies them as `Linux ext2' or `Linux ext3' depending on the actual file system. [*] AFAIK the only exception is that AmigaOS refuses to boot from a partition if it has a DosType for which it has no file system driver (either in ROM or in the RDB) and it has an `unknown' type (not 100% sure about that one, probably it can boot from UNI\x). So if you want to put the Lilo boot block on an ext2 partition, you need to use a fake DosType, or have put an AmigaOS ext2 driver in the RDB. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- ge...@li... In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds |