LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Expand partition of CentOS 6.5 (https://www.linuxquestions.org/questions/centos-111/expand-partition-of-centos-6-5-a-4175717521/)

garvind25 10-07-2022 01:53 PM

Expand partition of CentOS 6.5
 
Hi,

I am new to CentOS and Virtual Machines. I got a CentOS 6.5 VM on the internet and wanted to try it out. Hope someone can help me in its usage.

I loaded the guest OS (CentOS 6.5) on VMWare Workstation 10. The HDD for CentOS distribution was 35GB. I needed to increase it to 60GB. So I shut down the guest OS, went to the corresponding settings of VM Ware and expanded its HDD to 60GB. When I restarted the guest OS, I logged in as admin and ran the command fdisk /dev/sda. I was able to create a new partition sda3. Pls see the screenshot below:


https://ibb.co/nB1YxVn


My problem is that I want to merge sda3 into sda1 (sda1 is boot partition) so that the size of sda1 increases. How to do so pls? Do note that the partition type of sda1 and sda3 is Linux (not Linux LVM).

I look forward to your prompt response.

Thanks and Regards,
Arvind Gupta

Rawcous 10-17-2022 12:05 PM

Hello,

Well first of all is your box externally facing - i.e. does it have internet access? If yes then you are at risk of any unpatched holes in your existing binaries becoming a gateway for external attacks and compromise to both the Centos box and potentially the network it resides on. Centos 6.x gave up the ghost i.e. went end of life near on 2 years ago.

Regards,

Rawcous

boughtonp 10-17-2022 12:15 PM

Quote:

Originally Posted by garvind25 (Post 6384946)
I am new to CentOS and Virtual Machines. I got a CentOS 6.5 VM ...

Why did you go with a CentOS 6.5 VM, since that version is almost a decade out of date?

CentOS 6.5 was replaced by 6.6 in 2014, which itself was replaced by 6.7 then 6.8 then 6.9 and finally 6.10 in 2018, which was supported until November 2020.

CentOS 7.9 is still supported until 2024, but if you're new there's no reason to use it - you should instead look at the successors to CentOS, AlmaLinux and Rocky Linux - pick either of those instead.

(When you do that, you can either re-create the VM and virtual disks from scratch, or wipe/repartition what you've got as part of the install process.)



All times are GMT -5. The time now is 02:51 AM.