Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Disk Size #685

Closed
unixb0y opened this issue Jul 27, 2020 · 7 comments
Closed

macOS Disk Size #685

unixb0y opened this issue Jul 27, 2020 · 7 comments
Assignees
Labels
bug macOS macOS / OS X Issues

Comments

@unixb0y
Copy link

unixb0y commented Jul 27, 2020

I'm submitting a ... (check one with "x")

[x] bug report
[ ] new distro request

Bug report
My disk usage is around 190GB, but shows as 11G / 500G.

> screenfetch -v
...
:: Finding current disk usage...found as '11G / 500G (4%%)'
...

If I execute the lines of the scrip that should be executed manually, it works fine though:

> totaldisk=$(df -H /System/Volumes/Data 2>/dev/null | tail -1)
> awk '{print $3}' <<< "${totaldisk}"
189G
@darealshinji darealshinji added bug macOS macOS / OS X Issues labels Jul 28, 2020
@FrankKair
Copy link

+1 I'm experiencing the same issue

@KittyKatt
Copy link
Owner

Hmmmm. Unsure why that's happening. I'll need to check it out locally and see what's happening. Thanks for the report!

@KittyKatt KittyKatt self-assigned this Mar 19, 2021
@unixb0y
Copy link
Author

unixb0y commented Mar 24, 2021

@KittyKatt awesome thanks!

@vu1Art1st
Copy link

@unixb0y @FrankKair
I recently encountered this problem and I don’t know if you still need a solution.
To solve the bug, My change was:
[Original code] totaldisk=$(df -H / 2>/dev/null | tail -1)
[Changed code] totaldisk=$(df -H /System/Volumes/Data 2>/dev/null | tail -1)

@unixb0y
Copy link
Author

unixb0y commented Jun 10, 2023

@unixb0y @FrankKair I recently encountered this problem and I don’t know if you still need a solution. To solve the bug, My change was: [Original code] totaldisk=$(df -H / 2>/dev/null | tail -1) [Changed code] totaldisk=$(df -H /System/Volumes/Data 2>/dev/null | tail -1)

Awesome, this seems to work! I just realized that it's already part of screenfetch-dev in the main branch of this repo.
So I just copied all its contents into my screenfetch bash script.

Seems like a new release is due, no? Been a few years since the last one.

@vu1Art1st
Copy link

@unixb0y @FrankKair I recently encountered this problem and I don’t know if you still need a solution. To solve the bug, My change was: [Original code] totaldisk=$(df -H / 2>/dev/null | tail -1) [Changed code] totaldisk=$(df -H /System/Volumes/Data 2>/dev/null | tail -1)

Awesome, this seems to work! I just realized that it's already part of screenfetch-dev in the main branch of this repo. So I just copied all its contents into my screenfetch bash script.

Seems like a new release is due, no? Been a few years since the last one.

Yeah, it seems like a new release is due, and maybe you can take a look at issue #750? Those people also helped me fix a bug when I used it on Ventura 13.3.1 (Intel i9).

@unixb0y
Copy link
Author

unixb0y commented Jul 5, 2023

FIXED IN MAIN BRANCH VERSION. NOT IN LATEST (3.9.1, 4 years old....) RELEASE THOUGH.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug macOS macOS / OS X Issues
Projects
None yet
Development

No branches or pull requests

5 participants