From owner-freebsd-ports@FreeBSD.ORG Tue Mar 23 09:41:10 2010 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BA03106566C for ; Tue, 23 Mar 2010 09:41:10 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-fx0-f222.google.com (mail-fx0-f222.google.com [209.85.220.222]) by mx1.freebsd.org (Postfix) with ESMTP id 7A0608FC23 for ; Tue, 23 Mar 2010 09:41:09 +0000 (UTC) Received: by fxm22 with SMTP id 22so1374998fxm.14 for ; Tue, 23 Mar 2010 02:41:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=9Vcz1mlyetLtucip2XsBq3dvg/+X9CXQRuQkOftR0yk=; b=GkPEuLedK4s7/ZAefyFKlbyFLVuRehBSlpY/63PVwF9/z+EjP5+erIvaPXeMHb20pr dUW5OeF/a33CnVGK2oU5E2OgxhvfawHOO7cbTZmdYmfWcUw9tYuawOk/JfaFMvOsq4xG y5cznUyL3rvDxqmXPUR8W6+od8ILOWMNgpMuo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=JZnPPnaUBM9XZgwqt8VdCdT0I41kWeOgbycwPFGvu67bHYUg6TG1MzEUupOPqGrp3D hV4xctwJokbZsmi9cdZc9pGBp1rlaU+jna7Nd2kL1ule9a6quRDRtjtplVVsP8sXTGBw MY0Gh6els5ui6hxNQliSzowseGXN/BHahhaOk= MIME-Version: 1.0 Received: by 10.204.148.86 with SMTP id o22mr380060bkv.95.1269337268322; Tue, 23 Mar 2010 02:41:08 -0700 (PDT) In-Reply-To: References: <4BA235F6.505@janh.de> From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Tue, 23 Mar 2010 10:40:48 +0100 Message-ID: To: Jan Henrik Sylvester Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: ports-list freebsd Subject: Re: ntfsprogs X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 09:41:10 -0000 Hi So, I tested ntfsresize (not everything, but mainly) It seems to work. As I though, it uses the functions I patched for mkntfs, in order to get device geometry. I have that USB key, 4Gb. fdisk (linux, I use the freebsd one for scripting, but, honestly, linux one is way easier to use), to create a NTFS primary partition on the whole device. Back to BSD, mkntfs -f /dev/da1s1 Now, ntfsresize /dev/da1s1 -s 3G It seems to work, but I didn't search that much for clues... To be sure, I'ld like to change the partition table, but I'ld need to know exactly where to end/start my new partitions. Not in the mood for that kind of maths. Anyway, an other way to test was to create two partitions, format the first one, then delete the second partition and expand the first one to the whole drive, and run ntfsresize. And well, it worked. I had my first partition of 1Gb, working fine, and the= n I resized it to 4Gb, without any kind of troubles. I still didn't look at the $UpCase problem. I may do it quickly. Cheers, Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S On Thu, Mar 18, 2010 at 6:00 PM, Samuel Mart=EDn Moro wr= ote: > > I already tested ntfsprogs1. > > I don't remember wich version exactly (found it with portdowngrade), nor > what were its problems. > > But, it was for work. > We just wanted to be able to mount/write and format devices with ntfs > partitions. > And we weren't able to. > It might be that I didn't think to try without libublio support (don't > remember, I'm not even sure ublio is used in the first version). > > It may be usefull to get back the first version in ports, sure. > But there's not that much things to adapt in the current version. > The problem is that the person who made that port just copied the package > from linux, without porting it. > The modifications I made were very easy to find out, every > C developer should be able to do them quickly, putting some printf. > I don't have FreeBSD at home, I'm just working on it at office. And > patching ArchLinux at home. > I might not be able to finish patching ntfsprogs2 to make it completly wo= rk > on FreeBSD. > > The good news is that, with my patch to ntfslib, ntfsresize should now be > able to get the geometry of a device. > Maybe that was its only problem, and so it's working again? > I'll give it a try next monday. > > > Cheers, > > Samuel Mart=EDn Moro > {EPITECH.} tek4 > CamTrace S.A.S > > > On Thu, Mar 18, 2010 at 3:17 PM, Jan Henrik Sylvester wrote: > >> As you are working on ntfsprogs, are you able to use ntfsresize at all? >> >> For me, ntfsresize never worked in ntfsprogs-2.0.0, but it did in >> ntfsprogs-1.13.1. We had a discussion about ntfsprogs on freebsd-questio= ns >> almost a year ago: >> >> >> http://lists.freebsd.org/pipermail/freebsd-questions/2009-April/thread.h= tml#196207 >> >> I still do not know more than I stated in there: >> >> >> http://lists.freebsd.org/pipermail/freebsd-questions/2009-April/196252.h= tml >> >> I still would like to create an ports/ntfsprogs1 (back)port to get >> ntfsprogs-1.13.1 back. Unfortunately, I have not had time to do this sin= ce >> then. >> >> Maybe you want to check yourself, if 1.13.1 gives less problems than >> 2.0.0... >> >> Although ntfsprogs is not maintained anymore, mkntfs and ntfsresize are >> still useful -- thus picking the best last release and fixing that on >> current FreeBSD may be worse it. >> >> Cheers, >> Jan Henrik >> > >