GNU bug report logs - #17503
df (GNU coreutils) 8.21 not reporting for hfsplus ?

Previous Next

Package: coreutils;

Reported by: crquan <crquan <at> gmail.com>

Date: Thu, 15 May 2014 22:37:01 UTC

Severity: normal

Tags: notabug

Done: Assaf Gordon <assafgordon <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 17503 in the body.
You can then email your comments to 17503 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#17503; Package coreutils. (Thu, 15 May 2014 22:37:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to crquan <crquan <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Thu, 15 May 2014 22:37:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: crquan <crquan <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: df (GNU coreutils) 8.21 not reporting for hfsplus ?
Date: Thu, 15 May 2014 15:28:54 -0700
I found my df has a bug not showing entry for this /dev/sda2 hfsplus partition,
this entry really exists in /proc/mounts and /etc/mtab, but df doesn't
report it,

I'm not sure if this is specific to hfsplus? or because of
the mountpoint "/media/user/Macintosh\040HD" has a space?
and /etc/mtab read it as "/media/user/Macintosh\134040HD",
is that a bug of mount program as well?


This is Linux mint running on a mac laptop,

mint ~ # grep hfsplus /proc/mounts /etc/mtab
/proc/mounts:/dev/sda2 /media/user/Macintosh\040HD hfsplus
ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
/etc/mtab:/dev/sda2 /media/user/Macintosh\134040HD hfsplus
ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0

mint ~ # df |grep sda2
mint ~ # df -Th |grep hfs
mint ~ # df --version
df (GNU coreutils) 8.21
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Torbjörn Granlund, David MacKenzie, and Paul Eggert.
mint ~ #
mint ~ # mount --version
mount from util-linux 2.20.1 (with libblkid and selinux support)
mint ~ #


Thanks,




Information forwarded to bug-coreutils <at> gnu.org:
bug#17503; Package coreutils. (Thu, 15 May 2014 22:49:02 GMT) Full text and rfc822 format available.

Message #8 received at 17503 <at> debbugs.gnu.org (full text, mbox):

From: crquan <crquan <at> gmail.com>
To: 17503 <at> debbugs.gnu.org
Subject: Re: df (GNU coreutils) 8.21 not reporting for hfsplus ?
Date: Thu, 15 May 2014 15:48:07 -0700
On Thu, May 15, 2014 at 3:28 PM, crquan <crquan <at> gmail.com> wrote:
> I found my df has a bug not showing entry for this /dev/sda2 hfsplus partition,
> this entry really exists in /proc/mounts and /etc/mtab, but df doesn't
> report it,
>
> I'm not sure if this is specific to hfsplus? or because of
> the mountpoint "/media/user/Macintosh\040HD" has a space?
> and /etc/mtab read it as "/media/user/Macintosh\134040HD",
> is that a bug of mount program as well?
>
>
> This is Linux mint running on a mac laptop,
>
> mint ~ # grep hfsplus /proc/mounts /etc/mtab
> /proc/mounts:/dev/sda2 /media/user/Macintosh\040HD hfsplus
> ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
> /etc/mtab:/dev/sda2 /media/user/Macintosh\134040HD hfsplus
> ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0

Sorry, I feel it's more of a mount program's problem,
If I manually edit /etc/mtab of this line to
/dev/sda2 /media/user/Macintosh\040HD hfsplus
ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0

Then df can report this partition with no problem.

mint ~ # df -Th |grep hfsplus
/dev/sda2      hfsplus     94G   73G   21G  78% /media/user/Macintosh HD




Information forwarded to bug-coreutils <at> gnu.org:
bug#17503; Package coreutils. (Fri, 16 May 2014 05:47:01 GMT) Full text and rfc822 format available.

Message #11 received at 17503 <at> debbugs.gnu.org (full text, mbox):

From: Bernhard Voelker <mail <at> bernhard-voelker.de>
To: crquan <crquan <at> gmail.com>, 17503 <at> debbugs.gnu.org
Subject: Re: bug#17503: df (GNU coreutils) 8.21 not reporting for hfsplus
 ?
Date: Fri, 16 May 2014 07:46:12 +0200
tag 17503 + notabug
close 17503
stop

On 05/16/2014 12:48 AM, crquan wrote:
> On Thu, May 15, 2014 at 3:28 PM, crquan <crquan <at> gmail.com> wrote:
>> I found my df has a bug not showing entry for this /dev/sda2 hfsplus partition,
>> this entry really exists in /proc/mounts and /etc/mtab, but df doesn't
>> report it,
>>
>> I'm not sure if this is specific to hfsplus? or because of
>> the mountpoint "/media/user/Macintosh\040HD" has a space?
>> and /etc/mtab read it as "/media/user/Macintosh\134040HD",
>> is that a bug of mount program as well?
>>
>>
>> This is Linux mint running on a mac laptop,
>>
>> mint ~ # grep hfsplus /proc/mounts /etc/mtab
>> /proc/mounts:/dev/sda2 /media/user/Macintosh\040HD hfsplus
>> ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
>> /etc/mtab:/dev/sda2 /media/user/Macintosh\134040HD hfsplus
>> ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
> 
> Sorry, I feel it's more of a mount program's problem,
> If I manually edit /etc/mtab of this line to
> /dev/sda2 /media/user/Macintosh\040HD hfsplus
> ro,nosuid,nodev,relatime,umask=22,uid=0,gid=0,nls=utf8 0 0
> 
> Then df can report this partition with no problem.
> 
> mint ~ # df -Th |grep hfsplus
> /dev/sda2      hfsplus     94G   73G   21G  78% /media/user/Macintosh HD

Thanks for the information.

Is /etc/mtab a regular file on your system? It should be
a symlink nowadays:

  $ ls -ldog /etc/mtab
  lrwxrwxrwx 1 17 Feb 20 00:04 /etc/mtab -> /proc/self/mounts

Having mount to update mtab as a regular file is deprecated:
from Karel Zak's (the util-linux maintainer) blog:

  "Yeah, mtab is evil."
  http://karelzak.blogspot.de/2011/04/bind-mounts-mtab-and-read-only.html

as you pointed out that there is not a problem with df, I'm marking
this as "notabug" in coreutils' bug tracker.

Thanks & have a nice day,
Berny




Added tag(s) notabug. Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Oct 2018 22:16:09 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 17503 <at> debbugs.gnu.org and crquan <crquan <at> gmail.com> Request was from Assaf Gordon <assafgordon <at> gmail.com> to control <at> debbugs.gnu.org. (Thu, 11 Oct 2018 22:16:09 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 09 Nov 2018 12:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 228 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.