mcpat-it / NVMe

Raspberry Pi (5) and NVMe
https://nvme.mcpat.com
GNU General Public License v3.0
20 stars 2 forks source link

GPTconverter seems to work but still left with same partition sizes #2

Open DecB4 opened 2 months ago

DecB4 commented 2 months ago

Hi Patrick, Thank you for your time with this software. It seems to run ok (option 1b) but my partitions are still the same size and I suspect I have to now figure out a way of increasing the partition I'm using....any pointers should be great. Thanks, Declan.

sudo fdisk -l Disk /dev/loop0: 33.65 MiB, 35287040 bytes, 68920 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/loop1: 33.71 MiB, 35344384 bytes, 69032 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/nvme0n1: 3.64 TiB, 4000787030016 bytes, 7814037168 sectors Disk model: CT4000P3PSSD8
Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: E0F52DAC-FDD5-46D0-BC45-C90428CCF7CF

Device Start End Sectors Size Type /dev/nvme0n1p1 2048 1050623 1048576 512M Microsoft basic data /dev/nvme0n1p2 1050624 3907545087 3906494464 1.8T Linux filesystem /dev/nvme0n1p3 3907545088 7814035455 3906490368 1.8T Linux filesystem

DecB4 commented 2 months ago

sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL [sudo] password for declan: NAME FSTYPE SIZE MOUNTPOINT LABEL loop0 33.7M /snap/snapd/21467 loop1 33.7M /snap/snapd/21761 nvme0n1 3.6T
├─nvme0n1p1 vfat 512M /boot/firmware system-boot ├─nvme0n1p2 ext4 1.8T / writable └─nvme0n1p3 ext4 1.8T

mcpat-it commented 2 months ago

As I can see you have 3 partitions (ending p1, p2 and p3). Your total size is 3.6T and you use this total size. p2 and p3 have 1.8T. So if you only want "one" big partition, you have to delete partion p3 and resize p2 to full size (around 3.6T). p1 is always needed as system-boot partition with 512M. This is no error of gptconverter, it's your amount of partitions.

DecB4 commented 2 months ago

Thanks for your reply and confirmation of GPTConverter working correctly….with Ubuntu server, what app might you recommend to delete p3 and increase the size of p2?

Declan

On 19 Aug 2024, at 14:56, MC Pat @.***> wrote:

As I can see you have 3 partitions (ending p1, p2 and p3). Your total size is 3.6T and you use this total size. p2 and p3 have 1.8T. So if you only want "one" big partition, you have to delete partion p3 and resize p2 to full size (around 3.6T). p1 is always needed as system-boot partition with 512M. This is no error of gptconverter, it's your amount of partitions.

— Reply to this email directly, view it on GitHub https://github.com/mcpat-it/NVMe/issues/2#issuecomment-2296645085, or unsubscribe https://github.com/notifications/unsubscribe-auth/BKTEBDODM5E5WS76XOECDYLZSH2SDAVCNFSM6AAAAABMVSV6MSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJWGY2DKMBYGU. You are receiving this because you authored the thread.

mcpat-it commented 2 months ago

I am not sure if ubuntu server is using p3, so what is the content of p3? I rethink about it, just deleting is maybe not safe. I use Raspberry Pi OS and this isn't creating/using p3.

you can also try to install gparted with sudo apt-get install gparted and then you can also do all operations with this grapical ui.

DecB4 commented 2 months ago

I got it working eventually. I wiped my 4TB drive and reinstalled Ubuntu Server. Then used your script from Raspberry Pi OS on the SSD card, used option 1b and expanded the GPT partition ....thanks!

Now I have on the NVME: $ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL NAME FSTYPE SIZE MOUNTPOINT LABEL loop0 squashfs 33.7M /snap/snapd/21467 loop1 squashfs 33.7M /snap/snapd/21761 nvme0n1 3.6T
├─nvme0n1p1 vfat 512M /boot/firmware system-boot └─nvme0n1p2 ext4 3.6T / writable