NEW: sysutils/ntfs-3g

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

NEW: sysutils/ntfs-3g

Paul Irofti-4
Here's a first revision of ntfs-3g. Read write works for me (tm).

There are a plethora of things you'll need to do before being able to
use it thought. Here goes:

1. In /usr/src/sys/conf/GENERIC add
        option FUSE
        pseduo-device fuse 10

2. Build a new kernel and boot with it.

3. In /usr/src/lib/libfuse:
        - patch with:
        http://www.pmbsd.org/patch-default-values 
        http://www.pmbsd.org/patch-fuse-get-context
        http://www.pmbsd.org/patch-fuse-version

        - run make depend && make includes && make && make install

4. Build and install the port

5. # ntfs-3g /dev/sdXi /mnt

6. ...

7. Profit!


Now the patches for libfuse should go in pretty soon.
The kernel enabling bits, I don't know when.

There are probably a lot of bugs that will destroy your ntfs
disk/partition/data. So don't come running back in tears.

Test reports, patches and constructive comments welcomed!

Thanks to syl@ for making all of this possible!

ntfs-3g.tgz (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/ntfs-3g

Sylvestre Gallon
On Fri, Jun 14, 2013 at 2:52 PM, Paul Irofti <[hidden email]> wrote:

> Here's a first revision of ntfs-3g. Read write works for me (tm).
>
> There are a plethora of things you'll need to do before being able to
> use it thought. Here goes:
>
> 1. In /usr/src/sys/conf/GENERIC add
>         option FUSE
>         pseduo-device fuse 10
>
> 2. Build a new kernel and boot with it.
>
> 3. In /usr/src/lib/libfuse:
>         - patch with:
>         http://www.pmbsd.org/patch-default-values
>         http://www.pmbsd.org/patch-fuse-get-context
>         http://www.pmbsd.org/patch-fuse-version
>
>         - run make depend && make includes && make && make install
>
> 4. Build and install the port
>
> 5. # ntfs-3g /dev/sdXi /mnt
>
> 6. ...
>
> 7. Profit!
>
>
> Now the patches for libfuse should go in pretty soon.
> The kernel enabling bits, I don't know when.

The patches for libfuse are now in.

Cheers,

--
Sylvestre Gallon

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/ntfs-3g

Paul Irofti-4
On Fri, Jun 14, 2013 at 11:18:43PM +0200, Sylvestre Gallon wrote:

> On Fri, Jun 14, 2013 at 2:52 PM, Paul Irofti <[hidden email]> wrote:
> > Here's a first revision of ntfs-3g. Read write works for me (tm).
> >
> > There are a plethora of things you'll need to do before being able to
> > use it thought. Here goes:
> >
> > 1. In /usr/src/sys/conf/GENERIC add
> >         option FUSE
> >         pseduo-device fuse 10
> >
> > 2. Build a new kernel and boot with it.
> >
> > 3. In /usr/src/lib/libfuse:
> >         - patch with:
> >         http://www.pmbsd.org/patch-default-values
> >         http://www.pmbsd.org/patch-fuse-get-context
> >         http://www.pmbsd.org/patch-fuse-version
> >
> >         - run make depend && make includes && make && make install
> >
> > 4. Build and install the port
> >
> > 5. # ntfs-3g /dev/sdXi /mnt
> >
> > 6. ...
> >
> > 7. Profit!
> >
> >
> > Now the patches for libfuse should go in pretty soon.
> > The kernel enabling bits, I don't know when.
>
> The patches for libfuse are now in.

Cool! The port has been imported as well. So the only bits that need
tweaking are the kernel bits.

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/ntfs-3g

Josh Grosse
Paul Irofti <paul <at> irofti.net> writes:

> Cool! The port has been imported as well. So the only bits that need
> tweaking are the kernel bits.

Reporting that this is working fine on i386.  Thank you Paul!




Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/ntfs-3g

Amit Kulkarni-5
In reply to this post by Paul Irofti-4
On Fri, 14 Jun 2013 15:52:40 +0300
Paul Irofti <[hidden email]> wrote:

> Here's a first revision of ntfs-3g. Read write works for me (tm).
>
> There are a plethora of things you'll need to do before being able to
> use it thought. Here goes:
>
> 1. In /usr/src/sys/conf/GENERIC add
> option FUSE
> pseduo-device fuse 10
>
> 2. Build a new kernel and boot with it.
>
> 3. In /usr/src/lib/libfuse:
> - patch with:
> http://www.pmbsd.org/patch-default-values 
> http://www.pmbsd.org/patch-fuse-get-context
> http://www.pmbsd.org/patch-fuse-version
>
> - run make depend && make includes && make && make install
>
> 4. Build and install the port
>
> 5. # ntfs-3g /dev/sdXi /mnt
>
> 6. ...
>
> 7. Profit!
>
>
> Now the patches for libfuse should go in pretty soon.
> The kernel enabling bits, I don't know when.
>
> There are probably a lot of bugs that will destroy your ntfs
> disk/partition/data. So don't come running back in tears.
>
> Test reports, patches and constructive comments welcomed!
>
> Thanks to syl@ for making all of this possible!

When i removed e2fs-uuid from WANTLIB then only the port compiles. The problem is that WANTLIB is checked first before the pre-configure line executes... Is this deliberately not included in the package builds because it is new?

thanks

Reply | Threaded
Open this post in threaded view
|

Re: NEW: sysutils/ntfs-3g

Jeremie Courreges-Anglas-2
Amit Kulkarni <[hidden email]> writes:

> On Fri, 14 Jun 2013 15:52:40 +0300
> Paul Irofti <[hidden email]> wrote:
>
>> Here's a first revision of ntfs-3g. Read write works for me (tm).
>>
>> There are a plethora of things you'll need to do before being able to
>> use it thought. Here goes:
>>
>> 1. In /usr/src/sys/conf/GENERIC add
>> option FUSE
>> pseduo-device fuse 10
>>
>> 2. Build a new kernel and boot with it.
>>
>> 3. In /usr/src/lib/libfuse:
>> - patch with:
>> http://www.pmbsd.org/patch-default-values 
>> http://www.pmbsd.org/patch-fuse-get-context
>> http://www.pmbsd.org/patch-fuse-version
>>
>> - run make depend && make includes && make && make install
>>
>> 4. Build and install the port
>>
>> 5. # ntfs-3g /dev/sdXi /mnt
>>
>> 6. ...
>>
>> 7. Profit!
>>
>>
>> Now the patches for libfuse should go in pretty soon.
>> The kernel enabling bits, I don't know when.
>>
>> There are probably a lot of bugs that will destroy your ntfs
>> disk/partition/data. So don't come running back in tears.
>>
>> Test reports, patches and constructive comments welcomed!
>>
>> Thanks to syl@ for making all of this possible!
>
> When i removed e2fs-uuid from WANTLIB then only the port compiles. The
> problem is that WANTLIB is checked first before the pre-configure line
> executes... Is this deliberately not included in the package builds
> because it is new?

It depends on fuse, which hasn't been hooked yet - not for 5.4 it seems.
I guess that's the reason why it doesn't appear when searching for
e2fs-uuid in sqlports.

> thanks

Fixup for this port, while here.

ok?

/me reboots to test that shiny fuse stuff.

Index: Makefile
===================================================================
RCS file: /cvs/ports/sysutils/ntfs-3g/Makefile,v
retrieving revision 1.2
diff -u -p -r1.2 Makefile
--- Makefile 15 Jun 2013 14:25:28 -0000 1.2
+++ Makefile 15 Jul 2013 00:30:34 -0000
@@ -7,7 +7,7 @@ DISTNAME = ntfs-3g_ntfsprogs-${V}
 PKGNAME = ntfs_3g-${V}
 SHARED_LIBS += ntfs-3g 0.0 # .84
 CATEGORIES = sysutils
-REVISION = 0
+REVISION = 1
 
 HOMEPAGE = http://www.tuxera.com/
 
@@ -16,7 +16,7 @@ MAINTAINER = Paul Irofti <pirofti@openbs
 # GPLv2
 PERMIT_PACKAGE_CDROM = Yes
 
-WANTLIB += c e2fs-uuid fuse
+WANTLIB += c uuid fuse
 
 MASTER_SITES = ${HOMEPAGE}/opensource/
 EXTRACT_SUFX = .tgz
@@ -29,10 +29,6 @@ CONFIGURE_ENV = CPPFLAGS="-I${LOCALBASE
 CONFIGURE_ARGS = ${CONFIGURE_SHARED} \
  --disable-mtab \
  --disable-ldconfig
-
-# uuid_generate(): properly pick up uuid from e2fsprogs instead of ossp-uuid
-pre-configure:
- perl -pi -e "s,-luuid,-le2fs-uuid,g" ${WRKSRC}/configure \
 
 post-install:
  rmdir ${WRKINST}/lib