[Nexus 7 (2013) Original Android Development] ZoltanG:
I wanted to install LineageOS 18.1 and followed their wiki (https://wiki.lineageos.org/devices/flox/install) but the repartitioning was unsuccessful.

It is part of the story, that earlier I have already used 2 different repartition scripts (the first one gave me 1195 Mb, the second 1280 Mb)

Before I first time flashed flo-deb_clamor_repartition_20201203.zip I didn't change back to stock.

Here is a list of the outputs to the screen:

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb sideload flo-deb_clamor_repartition_20201203.zip
Total xfer: 1.00x
zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb shell
error: device unauthorized.
This adb server's $ADB_VENDOR_KEYS is not set
Try 'adb kill-server' if that seems wrong.
Otherwise check for a confirmation dialog on your device.

####
#### Here I enabled ADB as it was not done previously
####
#### Messages on the tablet's screen:
E:[libfs_mgr]Failed to mount /cache: Invalid argument
E:Failed to mount /cache/recovery/last_locale
E:[libfs_mgr]Failed to mount /cache: Invalid argument
Enabled ADB
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb shell
flox:/ # modify
2048+0 records in
2048+0 records out
1048576 bytes (1.0 M) copied, 0.100525 s, 10 M/s
20480+0 records in
20480+0 records out
10485760 bytes (10 M) copied, 0.287475 s, 35 M/s
umount: /mnt/system: Invalid argument
umount: /data: Invalid argument
umount: /sdcard: Invalid argument
umount: /cache: Invalid argument
GNU Parted 1.8.8.1.179-aef3
Using /dev/block/mmcblk0
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) rm 22
(parted) rm 23
(parted) rm 24
(parted) rm 25
(parted) rm 30
(parted) mkpart primary 614429696B 2187293695B
(parted) name 22 system
(parted) mkpart primary 2187293696B 2263875583B
(parted) name 23 cache
(parted) mkpart primary 2263875584B 2264924159B
(parted) name 24 misc
(parted) mkpart primary 2264924160B 2281701375B
(parted) name 25 recovery
(parted) mkpart primary 2348843008B 2610987007B
(parted) name 30 vendor
(parted) mkpart primary 2610987008B 31272713727B
(parted) name 31 userdata
(parted) quit
Information: You may need to update /etc/fstab.

mke2fs 1.45.4 (23-Sep-2019)
The file /dev/block/mmcblk0p22 does not exist and no size was specified.
mke2fs 1.45.4 (23-Sep-2019)
The file /dev/block/mmcblk0p23 does not exist and no size was specified.
mke2fs 1.45.4 (23-Sep-2019)
The file /dev/block/mmcblk0p30 does not exist and no size was specified.
mke2fs 1.45.4 (23-Sep-2019)
The file /dev/block/mmcblk0p31 does not exist and no size was specified.
2048+0 records in
2048+0 records out
1048576 bytes (1.0 M) copied, 0.218598 s, 4.5 M/s
20480+0 records in
20480+0 records out
10485760 bytes (10 M) copied, 2.087799 s, 4.7 M/s

####
#### Here I was waiting about 6-7 minutes and as nothing moved I tried to do something in Lineage Recovery. Pushed Volume Up/Down and Power On/Off on the tablet. Suddenly it rebooted, the Google sign and the "unlocked" symbol came up. I waited again about 5 minutes and then rebooted the tablet in Bootloader mode.
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ fastboot devices
077a734c fastboot
zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb devices
List of devices attached

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ fastboot boot lineage-18.1-20210419-recovery-flox.img
downloading 'boot.img'...
OKAY [ 0.355s]
booting...
OKAY [ 0.035s]
finished. total time: 0.390s

####
#### Here I enabled ADB in Lineage Recovery
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb devices
List of devices attached
077a734c recovery

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ fastboot devices

####
#### I tried to flash again the repartitioning script
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb sideload flo-deb_clamor_repartition_20201203.zip
Total xfer: 0.00x

####
#### Messages on the tablet's screen:
####
Now send the package you want to apply
to the device with "adb sideload <filename>"...
Supported API 3
Finding update package...
E:[libfs_mgr]Failed to mount /cache: Invalid argument
E:Failed to mount /cache
E:Failed to set up expected mounts for install: aborting
E:[libfs_mgr]Failed to mount /cache: Invalid argument
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb devices
List of devices attached
077a734c recovery

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb sideload flo-deb_clamor_repartition_20201203.zip
adb: sideload connection failed: closed
adb: trying pre-KitKat sideload method...
adb: pre-KitKat sideload connection failed: closed
zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ adb push sysrepart_1280_120.zip /sdcard/
sysrepart_1280_120.zip: 1 file pushed. 7.7 MB/s (827984 bytes in 0.102s)
zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$

####
#### tryed to reboot to Recovery, but only the Google sign and the "unlocked" symbol came up and after about 15-20 seconds it tried to load it again and again, no success. Turned it off and restarted in Bootloader. Fastboot devices still can see it. Booted up TWRP recovery temporarily:
####

zg@zg-HP-Laptop-14-cf0xxx:~/Downloads/Android ROMs & setup tools/setups/ROMS/LineageOS 18.1$ fastboot boot twrp-3.0.2-0-flo.img
downloading 'boot.img'...
OKAY [ 0.291s]
booting...
OKAY [ 0.029s]
finished. total time: 0.320s

When TWRP started I flashed again flo-deb_clamor_repartition_20201203.zip and it directed me to go to Terminal and write the word: stock

From there I could boot the original ROM (Validus 8.1 custom rom) and everything worked like if nothing had happened before.

I'm really lucky I got my tablet back again as I did a lot of mistake, for sure.

Now I finally found this thread and learned a lot about the possible problems and their handling.

I downloaded the repartition zip, the partition_resize.zip and the flo-recovery.img and want to try again with these by following your instructions. (However I could't open the web page to get loging.zip Is there any other place to get it from?

Knowing what I did before, would you recommend any preliminary steps?