Skip to content

Bug: df cannot read table of mounted file systems on macos #1356

@bjornbm

Description

@bjornbm

Contact Details

[email protected]

What happened?

Using cosmos df:

~ $ uname -a
Darwin Narcissus.local 24.1.0 Cosmopolitan 4.0.1 MODE=aarch64; Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:15 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6000 arm64 GNU/Linux
~ $ df
df: cannot read table of mounted file systems: No such file or directory

Expected (using system df):

~ $ /bin/df
Filesystem     512-blocks      Used Available Capacity iused     ifree %iused  Mounted on
/dev/disk3s1s1  965595304  20981648 151801776    13%  408310 759008880    0%   /
devfs                 402       402         0   100%     696         0  100%   /dev
/dev/disk3s6    965595304   8391592 151801776     6%       4 759008880    0%   /System/Volumes/VM
/dev/disk3s2    965595304  12693752 151801776     8%    1098 759008880    0%   /System/Volumes/Preboot
/dev/disk3s4    965595304      6872 151801776     1%      50 759008880    0%   /System/Volumes/Update
/dev/disk1s2      1024000     12328    984904     2%       1   4924520    0%   /System/Volumes/xarts
/dev/disk1s1      1024000     11016    984904     2%      29   4924520    0%   /System/Volumes/iSCPreboot
/dev/disk1s3      1024000      6032    984904     1%      75   4924520    0%   /System/Volumes/Hardware
/dev/disk3s5    965595304 769499056 151801776    84% 1764505 759008880    0%   /System/Volumes/Data
map auto_home           0         0         0   100%       0         0     -   /System/Volumes/Data/home

Version

df (GNU coreutils) 9.4
Copyright (C) 2023 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <https://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.

Downloaded 2025-01-21 from https://cosmo.zip/pub/cosmos/bin/

What operating system are you seeing the problem on?

Mac

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    contributions welcomeWe'll commit to review and maintenance if the people who need it write the changes.medium severityUsed to report medium severity bugs (e.g. Malfunctioning Features but still useable)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions