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

rank1seeker at gmail.com rank1seeker at gmail.com
Thu Sep 1 15:48:09 UTC 2011


----- Original Message -----
From: John Baldwin <jhb at freebsd.org>
To: freebsd-hackers at freebsd.org
Cc: rank1seeker at gmail.com, Craig Rodrigues <rodrigc at 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 at 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ć
 



More information about the freebsd-hackers mailing list