Howdy, Stranger!

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


Shells Virtual Desktop
BMail.ag - Secure Email Service
Server.net
CPLicense.net
VPS Server
Buy VPN
Vultr
VMs for AI
HostDare
HostDare
ReliableSite White-Label Dedicated Hosting for Resellers
25% Recurring Discount on NVMe VPS
InterServer VPS
BMail.ag - Secure Email Service
Best VPN
High-Performance Bare Metal Server Solutions
Karvl.com
Server Mania Cloud Hosting
DataWagon Hosting
AlphaVPS Hosting
Evoxt.com
Clouvider
VPS Hosting with NVMe
Residential IPs in the US & 4G Mobile Proxies in EU & US with Unlimited Bandwidth
ReliableSite White-Label Dedicated Hosting for Resellers
Rabisu - Hosting Solutions
CloudLinux
Shells Virtual Desktop
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, Host Rep
    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.