From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 30 12:24:03 2011 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 03BCE106566B; Tue, 30 Aug 2011 12:24:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id B98888FC0C; Tue, 30 Aug 2011 12:24:02 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 52FB546B2E; Tue, 30 Aug 2011 08:24:02 -0400 (EDT) Received: from jhbbsd.localnet (unknown [209.249.190.124]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id DA7018A02E; Tue, 30 Aug 2011 08:24:01 -0400 (EDT) From: John Baldwin To: freebsd-hackers@freebsd.org Date: Tue, 30 Aug 2011 08:24:01 -0400 User-Agent: KMail/1.13.5 (FreeBSD/8.2-CBSD-20110617; KDE/4.5.5; amd64; ; ) References: <20110829.180846.937.1@DEV> In-Reply-To: <20110829.180846.937.1@DEV> MIME-Version: 1.0 Content-Type: Text/Plain; charset="windows-1250" Content-Transfer-Encoding: quoted-printable Message-Id: <201108300824.01387.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (bigwig.baldwin.cx); Tue, 30 Aug 2011 08:24:01 -0400 (EDT) Cc: rank1seeker@gmail.com, Craig Rodrigues 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: Tue, 30 Aug 2011 12:24:03 -0000 On Monday, August 29, 2011 2:08:46 pm rank1seeker@gmail.com wrote: > This yields successfull boot > -- > /dev/ufsid/4e5bbdf76b8b4567 /usr/DOC ufs rw,late 0 0 > /dev/ufsid/4e5bbe036b8b4567 /usr/SRC ufs ro,late,noatime= 0 =20 0 >=20 > # This are WinXP drives: > /dev/ada0s1 /mnt/win_c ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 > /dev/ada0s5 /mnt/win_d ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 > /dev/ada0s6 /mnt/win_e ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 > -- >=20 >=20 > This yields kick, in a single user mode > -- > # This are WinXP drives: > /dev/ada0s1 /mnt/win_c ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 > /dev/ada0s5 /mnt/win_d ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 > /dev/ada0s6 /mnt/win_e ntfs =20 rw,mountprog=3D/usr/local/bin/ntfs-3g,late 0 0 >=20 > /dev/ufsid/4e5bbdf76b8b4567 /usr/DOC ufs rw,late 0 0 > /dev/ufsid/4e5bbe036b8b4567 /usr/SRC ufs ro,late,noatime= 0 =20 0 > -- >=20 > dmesg part: > -- > Mounting late file systems:NTFS signature is missing. > Failed to mount '/dev/ufsid/4e5bbdf76b8b4567': Invalid argument > The device '/dev/ufsid/4e5bbdf76b8b4567' doesn't seem to have a valid NTF= S. > Maybe the wrong device is used? Or the whole disk instead of a > partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? > NTFS signature is missing. > Failed to mount '/dev/ufsid/4e5bbe036b8b4567': Invalid argument > The device '/dev/ufsid/4e5bbe036b8b4567' doesn't seem to have a valid NTF= S. > Maybe the wrong device is used? Or the whole disk instead of a > partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? > . > Mounting /etc/fstab filesystems failed, startup aborted > ERROR: ABORTING BOOT (sending SIGTERM to parent)! > Aug 29 20:02:31 blackhole init: /bin/sh on /etc/rc terminated abnormally,= =20 going > to single user mode > Enter full pathname of shell or RETURN for /bin/sh: Hmm, seems like mountprog isn't being "cleared". Try this patch to=20 sbin/mount: Index: mount.c =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 =2D-- mount.c (revision 225077) +++ mount.c (working copy) @@ -589,6 +589,9 @@ mountfs(const char *vfstype, const char *spec, con for (i =3D 1; i < mnt_argv.c; i++) (void)printf(" %s", mnt_argv.a[i]); (void)printf("\n"); + free(optbuf); + free(mountprog); + mountprog =3D NULL; return (0); } =20 @@ -599,6 +602,8 @@ mountfs(const char *vfstype, const char *spec, con } =20 free(optbuf); + free(mountprog); + mountprog =3D NULL; =20 if (verbose) { if (statfs(name, &sf) < 0) { > -- >=20 >=20 > Domagoj Smol=E8i=E6 > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >=20 =2D-=20 John Baldwin