Skip to content

Instantly share code, notes, and snippets.

View wedermac's full-sized avatar

Weder Araujo wedermac

View GitHub Profile
@wedermac
wedermac / Resize_root_partition_on_CentOS 7_8_online.md
Last active June 22, 2023 16:34 — forked from troyfontaine/readme.md
Resize root partition (or how to remove the default /home partition) on CentOS 7 online

Resize root partition (or how to remove the default /home partition) on CentOS 7 online

This requires you to be able to ssh into the instance using the root user account and that no services be running as users out of /home on the target machine.

The examples are from a default installation with no customation-you NEED to know what you're working with for volumes/partitions to not horribly break things.

By default, CentOS 7 uses XFS for the file system and Logical Volume Manager (LVM), creating 3 partitions: /,/home and

Step 1 - Copy /home Contents

To backup the contents of /home, do the following: