Parted saying “cant have overlapping partitions” but no partitions overlap

Image of issue

Hello all, I am having an issue with my raspberry pi. I am trying to move it from one sd card to another larger one,and when I resizepart it says there is an overlapping partition, but I do not see one. Is there something i am missing?


(parted) print free Model: Generic STORAGE DEVICE (scsi) Disk /dev/sda: 128GB Sector size (logical/physical): 512B/512B Partition Table: msdos Disk Flags:  Number  Start   End     Size    Type      File system  Flags         32.3kB  4194kB  4162kB            Free Space  1      4194kB  1936MB  1932MB  primary   fat32        lba  2      1936MB  15.9GB  14.0GB  extended  5      1938MB  1971MB  33.6MB  logical   ext4  6      1971MB  2044MB  72.4MB  logical   fat32        lba  7      2047MB  15.0GB  13.0GB  logical   ext4         15.0GB  15.9GB  932MB             Free Space         15.9GB  128GB   112GB             Free Space  (parted) resizepart 7 End?  [15.0GB]? 100.0GB Error: Can't have overlapping partitions. (parted) 

Files missing on new 5TB hard drive after formatting as ext4 with parted and mkfs

After connecting a new external 5TB hard drive and formatting it as ext4 with parted and mkfs with the procedure below, I then mounted the drive, copied files onto it, unmounted the drive and restarted its host computer (running Ubuntu 18.04.3 LTS). Upon mounting the drive again, the files were no longer on the drive. What am I doing wrong?

  1. Got drive information using lshw:

sudo lshw -C disk

*-disk description: ATA Disk product: ST2000LM015-2E81 vendor: Seagate physical id: 0.0.0 bus info: scsi@2:0.0.0 logical name: /dev/sda version: SDM1 serial: ZDZ5H230 size: 1863GiB (2TB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=5 guid=2f8a9ef2-85cf-49fe-8cf6-04d7caae1a08 logicalsectorsize=512 sectorsize=4096 *-disk description: SCSI Disk product: Portable vendor: Seagate physical id: 0.0.0 bus info: scsi@3:0.0.0 logical name: /dev/sdb version: 9300 serial: NAA5C9V7 size: 4657GiB (5TB) capabilities: gpt-1.00 partitioned partitioned:gpt configuration: ansiversion=6 guid=bea19262-56ed-43c1-a4cd-62bca45eeb62 logicalsectorsize=512 sectorsize=4096

  1. Implemented ext4 file system using parted:

sudo parted /dev/sdb

GNU Parted 3.2 Using /dev/sdb Welcome to GNU Parted! Type ‘help’ to view a list of commands. (parted) mklabel gpt Warning: The existing disk label on /dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue? Yes/No? Yes (parted) unit TB (parted) mkpart Partition name? []? 5tb File system type? [ext2]? ext4 Start? 0 End? 5 (parted) print Model: Seagate Portable (scsi) Disk /dev/sdb: 5.00TB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags:

Number Start End Size File system Name Flags 1 0.00TB 5.00TB 5.00TB ext4 5tb

(parted) quit Information: You may need to update /etc/fstab.

  1. Make or Build a Linux File System (use mkfs)

sudo mkfs -t ext4 /dev/sdb1

mke2fs 1.44.1 (24-Mar-2018) /dev/sdb1 alignment is offset by 512 bytes. This may result in very poor performance, (re)-partitioning suggested. Creating filesystem with 1220933433 4k blocks and 152616960 inodes Filesystem UUID: e29ea500-1588-4128-9e12-b2f62891b318 Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done Writing inode tables: done Creating journal (262144 blocks): done Writing superblocks and filesystem accounting information: done

  1. Manually mounted/unmount the Hard Drive using mount:

Create a mount point:

sudo mkdir /media/5tb

Manually mount the drive (not automatic at boot)

sudo mount /dev/sdb1 /media/5tb

Unmount the drive

sudo umount /media/5tb

i want parted my used hard disk

can i parted my used hard disk?

I have is report with this command: sudo fdisk -l

Dispositivo Inicio  Comienzo     Final  Sectores Tamaño Id Tipo /dev/sda1   *           2048   1050623   1048576   512M ef EFI (FAT-12/16/32) /dev/sda2            1052670 976771071 975718402 465.3G  5 Extendida /dev/sda5          964397056 976771071  12374016   5.9G 82 Linux swap / Solaris /dev/sda6            1052672 964397055 963344384 459.4G 83 Linux  La partición 2 no empieza en el límite del sector físico. Las entradas de la tabla de particiones no están en el orden del disco. 

can i not resize my disk, why?enter image description here