Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


How to resize root partition
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

How to resize root partition

Hi, please help centos 7 how to resize partitions:
Now:
/dev/sda1 400G 2.2G 398G 1% /
How to change resize:
/home 300 gb
/ all gb

Comments

  • [root@135 ~]# fdisk -l

    Disk /dev/sda: 429.5 GB, 429496729600 bytes, 838860800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x000b050e

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 838857728 419427840+ 83 Linux

  • tentortentor Member, Patron Provider
    1. backup important data
    2. if no important data then do not bother and reinstall your system, otherwise jump to 3
    3. reboot into livecd
    4. shrink ext4
    5. create new partition
  • @nszerver said:
    [root@135 ~]# fdisk -l

    Disk /dev/sda: 429.5 GB, 429496729600 bytes, 838860800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x000b050e

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 838857728 419427840+ 83 Linux

    Backup and simply go for a reinstall rather than messing up with disk space and your data.

  • RHCHostingRHCHosting Member, Host Rep

    @rahulbose98 said:

    @nszerver said:
    [root@135 ~]# fdisk -l

    Disk /dev/sda: 429.5 GB, 429496729600 bytes, 838860800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk label type: dos
    Disk identifier: 0x000b050e

    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 838857728 419427840+ 83 Linux

    Backup and simply go for a reinstall rather than messing up with disk space and your data.

    What if they don't want to reinstall?

    => Boot with GParted and resize the partition :-)
    make sure you have taken a backup first

  • @RHCHosting said: make sure you have taken a backup first

    That's the main point - make sure to take backups

Sign In or Register to comment.