[Upgrading, Modifying and Unlocking] obifur:
Hello,

I need help with a quit old device:

device: Lenovo IdeaTab A2109A ("cl2n") (actually "medion Lifetab 59714" but seems to be compatible)

recovery: cwm 6.0.5.1

rom: unlegacy-android (Android 7.1.2 )

issue: I'm not able to list the partition table.

I tried to install open_gapps-arm-7.1-pico-20210502.zip, but it fails due to lack of system storage:

# Begin Open GApps Install Log
------------------------------------------------------------------
ROM Android version | 7.1.2
ROM Build ID | ua_a2109-userdebug 7.1.2 N2G48H 3026 test-keys
ROM Version increment | 3026
ROM SDK version | 25
ROM/Recovery modversion | 11-20160217-UNOFFICIAL-kai
Device Recovery | CWM-based Recovery 6.0.5.1
Device Name | a2109
Device Model | A2109A
Device Type | tablet
Device CPU | armeabi-v7a,armeabi
Device A/B-partitions | false
Installer Platform | arm
ROM Platform | arm
Display Density Used | 160
Install Type | Dirty[Data NOT Wiped]
Google Camera already installed | false
VRMode Compatible | false
Google Camera Compatible | true
New Camera API Compatible | false
Google Pixel Features | false
Current GApps Version | No GApps Installed
Google Camera version | Legacy
Installing GApps Zipfile | /data/media/open_gapps-arm-7.1-pico-20210502.zip
Installing GApps Version | 20210502
Installing GApps Type | pico
Config Type |
Using gapps-config | Not Used
Remove Stock/AOSP Browser | false[NO_Chrome]
Remove Stock/AOSP Camera | false[NO_CameraGoogle]
Remove Stock/AOSP Dialer | false[NO_DialerGoogle]
Remove Stock/AOSP Email | false[NO_Gmail]
Remove Stock/AOSP Gallery | false[NO_Photos]
Remove Stock/AOSP Launcher | false[NO_GoogleNow/PixelLauncher]
Remove Stock/AOSP MMS App | false[NO_Messenger]
Remove Stock/AOSP Pico TTS | false[default]
Ignore Google Contacts | false
Ignore Google Dialer | true[NoRemove]
Ignore Google Keyboard | false
Ignore Google Package Installer | false
Ignore Google NFC Tag | true[NoRemove]
Ignore Google WebView | false
Total System Size (KB) | 645056
Used System Space (KB) | 460820
Current Free Space (KB) | 184236
Additional Space Required (KB) | 80600 << See Calculations Below
------------------------------------------------------------------
# End Open GApps Install Log

INSTALLATION FAILURE: Your device does not have sufficient space available in
the system partition to install this GApps package as currently configured.
You will need to switch to a smaller GApps package or use gapps-config to
reduce the installed size.

NOTE: The Stock/AOSP NFC Tag is not available on your
ROM (anymore), the Google equivalent will not be removed.
NOTE: The Stock/AOSP Dialer is not available on your
ROM (anymore), the Google equivalent will not be removed.
# Begin GApps Size Calculations
------------------------------------------------------------------
TYPE | DESCRIPTION | SIZE | TOTAL
| Current Free Space | 184236 | 184236
Remove | Existing GApps | + 0 | 184236
Remove | Obsolete Files | + 0 | 184236
Remove | extservicesstock | + 16 | 184252
Remove | extsharedstock | + 12 | 184264
Remove | provision | + 12 | 184276
Install | Core | - 221656 | -37380
Install | calsync | - 2548 | -39928
Install | googletts | - 31456 | -71384
| Buffer Space | - 9216 | -80600
------------------------------------------------------------------
Additional Space Required | 80600
------------------------------------------------------------------

Now I want to repartition /system , but I don't know how the partition table need to look like and I'm not able to list it:

~$ adb shell
~ # df
Filesystem 1K-blocks Used Available Use% Mounted on
tmpfs 495972 128 495844 0% /dev
tmpfs 495972 8 495964 0% /tmp
tmpfs 495972 736 495236 0% /storage
tmpfs 495972 0 495972 0% /mnt/secure
tmpfs 495972 0 495972 0% /mnt/fuse
/dev/block/platform/sdhci-tegra.3/by-name/CAC
806288 13904 792384 2% /cache

~ # cat /proc/partitions
major minor #blocks name

179 0 30539776 mmcblk0
179 1 8192 mmcblk0p1
179 2 8192 mmcblk0p2
179 3 2048 mmcblk0p3
179 4 921600 mmcblk0p4
179 5 819200 mmcblk0p5
179 6 2048 mmcblk0p6
179 7 32768 mmcblk0p7
179 8 28731392 mmcblk0p8
179 32 2048 mmcblk0boot1
179 16 2048 mmcblk0boot0

~ # blkid
/dev/block/mmcblk0p8: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p5: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"
/dev/block/mmcblk0p4: LABEL="system" UUID="da594c53-9beb-f85c-85c5-cedf76546f7a" TYPE="ext4"

~ # ./parted /dev/block/mmcblk0
GNU Parted 3.3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) p
Error: /dev/block/mmcblk0: unrecognised disk label
Model: MMC HBG4e (sd/mmc)
Disk /dev/block/mmcblk0: 31.3GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
(parted) q

I also tried

~ # /partprobe -s
/dev/block/mmcblk0: msdos partitions
/dev/block/mmcblk0boot1: msdos partitions
/dev/block/mmcblk0boot0: msdos partitions

and

~ # /partprobe -s /dev/block/mmcblk0
Error: Partition(s) 5 on /dev/block/mmcblk0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use.
As a result, the old partition(s) will remain in use. You should reboot now before making further changes.

..but I always get the same error when I try to list the partition table with parted:

Error: /dev/block/mmcblk0: unrecognised disk label

I also tried fdisk:

~ # fdisk /dev/block/mmcblk0
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.

The number of cylinders for this disk is set to 954368.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): help
h: unknown command
Command Action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit

Command (m for help): v
61079551 unallocated sectors

What can I do?

I could just repartion it If I knew how it needs to look like. But I'm not an expert and don't know exactly if the partition table is rom and/or device related? I'm pretty sure it is and I can't just do a kind of "standard" partitioning - right?

Thank you!

P.S. Lenovo provides a "Open Source Code - IdeaTab A2109A Tablet" - does this contain the partition table??