Date: Thu, 01 Sep 2011 17:47:50 +0200 From: rank1seeker@gmail.com To: hackers@freebsd.org, "John Baldwin" <jhb@freebsd.org> Subject: Re: BUG: Entries in fstab with 'late' option, require order, with ntfs and ufs Message-ID: <20110901.154750.578.2@DEV> In-Reply-To: <201108300824.01387.jhb@freebsd.org> References: <20110829.180846.937.1@DEV> <201108300824.01387.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----=0D=0AFrom: John Baldwin = <jhb@freebsd.org>=0D=0ATo: freebsd-hackers@freebsd.org=0D=0ACc: = rank1seeker@gmail.com, Craig Rodrigues <rodrigc@freebsd.org>=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110901.154750.578.2>