harmonypersechino5348

Active Member
Dec 6, 2020
42
3
8
NA
cPanel Access Level
Website Owner
I'm not sure why but when installing cPanel it seems only 200MB was allocated to /boot so I need to either shrink and extend the current partitions or better I have added extended the drive and have free space (/dev/loop0) I also have added a second drive I could also use (/dev/sdb) how can I use either to extend /boot parition?


df -h
Code:
Filesystem      Size  Used Avail Use% Mounted on
devtmpfs         24G     0   24G   0% /dev
tmpfs            24G  4.0K   24G   1% /dev/shm
tmpfs            24G   33M   24G   1% /run
tmpfs            24G     0   24G   0% /sys/fs/cgroup
/dev/sda2       414G  115G  278G  30% /
/dev/sda1       227M  179M   33M  85% /boot
/dev/loop0      3.9G   31M  3.6G   1% /tmp
tmpfs           4.8G     0  4.8G   0% /run/user/0
fdisk -l

Code:
Disk /dev/sda: 488.6 GB, 488552529920 bytes, 954204160 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: 0x0009d882

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      489471      243712   83  Linux
/dev/sda2          489472   881219583   440365056   83  Linux
/dev/sda3       881219584   943718399    31249408   82  Linux swap / Solaris

Disk /dev/loop0: 4294 MB, 4294967296 bytes, 8388608 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 /dev/sdb: 5368 MB, 5368709120 bytes, 10485760 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

losetup -a
Code:
/dev/loop0: [2050]:24122515 (/usr/tmpDSK)

/etc/fstab

Code:
UUID=b551a04e-f1e6-40f0-850e-470bcdf58a23       /       ext4    usrjquota=quota.user,jqfmt=vfsv1        1       1
UUID=2a14690d-e9d7-4d67-9e97-e7aab5d36a8f /boot                   ext4    defaults        1 2
UUID=5ca0c34b-1ca2-4e38-9720-61995cc88c42 swap                    swap    defaults        0 0
/usr/tmpDSK             /tmp                    ext3    defaults,noauto        0 0
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,307
2,237
363
cPanel Access Level
Root Administrator
Hey there! cPanel doesn't set up the partitions on the machine, as that is all handled by the operating system. If this is a new installation, it would likely be quicker and easier to just reinstall the OS and reinstall cPanel. If this is an existing machine that already has data, you'd want to reach out to your hosting provider or datacenter to see if they have tools that will perform that work on the disk.