Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2011-03-01 Thread Cameron
Package: freebsd-utils
Version: 8.1-4+b1
Severity: important
File: /bin/mount

local filesystem mount entires in /etc/fstab fail to mount at boot and runtime
if the options field contains only "noatime". The error message is "unknown
filesystem type". For example:
mount /home
mount: /home has unknown file system type

Doing a full mount command such as 'mount /dev/ad0s7 /home' still works, but
of course /etc/fstab isn't read in this case.

If the options field contains "noatime,rw", then the filesystem
will successfully mount at boot and runtime.

This happened to me after a fresh install. Fortunately / had the options
"noatime,rw" so the system could at least partially come up.

I have not tried other combinations of options, but I would be willing to do so
if requested.
-- System Information:
Debian Release: 6.0
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: kfreebsd-amd64 (x86_64)

Kernel: kFreeBSD 8.1-1-amd64
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages freebsd-utils depends on:
ii  libbsd0   0.2.0-1utility functions from BSD systems
ii  libc0.1   2.11.2-10  Embedded GNU C Library: Shared lib
ii  libcam0   8.1-5  FreeBSD CAM (Common Access Method)
ii  libgcc1   1:4.4.5-8  GCC support library
ii  libgeom0  8.1-5  FreeBSD GEOM library
ii  libkiconv48.1-5  FreeBSD kernel side iconv library 
ii  libkvm0   8.1-5  FreeBSD kvm (kernel memory interfa
ii  libsbuf0  8.1-5  FreeBSD string buffer library
ii  libstdc++64.4.5-8The GNU Standard C++ Library v3
ii  ufsutils  7.3-1+b1   UFS filesystems utilities

freebsd-utils recommends no packages.

Versions of packages freebsd-utils suggests:
pn  freebsd-hackedutils(no description available)
ii  kbdcontrol8.1-4+b1   command-line tool to change keyboa
ii  vidcontrol8.1-4+b1   command-line tool to control the s

-- no debconf information



-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: 
http://lists.debian.org/20110302005940.2753.20856.report...@pacman.lan.nerv



Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2011-03-01 Thread Timo Juhani Lindfors
Cameron  writes:
> Package: freebsd-utils
> Version: 8.1-4+b1
>
> local filesystem mount entires in /etc/fstab fail to mount at boot and runtime
> if the options field contains only "noatime". The error message is "unknown
> filesystem type". For example:
> mount /home
> mount: /home has unknown file system type

Confirmed. 

# dpkg-query -W freebsd-utils
freebsd-utils   8.1-4

# grep build /etc/fstab
/dev/ad1/build  ufs noatime  0   1
# bash -x mount /build
+ set -e
+ args=
+ '[' 1 -gt 0 ']'
+ case "$1" in
+ '[' -n '' ']'
+ args=/build
+ shift
+ '[' 0 -gt 0 ']'
++ echo /build
++ sed -e 's/ remount,/ /g' -e s/,remount,/,/g -e 's/,remount / /g' -e
's/-o remount / /g'
+ args=/build
+ exec /lib/freebsd/mount /build
mount: /build has unknown file system type


# grep build /etc/fstab
/dev/ad1/build  ufs rw,noatime  0 1
# bash -x mount /build
+ set -e
+ args=
+ '[' 1 -gt 0 ']'
+ case "$1" in
+ '[' -n '' ']'
+ args=/build
+ shift
+ '[' 0 -gt 0 ']'
++ sed -e 's/ remount,/ /g' -e s/,remount,/,/g -e 's/,remount / /g' -e
's/-o remount / /g'
++ echo /build
+ args=/build
+ exec /lib/freebsd/mount /build




-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/84mxle5bn8@sauna.l.org



Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2011-03-02 Thread Mats Erik Andersson
This is due to the following code in upstream source

/* src/sbin/mount/mount.c */

#define BADTYPE(type)  \
(strcmp(type, FSTAB_RO) && \
 strcmp(type, FSTAB_RW) && strcmp(type, FSTAB_RQ))

/* A later test */

if (BADTYPE(fs->fs_type))
errx(1, "%s has unknown file system type", *argv);

In consequence, exactly one of "rw", "ro", or "rq" __must__
be present as file option, as soon as 'mount' is used with its
fstab-based invokation form. Here "rq" is read-write with quota.

It is not the wrapper which is casing the problem here, it is the
original executable pushed to /libexec/freebsd/mount that carries
an implicit assumption, different from the custom for GNU/Linux.



-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110302103810.ga27...@mea.homelinux.org



Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2011-03-04 Thread Cameron Berkenpas
Is coming up with a new patch for freebsd's mount command each time it's 
updated less than ideal? mount probably isn't updated very often, however.

 Would the better approach be to to insure that the installer generates an 
fstab with rw in the options for each mount?

On Wednesday, March 02, 2011 02:38:10 AM Mats Erik Andersson wrote:
> This is due to the following code in upstream source
> 
> /* src/sbin/mount/mount.c */
> 
> #define   BADTYPE(type)  \
> (strcmp(type, FSTAB_RO) && \
>  strcmp(type, FSTAB_RW) && strcmp(type, FSTAB_RQ))
> 
> /* A later test */
> 
> if (BADTYPE(fs->fs_type))
> errx(1, "%s has unknown file system type", *argv);
> 
> In consequence, exactly one of "rw", "ro", or "rq" __must__
> be present as file option, as soon as 'mount' is used with its
> fstab-based invokation form. Here "rq" is read-write with quota.
> 
> It is not the wrapper which is casing the problem here, it is the
> original executable pushed to /libexec/freebsd/mount that carries
> an implicit assumption, different from the custom for GNU/Linux.



-- 
To UNSUBSCRIBE, email to debian-bsd-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/201103041659.10927@neo-zeon.de



Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2015-08-13 Thread Steven Chamberlain
reassign 616036 partman-ufs
found 616036 partman-ufs/19
close 616036 19+kbsd8u1
thanks

Hi,

This is the same bug fixed by this partman-ufs commit:

https://anonscm.debian.org/cgit/d-i/partman-ufs.git/commit/?h=jessie-kfreebsd&id=924a8837e08a7eaf77d0154b9e39e08a9e0811d1

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org


signature.asc
Description: Digital signature


Processed: Re: Bug#616036: /bin/mount: /bin/mount: Fstab options causing failed mounts

2015-08-13 Thread Debian Bug Tracking System
Processing commands for cont...@bugs.debian.org:

> reassign 616036 partman-ufs
Bug #616036 [freebsd-utils] /bin/mount: /bin/mount: Fstab options causing 
failed mounts
Bug reassigned from package 'freebsd-utils' to 'partman-ufs'.
No longer marked as found in versions freebsd-utils/8.1-4.
Ignoring request to alter fixed versions of bug #616036 to the same values 
previously set
> found 616036 partman-ufs/19
Bug #616036 [partman-ufs] /bin/mount: /bin/mount: Fstab options causing failed 
mounts
Marked as found in versions partman-ufs/19.
> close 616036 19+kbsd8u1
Bug #616036 [partman-ufs] /bin/mount: /bin/mount: Fstab options causing failed 
mounts
Marked as fixed in versions partman-ufs/19+kbsd8u1.
Bug #616036 [partman-ufs] /bin/mount: /bin/mount: Fstab options causing failed 
mounts
Marked Bug as done
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
616036: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=616036
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems