Therefore I tried to make this partition non hidden: diskpart select vol 5. vi /etc/fstabĪnd at the end of the file and add the following /dev/sdb1 /boot ext4 defaults 1 2 7.- Edit the fstab file to make permanent the changes thot Diskpart, bn nhp exit vo ca s attrib c:bootbcd h r s. To achieve this, edit the /etc/fstab file. What we need to do is to make the changes permanent. Review the changes df -h Mounting the new /boot partitionĮverything is fine. Now you can mount the new partition mount -t ext4 /dev/sdb1 /boot resize2fs /dev/sdb1 increase the size of the boot partition dd if=/dev/sda2 of=/dev/sdb1 bs=20M conv=noerror,syncįinally, resize the /dev/sdb1 partition. e2fsck -f /dev/sdb1Īnd then copy the entire contents of /boot which in my case is in /dev/sda2 to the new partition. Using the e2fsck tool, we will have to verify the integrity of the partition. When finished, you will get an output screen like this. Remember that /dev/sdb1 is the location of the partition we created earlier. mkfs.ext4 /dev/sdb1 4.- Format the new partition The next step is to format the new partition with ext4. Type 1.Īnd apply the changes by pressing w. P primary (0 primary, 0 extended, 4 free)Į extended (container for logical partitions) In this case, I will choose primary by typing p. First, it will ask us to create a new partition. To achieve this, we will use the fdisk tool.Īnd there we will start to be asked the usual questions.
The next step is to create a new partition on this disk. In my case, it is in /dev/sdb and is 3.5Gb in size. fdisk -l | grep dev 2.- check the new disk added to the system To find out where it is located, you can run. In my case, it is connected and recognized.
How to increase it? The best way is to add a second hard disk or other memory. Increasing the boot partition size on Rocky Linux 8 / CentOS Prepare the external disk for /bootĪs demonstrated by the screenshot above, the size of my /boot partition is about 700mb. Here are my partitions 1.- the test environment The installation of the system has been done in the normal way and the partitioning scheme is the one proposed by the installer but using ext4 as file system. Test environmentįor this post, I created a virtual machine with Rocky Linux 8, but it must work on all other derivatives like Alma Linux 8. The reasons can be very varied, but it’s always good to know. Many times, we need to increase the size of the boot partition in Rocky Linux 8 / CentOS.