TNAP-6 Image Discussion

From your previous post (592), slot 23 has debris in it. The clone should work if everything is OK. What about the receiver menus? Do they show the extended slots?

You may clone slots using terminal. Just cd to the plugin location in the receiver like we did earlier. Test and see if terminal cloning works:
Clone Command Syntax:

python3 clone_slot.py [SOURCE_SLOT] [DESTINATION_SLOT]

Your Example:

python3 clone_slot.py 4 23

What this does:
- Source: Slot 4 (TNAP 6 - internal)
- Destination: Slot 23 (Empty - SD card)
- Result: Clones slot 4 → slot 23 (complete copy)

More Examples:

# Clone current slot 21 to empty slot 23
python3 clone_slot.py 21 23

# Clone internal slot 2 to SD slot 10
python3 clone_slot.py 2 10

# Clone between SD slots
python3 clone_slot.py 10 20

# Clone SD slot back to internal
python3 clone_slot.py 16 3

What Happens:

1. Validation:
- Checks source slot has valid image ✓
- Checks destination slot exists ✓
- Asks for confirmation (destination will be overwritten)
2. Cloning Process:
- Clones kernel partition (dd copy)
- Clones rootfs partition (rsync copy)
- Preserves all files, permissions, symlinks
3. Result:
- Destination slot is exact copy of source
- Bootable immediately
- Shows same image name in list

Important Notes:

⚠ Destination will be COMPLETELY OVERWRITTEN
- Any data in slot 23 will be lost
- Plugin will ask for confirmation first

✓ Works for any slot combination:
- Internal → Internal (1-4)
- Internal → SD (1-4 → 5-29)
- SD → SD (5-29 → 5-29)
- SD → Internal (5-29 → 1-4)

✓ Much faster than backup/restore:
- No compression/decompression
- Direct partition copy
- Takes ~2-5 minutes for 2GB image

✓ Now validates properly:
- Won't clone from empty slots (e.g., slot 20 with 445M leftover)
- Won't clone from slots without complete images

Your Specific Case:

python3 clone_slot.py 4 23

Before:
- Slot 4: TNAP 6 (582.1M)
- Slot 23: Empty (340.1M leftover)

After:
- Slot 4: TNAP 6 (582.1M) - unchanged
- Slot 23: TNAP 6 (582.1M) - exact copy! ✓
 
I installed 01-21 into slot 22 and enigma2-plugin-extensions-tnapslotmanager_1.1.17-r3_all.ipk. Then ran the cd /usr/lib/enigma2/python/Plugins/Extensions/TNAPSlotManager && python3 list_slots.py > /tmp/slot_list_output.txt 2>&1 && cat /tmp/slot_list_output.txt command. I am still showing left over files in certain slots even though they indicate as being empty.

Since I can't use Filezilla to identify the slots with leftovers, what's the best terminal command to erase any left over files in each slot and allow the slot to remain intact for future use.
 

Attachments

Ok so the enigma2 edits to the image seem to be successful as you are "seeing" the extended slots now in the enigma2 image menus....Progress I guess.

Two scripts are attached. One will clean your slots. This script can be modified to clean other slots by editing it. Send both scripts to /tmp of the receiver. Open telnet and cd to /tmp of the receiver. Then make executable:
chmod +x clean_empty_slots.sh
Run it:
./clean_empty_slots.sh

There are a couple of unidentified images lurking about in your last .txt file, I think slots 27 and 28?? So let's see about identifying a solution to make them visible.
chmod +x diagnose_unknown_slots.sh ./diagnose_unknown_slots.sh > /tmp/slot_diagnosis.txt
Then either upload the generated file or just copy the output:
/tmp/slot_diagnosis.txt
Or
cat /tmp/slot_diagnosis.txt
 

Attachments

OK will give the file.zip a go...

Due to the embedded left over files in certain slots, I am guessing that slot manager plugin cloning is not working correctly.

I tried to clone slot 4 to 23 and got this message...
 

Attachments

  • SlotManager clone of slot 4 to slot 23 error.webp
    SlotManager clone of slot 4 to slot 23 error.webp
    125.3 KB · Views: 8
OK ran the cleanup script and here's the slot_diagnosis info.
LOL. When you show errors like that, then it triggers a fix! Or at least an attempt. We knew there was a cloning problem, but the screenshot announces what the problem is and where it lives! Install attached .ipk and try cloning again.
Thought the last ipk was R3, my bad.
 

Attachments

To make sure everything is proper for my minimum system, I backed up a slot, then cloned it. Total time = 49 seconds.
enigma2-plugin-extensions-tnapslotmanager_1.1.17-r4_all.ipk

Seems you may have corrupted slots or something? Slot 27 and 28 in one of your .txt files shows images but they are unknown...???? The last diagnostic script for this turned up nothing. Please find attached and run: detailed_slot_diagnosis
 

Attachments

I didn't have much time earlier to completely check out the clone from slot 4 to slot 23. When booted into slot 23 it seemed to behave correctly by just checking and running the bouquets. Did not get a chance to check plugins or anything else.

I am currently back on 01-21 in slot 22 with the last R4 ipk installed and doing some terrestrial recordings. All seems well. Although I have yet to check all plugins.
 

Attachments

Is everything working correctly, Or do we still have items/features that are broken? You have a couple of slots that cannot be identified? Can these slots be booted into? What are they supposed to be? (Slot 27 and 28?)

Attached is a script designed especially for you to use FileZilla with any existing slot. Tested on slots 1-4. Not tested on extended slots.
 

Attachments

The browse_slots_final works great...

I am using slot 22 which I flashed earlier with the downloaded 01-21 zip file and installed the R4 ipk file.

Then I cloned 2 to 27, 2 to 28, 17 to 27, 17 to 28 without success. Then cloned slot 17 to 26 and it cloned ok.

So, slots 27 and 28 seem to be unknown. Did not try to boot into these slots even though they now show up in the multiboot menu. I might try booting into these slots later when I do a backup of all my slots and download them to my pc.

Still haven't tested all my installed plugins in the cloned slots yet.
 

Attachments

  • slot 2 to 27 error clone.webp
    slot 2 to 27 error clone.webp
    116.5 KB · Views: 3
  • slot 2 to 28 error clone.webp
    slot 2 to 28 error clone.webp
    115.6 KB · Views: 3
  • slot 17 to 26 cloned OK.webp
    slot 17 to 26 cloned OK.webp
    91.2 KB · Views: 3
  • slot 17 to 27 error clone.webp
    slot 17 to 27 error clone.webp
    114 KB · Views: 2
  • slot 17 to 28 error clone.webp
    slot 17 to 28 error clone.webp
    115.6 KB · Views: 2
  • slot 27 and 28 in boot menu displays.webp
    slot 27 and 28 in boot menu displays.webp
    70.8 KB · Views: 2
At least something works great!
Slot number 27 & 28 did not identify correctly, and when we checked them using the scripts, they were missing some files in /etc...Or those two slots reported that.
Then you still have a clone slot problem as shown in your screenshots. So the plugin gets edited again.

Install the attached.ipk file and see if the clone slot feature works like it should. Note: Slots1-4 are of course different than the rest. The attached plugin should handle any cloning job....

See if this statement is correct:
The plugin will now successfully clone between any slot combination:
- Internal → Internal (shared subdirs)
- Internal → Extended (dedicated partition)
- Extended → Internal
- Extended → Extended
The only exception should be you cannot clone into the slot you are using. For example, if you are currently booted to slot 3 then you cannot clone another slot into 3 as it would wipe you out. The script in the plugin will refuse this request.
 

Attachments

Back
Top