Shrink root FS

Discussion in 'Server Operation' started by tashman89, Sep 5, 2019.

  1. tashman89

    tashman89 Member

    Hello dears ,

    Please I need your support, I have CentOS server and I need to reduce root FS without lost any data to reduce the HD size on the VMware setting so could you please provide me with the steps I have tried many ways but no luck after finishing I found the vm is corrupted .

  2. Taleman

    Taleman Well-Known Member HowtoForge Supporter

  3. tashman89

    tashman89 Member

    Hello Taleman
    Yes I want to make root partition smaller .
    I have tried gparted but I faced edit issue when using it I founf that i can resize boot fs just the root / i i cant like idont have permission to edit it .

  4. Taleman

    Taleman Well-Known Member HowtoForge Supporter

    I have resized partitions with gparted. Maybe you do something wrong? Not knowing how you tried to do the resize I can not help.
  5. Steini86

    Steini86 Active Member

    You shouldn't resizing a file system, which is currently being worked on. Nasty things can happen. Boot from recovery and use gparted there. If it's a vserver: most companies offer to mount a gparted image:
    Only defragmented pieces of your drive can be "shrinked", otherwise data would be lost. Consider defragmenting before.
    If it's vmware, this might help:
  6. tashman89

    tashman89 Member

    dears ,

    could you please advise about the below I cant edit /dev/sda2

    Attached Files:

  7. Taleman

    Taleman Well-Known Member HowtoForge Supporter

Share This Page