Zero Disk Space
Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I have a Centos 7 server with ext4
running as a KVM
and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc.
dd if=/dev/zero of=/zero bs=64k; sync; sync; sync; rm -f /zero
Is there anyway to make this stop when "/" root is 98 percent full?
linux ext4 dd disk
add a comment |Â
up vote
0
down vote
favorite
I have a Centos 7 server with ext4
running as a KVM
and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc.
dd if=/dev/zero of=/zero bs=64k; sync; sync; sync; rm -f /zero
Is there anyway to make this stop when "/" root is 98 percent full?
linux ext4 dd disk
2
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I have a Centos 7 server with ext4
running as a KVM
and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc.
dd if=/dev/zero of=/zero bs=64k; sync; sync; sync; rm -f /zero
Is there anyway to make this stop when "/" root is 98 percent full?
linux ext4 dd disk
I have a Centos 7 server with ext4
running as a KVM
and I want to zero the free disk space. This is so when I backup the KVM the compressed image size is reduced. I saw this command etc.
dd if=/dev/zero of=/zero bs=64k; sync; sync; sync; rm -f /zero
Is there anyway to make this stop when "/" root is 98 percent full?
linux ext4 dd disk
edited Jun 27 at 14:09
Jeff Schaller
30.8k846104
30.8k846104
asked Jun 27 at 13:14
Matt
143
143
2
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47
add a comment |Â
2
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47
2
2
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f452215%2fzero-disk-space%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
2
Do you have reserved-for-root inodes/blocks set up for the device (often: 10%), and would you be happy if filled to 100%-10%=90%?
â Ulrich Schwarz
Jun 27 at 14:06
I am most concerned of the moment disk space is exhausted that some other processes will not be able to write to disk and crash etc.
â Matt
Jun 27 at 14:18
Looking at df -k and wanting to know how to get numerical value of percentage of /tmp used in bash script to compare too.
â Matt
Jun 27 at 19:47