Shrink root FS

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

Tags:
  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 .

    Thanks
     
  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 .

    Thanks
     
  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: https://gparted.org/livecd.php
    Only defragmented pieces of your drive can be "shrinked", otherwise data would be lost. Consider defragmenting before.
    If it's vmware, this might help: https://www.vmware.com/support/ws5/doc/ws_disk_shrink.html
     
  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