Jump to content
caii

Castiga spatiu pe o partitie

Recommended Posts

Cand creezi o partitie ext4, 5% din spatiu se va rezerva automat.

Acest spatiu are scopul de a reduce fragmentarea cat si de a permite rularea proceselor root atunci cand diskul este plin.

Dar la un disk de capacitate mare, de exemplu 2TB, approx. 100GB de spatiu rezervat este prea mult.

Putem reduce acest spatiu rezervat cu ajutorul tune2fs.

tune2fs -m 1 /dev/sda1

va reduce spatiul rezervat la 1% pentru acest disk, iar daca dorim sa dezactivam spatiul rezervat vom folosi

tune2fs -m 0 /dev/sda1

, unde 0 este 0% spatiu rezervat.

df -h cu spatiul de 5% rezervat:


Filesystem Size Used Avail Use% Mounted on
/dev/md0p1 2.7T 2.2T 399G 85% /backup

Dupa reducerea la 0% a spatiului rezervat:

df -h arata:


Filesystem Size Used Avail Use% Mounted on
/dev/md0p1 2.7T 2.2T 539G 81% /backup

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...