I have an external USB drive (not bootable) with an ext4 filesystem on it. parted -l
says "Partition Table: loop" (full output at end of post).
I want to shrink that partition and add an NTFS partition that Windows can recognize to store a backup.
I boot Ubuntu 22.04 Live from a DVD, and run Gparted. I tell it to shrink the ext4 filesystem and then create a new NTFS partition.
The fs shrink operation succeeds, but then creating a new partition fails with "Too many Primary partitions". I'm not sure how to proceed.
As best I can tell, there is no partition table. Is there a way to create one without loss of data?
Any suggestions?
% sudo file -s /dev/sda
file -s /dev/sda
/dev/sda: Linux rev 1.0 ext4 filesystem data, UUID=2311d0f0-6849-4175-81a3-ff9d24f0e183 (extents) (large files) (huge files)
% sudo gparted -l
Model: TOSHIBA External USB 3.0 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/512B
Partition Table: loop
Disk Flags:
Number Start End Size File system Flags
1 0.00B 1000GB 1000GB ext4
Model: Generic Flash Disk (scsi)
Disk /dev/sdb: 62.9GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 62.9GB 62.9GB fat32 Main Data Partition msftdata