Skip site navigation (1)Skip section navigation (2)
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 -----

From: John Baldwin <jhb@freebsd.org>

To: freebsd-hackers@freebsd.org

Cc: rank1seeker@gmail.com, Craig Rodrigues <rodrigc@freebsd.org>

Date: Tue, 30 Aug 2011 08:24:01 -0400

Subject: Re: BUG: Entries in fstab with 'late' option, require order, with ntfs and ufs



> 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  

> 0

> > 

> > # This are WinXP drives:

> > /dev/ada0s1              /mnt/win_c      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > /dev/ada0s5              /mnt/win_d      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > /dev/ada0s6              /mnt/win_e      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > --

> > 

> > 

> > This yields kick, in a single user mode

> > --

> > # This are WinXP drives:

> > /dev/ada0s1              /mnt/win_c      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > /dev/ada0s5              /mnt/win_d      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > /dev/ada0s6              /mnt/win_e      ntfs    

> rw,mountprog=/usr/local/bin/ntfs-3g,late         0       0

> > 

> > /dev/ufsid/4e5bbdf76b8b4567        /usr/DOC        ufs    rw,late  0  0

> > /dev/ufsid/4e5bbe036b8b4567        /usr/SRC        ufs    ro,late,noatime  0  

> 0

> > --

> > 

> > 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 NTFS.

> > 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 NTFS.

> > 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, 

> 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 

> sbin/mount:

> 

> Index: mount.c

> ===================================================================

> --- mount.c	(revision 225077)

> +++ mount.c	(working copy)

> @@ -589,6 +589,9 @@ mountfs(const char *vfstype, const char *spec, con

>  		for (i = 1; i < mnt_argv.c; i++)

>  			(void)printf(" %s", mnt_argv.a[i]);

>  		(void)printf("\n");

> +		free(optbuf);

> +		free(mountprog);

> +		mountprog = NULL;

>  		return (0);

>  	}

>  

> @@ -599,6 +602,8 @@ mountfs(const char *vfstype, const char *spec, con

>  	}

>  

>  	free(optbuf);

> +	free(mountprog);

> +	mountprog = NULL;

>  

>  	if (verbose) {

>  		if (statfs(name, &sf) < 0) {

> 

> 

> 

> John Baldwin

> 





I failed to apply your patch on 8.2 RELEASE i386

--

cd /usr/src/sbin/mount

patch < ~/mount_patch.diff

--

Patch complained about line 6



Anyway, I've patched it manually and it works now!

Good job John ...

;)







Domagoj Smolčić

 





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110901.154750.578.2>