<div dir="ltr">I believe cfdisk has an option to extend a partition without having to do the nail-biting "delete partition/create partition" you have to do in fdisk. both do the same thing, just rewrite the partition table, but cfdisk is a bit nicer about it.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 12 Aug 2020 at 10:59, Charles M <<a href="mailto:chaslinux@gmail.com">chaslinux@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Thanks to Mark who responded to me in a private message. I was able to<br>
resize the RAID1 partition and expand the OS "running within the OS."<br>
Here's what I did:<br>
<br>
I was able to resize the partition on the live environment following<br>
<a href="https://stackoverflow.com/questions/53743677/changing-a-partition-with-fdisk-shows-a-warning-like-partitionx-contains-ext4" rel="noreferrer" target="_blank">https://stackoverflow.com/questions/53743677/changing-a-partition-with-fdisk-shows-a-warning-like-partitionx-contains-ext4</a><br>
<br>
I only had 2 partitions (no swap - which simplified things):<br>
/dev/sda1 - /boot/EFI<br>
/dev/sda2 - /<br>
<br>
>From the live OS I ran<br>
sudo fdisk /dev/sda2<br>
<br>
I deleted the partition, and created a new partition. A couple of<br>
notes: When you create the new partition you have to start it at the<br>
same block as the old one. Also there's a prompt I didn't see<br>
mentioned that asks about deleting an existing ext4 filesystem (which<br>
I said NO to since I want to preserve the partition). fdisk defaulted<br>
to the same block as the start block was before. fdisk also defaulted<br>
to the proper size for the end of the array (the 6TB).  All I had to<br>
do after was write the changes and then run:<br>
<br>
resize2fs /dev/sda2<br>
<br>
The process took around 30 seconds, but I only had a basic install of<br>
Ubuntu server on the disks before, I'm not sure how long it would take<br>
with a drive full of data. I did a df -h after the process and it<br>
showed 6TB of space. To be sure that things were still good I<br>
rebooted. On reboot Ubuntu server loaded up, I did a df -h again and<br>
it saw the whole 6TB.<br>
<br>
-- <br>
Charles<br>
<br>
_______________________________________________<br>
kwlug-disc mailing list<br>
<a href="mailto:kwlug-disc@kwlug.org" target="_blank">kwlug-disc@kwlug.org</a><br>
<a href="https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org" rel="noreferrer" target="_blank">https://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org</a><br>
</blockquote></div>