-
Notifications
You must be signed in to change notification settings - Fork 60
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
1.5.2: free space check uses wrong column in Ubuntu #38
Comments
Can you paste the full df -k output from your ubuntu system (df -k by itself)? My Ubuntu 9.x and 10.x systems both require the 4th field as the first one, seemingly blank on your output, is the disk device:
|
My system setup is using a LVM volume which results in a different df output
The terminal window would have been wide enough to print the data in one line. This seems to be a df related behavior. Sometimes it's astonishing what you have to take into account when programing, isn't it? May be this can be solved by adding the -P option to df resulting in df -kP /tmp which prints hope that helps |
I had the same error and fixed using the -P option. In my case the wrong column is used because the drive name is really long: |
Fixed by c1204a1. |
Got "There is not enough free space on /tmp to create the new file." on pretty full drive.
found in line 486
WDFREESPACE=$(\df -k "$WD" | tail -1 | awk '{print $4*1024}')
but
\df -k "$WD" | tail -1
gives
1939175428 1913048748 26126680 99% /
on my Ubuntu system
and awk uses the 4th column instead of the 3rd which is supposedly wrong
\df -k /tmp/ | tail -1 | awk '{print $4}' results in
99%
which is obviously wrong
\df -k /tmp/ | tail -1 | awk '{print $3}' results in
26126680
which is correct.
and btw it doesn't have to be multiplied by 1024 as done in your script since the result is already in kilobytes. But this is already addressed in issue #37.
It is not to my knowledge if this only applies to Ubuntu, but may be it's worth a check.
The text was updated successfully, but these errors were encountered: