Ed_P wrote: ↑21 Sep 2023, 20:17
Code: Select all
root@porteus:/home/guest/Downloads# tar2xzm *.tar.bz2
bash: tar2xzm: command not found
root@porteus:/home/guest/Downloads# ls -lght *tar*
-rw-r--r-- 1 users 7.1M Sep 21 16:09 testdisk-7.2-WIP.linux26-x86_64.tar.bz2
root@porteus:/home/guest/Downloads#
Indeed there is no tar2xzm. And there will be none since tar balls hardly use a path hierarchy inside that can be used to create a module. You have to create the needed folder hierarchy yourself, e.g. usr/bin or usr/man
You can use tar itself to extract a .tar.bz2 -
but you need to know the syntax.
You can use the archive program for your DE.
Or my preferred method: use mc
Create a folder first because sometimes a tar has its files in an appropriate folder, and sometimes it has not; thus to be on the safe side create an appropriate named folder manually : go into /home/guest/Downloads
Code: Select all
guest@porteus:~/Downloads$ su
Password:
root@porteus:/home/guest/Downloads# mkdir testdisk-7.2-WIP.linux26-x86_64
root@porteus:/home/guest/Downloads# mc . testdisk-7.2-WIP.linux26-x86_64/
Now use the one window of mc that shows you /home/guest/Downloads to open testdisk-7.2-WIP.linux26-x86_64.tar.bz2 - the other shows you the empty just created /home/guest/Downloads/testdisk-7.2-WIP.linux26-x86_64/ because you told mc showing you this in its other window by the way you called mc just now.
Extract all files from the tar archive using the highlighting function of mc and its copy function, copy these files into the empty /home/guest/Downloads/testdisk-7.2-WIP.linux26-x86_64/ folder - keep the original paths for now, you will not create a module out of /home/guest/Downloads/testdisk-7.2-WIP.linux26-x86_64/
Now you have all files extracted into /home/guest/Downloads/testdisk-7.2-WIP.linux26-x86_64/
If you want to make it into a module do a xzm2dir on my testdisk-7.2-WIP-x86_64-rava.xzm (version Novembre 2020) as an template:
Extract my old version
as root, again in /home/guest/Downloads/ :
Code: Select all
mkdir testdisk-WIP-7.2_2023.08-x86_64_Ed_P
xzm2dir /path/to/old/testdisk-7.2-WIP-x86_64-rava.xzm testdisk-WIP-7.2_2023.08-x86_64_Ed_P/
Now use mc again to overwrite the old files in /home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P/ with the new ones from /home/guest/Downloads/testdisk-7.2-WIP.linux26-x86_64/ but keep the folder hierarchy the same as it was for my old module or it would not work. Put the binaries into its folder where the old binaries are, the man pages into the man folder (when such thing existed in the tar.bz2 archive - in our case it does) etcetera.
First test if the binary works as intended.
Move into the appropriate folder in /home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P/
Since lsxzm on my Novembre 2020 module of testdisk-7.2 shows me this file hierarchy
Code: Select all
/usr
/usr/bin
/usr/bin/fidentify
/usr/bin/fidentify_static
/usr/bin/photorec
/usr/bin/photorec_static
/usr/bin/testdisk
/usr/bin/testdisk_static
/usr/doc
/usr/doc/testdisk-7.2-WIP
/usr/doc/testdisk-7.2-WIP/AUTHORS
/usr/doc/testdisk-7.2-WIP/ChangeLog
/usr/doc/testdisk-7.2-WIP/NEWS
/usr/doc/testdisk-7.2-WIP/README.md
/usr/doc/testdisk-7.2-WIP/THANKS
/usr/doc/testdisk-7.2-WIP/documentation.html
/usr/man
/usr/man/man8
/usr/man/man8/fidentify.8
/usr/man/man8/photorec.8
/usr/man/man8/testdisk.8
/var
/var/lib
/var/lib/pkgtools
/var/lib/pkgtools/douninst.sh
/var/lib/pkgtools/packages
/var/lib/pkgtools/packages/testdisk-7.1-x86_64-1_rava
/var/lib/pkgtools/scripts
/var/lib/pkgtools/scripts/testdisk-7.1-x86_64-1_rava
/var/lib/pkgtools/setup
/var/lib/pkgtools/setup/tmp
/var/log
/var/log/packages
/var/log/pkgtools
/var/log/pkgtools/removed_packages
/var/log/pkgtools/removed_scripts
/var/log/scripts
/var/log/setup
you will find the binaries to first test in here:
/home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P/usr/bin/
Execute the test-wise e.g. like so:
Move into the folder:
Code: Select all
cd /home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P/usr/bin/
execute it manually - testdisk now should be a symlink to testdisk_static - the August 2023 version you just extracted and used to overwrite the older version from my older module:
The initial ./ is essential since /home/guest/Downloads/testdisk-7.2_2023.08-x86_64_Ed_P/usr/bin/ is not part of your $PATH
When testdisk works as it should create the module as root via
dir2xzm /home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P /home/guest/Downloads/testdisk-WIP-7.2_2023.08-x86_64_Ed_P.xzm
Copy or move testdisk-WIP-7.2_2023.08-x86_64_Ed_P.xzm onto a partition outside your union FS and activate it.
Again test it, this time just as
since you put its binaries into /usr/bin/
Enjoy your self-made module.
Do not share the module unless the issue I described in TestDisk & PhotoRec 7.2 WIP 2023.08 is resolved.