From owner-freebsd-hackers@FreeBSD.ORG Thu Sep 1 15:48:09 2011 Return-Path: Delivered-To: hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AA040106566B for ; Thu, 1 Sep 2011 15:48:09 +0000 (UTC) (envelope-from rank1seeker@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 106FF8FC08 for ; Thu, 1 Sep 2011 15:48:08 +0000 (UTC) Received: by fxe4 with SMTP id 4so1060363fxe.13 for ; Thu, 01 Sep 2011 08:48:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:from:to:subject:date:content-type :content-transfer-encoding:in-reply-to:references:x-mailer; bh=1cXWD8sgs3QFcADs6+xqm2V/sLjXGo8MsYRiODECrBI=; b=tw/+pkpjv+hrnK843grvL2zQdQ+H3XLDo9rWpiITLAgV+sMfD9wRPoF02MRcXx714v Hz3tXrBeBHo+vl4a/6kcPrqUjclXXAFcLlHP9DVFAneIgbi2n9CRKvTOFJyp7s0PQEso no6p6kCa7M1aH094i+snctSzGgvICQFBrj/YE= Received: by 10.223.24.21 with SMTP id t21mr8653fab.24.1314892087982; Thu, 01 Sep 2011 08:48:07 -0700 (PDT) Received: from DEV ([82.193.208.173]) by mx.google.com with ESMTPS id c4sm133698fac.11.2011.09.01.08.48.01 (version=SSLv3 cipher=OTHER); Thu, 01 Sep 2011 08:48:03 -0700 (PDT) Message-ID: <20110901.154750.578.2@DEV> From: rank1seeker@gmail.com To: hackers@freebsd.org, "John Baldwin" Date: Thu, 01 Sep 2011 17:47:50 +0200 Content-Type: text/plain; charset="Windows-1250" Content-Transfer-Encoding: quoted-printable In-Reply-To: <201108300824.01387.jhb@freebsd.org> References: <20110829.180846.937.1@DEV> <201108300824.01387.jhb@freebsd.org> X-Mailer: POP Peeper (3.8.0.0) Cc: Subject: Re: BUG: Entries in fstab with 'late' option, require order, with ntfs and ufs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2011 15:48:09 -0000 ----- Original Message -----=0D=0AFrom: John Baldwin = =0D=0ATo: freebsd-hackers@freebsd.org=0D=0ACc: = rank1seeker@gmail.com, Craig Rodrigues =0D=0ADate: = Tue, 30 Aug 2011 08:24:01 -0400=0D=0ASubject: Re: BUG: Entries in fstab = with 'late' option, require order, with ntfs and ufs=0D=0A=0D=0A> On = Monday, August 29, 2011 2:08:46 pm rank1seeker@gmail.com wrote:=0D=0A> > = This yields successfull boot=0D=0A> > --=0D=0A> > = /dev/ufsid/4e5bbdf76b8b4567 /usr/DOC ufs rw,late 0 = 0=0D=0A> > /dev/ufsid/4e5bbe036b8b4567 /usr/SRC ufs = ro,late,noatime 0 =0D=0A> 0=0D=0A> > =0D=0A> > # This are WinXP = drives:=0D=0A> > /dev/ada0s1 /mnt/win_c ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = /dev/ada0s5 /mnt/win_d ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = /dev/ada0s6 /mnt/win_e ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = --=0D=0A> > =0D=0A> > =0D=0A> > This yields kick, in a single user = mode=0D=0A> > --=0D=0A> > # This are WinXP drives:=0D=0A> > /dev/ada0s1 = /mnt/win_c ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = /dev/ada0s5 /mnt/win_d ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = /dev/ada0s6 /mnt/win_e ntfs =0D=0A> = rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0=0D=0A> > = =0D=0A> > /dev/ufsid/4e5bbdf76b8b4567 /usr/DOC ufs = rw,late 0 0=0D=0A> > /dev/ufsid/4e5bbe036b8b4567 /usr/SRC = ufs ro,late,noatime 0 =0D=0A> 0=0D=0A> > --=0D=0A> > =0D=0A> > dmesg = part:=0D=0A> > --=0D=0A> > Mounting late file systems:NTFS signature is = missing.=0D=0A> > Failed to mount '/dev/ufsid/4e5bbdf76b8b4567': Invalid = argument=0D=0A> > The device '/dev/ufsid/4e5bbdf76b8b4567' doesn't seem = to have a valid NTFS.=0D=0A> > Maybe the wrong device is used? Or the = whole disk instead of a=0D=0A> > partition (e.g. /dev/sda, not = /dev/sda1)? Or the other way around?=0D=0A> > NTFS signature is = missing.=0D=0A> > Failed to mount '/dev/ufsid/4e5bbe036b8b4567': Invalid = argument=0D=0A> > The device '/dev/ufsid/4e5bbe036b8b4567' doesn't seem = to have a valid NTFS.=0D=0A> > Maybe the wrong device is used? Or the = whole disk instead of a=0D=0A> > partition (e.g. /dev/sda, not = /dev/sda1)? Or the other way around?=0D=0A> > .=0D=0A> > Mounting = /etc/fstab filesystems failed, startup aborted=0D=0A> > ERROR: ABORTING = BOOT (sending SIGTERM to parent)!=0D=0A> > Aug 29 20:02:31 blackhole = init: /bin/sh on /etc/rc terminated abnormally, =0D=0A> going=0D=0A> > to = single user mode=0D=0A> > Enter full pathname of shell or RETURN for = /bin/sh:=0D=0A> =0D=0A> Hmm, seems like mountprog isn't being "cleared". = Try this patch to =0D=0A> sbin/mount:=0D=0A> =0D=0A> Index: = mount.c=0D=0A> = =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0D=0A> = --- mount.c (revision 225077)=0D=0A> +++ mount.c (working copy)=0D=0A> @@ = -589,6 +589,9 @@ mountfs(const char *vfstype, const char *spec, = con=0D=0A> for (i =3D 1; i < mnt_argv.c; i++)=0D=0A> = (void)printf(" %s", mnt_argv.a[i]);=0D=0A> (void)printf("\n");=0D=0A> = + free(optbuf);=0D=0A> + free(mountprog);=0D=0A> + mountprog =3D = NULL;=0D=0A> return (0);=0D=0A> }=0D=0A> =0D=0A> @@ -599,6 +602,8 = @@ mountfs(const char *vfstype, const char *spec, con=0D=0A> }=0D=0A> = =0D=0A> free(optbuf);=0D=0A> + free(mountprog);=0D=0A> + mountprog =3D = NULL;=0D=0A> =0D=0A> if (verbose) {=0D=0A> if (statfs(name, &sf) < = 0) {=0D=0A> =0D=0A> =0D=0A> =0D=0A> John Baldwin=0D=0A> = =0D=0A=0D=0A=0D=0AI failed to apply your patch on 8.2 RELEASE = i386=0D=0A--=0D=0Acd /usr/src/sbin/mount=0D=0Apatch < = ~/mount_patch.diff=0D=0A--=0D=0APatch complained about line = 6=0D=0A=0D=0AAnyway, I've patched it manually and it works now!=0D=0AGood = job John ...=0D=0A;)=0D=0A=0D=0A=0D=0A=0D=0ADomagoj Smol=E8i=E6=0D=0A = =0D=0A