On Sun, Jun 29, 2008 at 03:13:56PM +0200, Antoine Reilles wrote: > I also tried to install -current with installation cd including gpt, > keeping the gpt wedge options enabled. > It lets me declare NetBSD ffs and NetBSD swap partitions, but when > trying to newfs the ffs partition, i do get a "device busy" error. > > However, it lets me mount ufs partitions that i created with macosx. > The netbsd kernel is built with FFS_EI, but when rebooting on osx, it > complains the ufs filesystem is damaged and cannot be fixed, with the > following error message: > BAD SUPER BLOCK: VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE > ** /dev/rdisk0s5 (NO WRITE) > Reverse Byte order Filesystem Detected > LOOK FOR ALTERNATE SUPERBLOCKS? no > Error: Filesystem verify or repair failed. Here is the patch I used to get netbsd to recognize the Apple UFS partition. regards, antoine
Index: sys/dev/dkwedge/dkwedge_gpt.c =================================================================== RCS file: /cvsroot/src/sys/dev/dkwedge/dkwedge_gpt.c,v retrieving revision 1.8 diff -u -r1.8 dkwedge_gpt.c --- sys/dev/dkwedge/dkwedge_gpt.c 28 Apr 2008 20:23:48 -0000 1.8 +++ sys/dev/dkwedge/dkwedge_gpt.c 29 Jun 2008 14:09:22 -0000 @@ -59,6 +59,7 @@ { GPT_ENT_TYPE_FREEBSD_SWAP, DKW_PTYPE_SWAP }, { GPT_ENT_TYPE_NETBSD_FFS, DKW_PTYPE_FFS }, { GPT_ENT_TYPE_FREEBSD_UFS, DKW_PTYPE_FFS }, + { GPT_ENT_TYPE_APPLE_UFS, DKW_PTYPE_FFS }, { GPT_ENT_TYPE_NETBSD_LFS, DKW_PTYPE_LFS }, { GPT_ENT_TYPE_NETBSD_RAIDFRAME, DKW_PTYPE_RAIDFRAME }, { GPT_ENT_TYPE_NETBSD_CCD, DKW_PTYPE_CCD }, Index: sys/sys/disklabel_gpt.h =================================================================== RCS file: /cvsroot/src/sys/sys/disklabel_gpt.h,v retrieving revision 1.5 diff -u -r1.5 disklabel_gpt.h --- sys/sys/disklabel_gpt.h 24 Feb 2008 18:38:10 -0000 1.5 +++ sys/sys/disklabel_gpt.h 29 Jun 2008 14:09:27 -0000 @@ -147,6 +147,8 @@ #define GPT_ENT_TYPE_APPLE_HFS \ {0x48465300,0x0000,0x11aa,0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}} +#define GPT_ENT_TYPE_APPLE_UFS \ + {0x55465300,0x0000,0x11aa,0xaa,0x11,{0x00,0x30,0x65,0x43,0xec,0xac}} /* * Used by GRUB 2.
Attachment:
pgp2l3WDFSEA1.pgp
Description: PGP signature