Date: Tue, 30 Aug 2011 08:24:01 -0400 From: John Baldwin <jhb@freebsd.org> To: freebsd-hackers@freebsd.org Cc: rank1seeker@gmail.com, Craig Rodrigues <rodrigc@freebsd.org> Subject: Re: BUG: Entries in fstab with 'late' option, require order, with ntfs and ufs Message-ID: <201108300824.01387.jhb@freebsd.org> In-Reply-To: <20110829.180846.937.1@DEV> References: <20110829.180846.937.1@DEV>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201108300824.01387.jhb>