[solved]xzm recovery?

Non release banter
Post Reply
User avatar
White ninja
White ninja
Posts: 18
Joined: 08 Sep 2011, 08:46
Location: France

[solved]xzm recovery?

Post#1 by banshee22 » 21 Mar 2012, 15:24

Hi All,

I'm facing an issue with an xzm module I've made for myself. When executing xzm2dir on it, I've this error:
Parallel unsquashfs: Using 4 processors
Lseek failed because Invalid argument
read_block: failed to read block @0xc7bc0855a4606ec5
read_uids_guids: failed to read id table block
FATAL ERROR aborting: failed to uid/gid table

Unfortunatly, I've no other copy from this module which took me lot of time....It's definitively lost?

Last edited by banshee22 on 27 Mar 2012, 15:33, edited 1 time in total.

User avatar
Posts: 1846
Joined: 28 Dec 2010, 07:41
Distribution: Porteus
Location: France

Re: xzm recovery?

Post#2 by Hamza » 21 Mar 2012, 15:32


I cannot confirm anything but fanthom should do.

I don't think that is possible to recover a corrupted xzm module because it is compressed and meta data are stripped.

Anyway I don't know much things on it :oops:

Bonne Chance

User avatar
Posts: 151
Joined: 13 Jan 2012, 14:35
Distribution: slackware 14

Re: xzm recovery?

Post#3 by bigbass » 21 Mar 2012, 15:55

I'm facing an issue with an xzm module I've made for myself. When executing xzm2dir on it
Do you still have the folder that you used to make the module?
if the answer is yes you could manually slackware package it first using makepkg (and add the slack.desc)

then tgz2xzm it


this is extra but if you want to go another way to make the module
*if you add a version number to the folder
you could use my tool to dragNdrop the folder on the script and auto make the slack.desc and package :D

call this folder2tgz and make it executable

*you would need to edit my signature out of the package name and slack.desc
-2_PORT you could edit to -1_BAN maybe as an example only and -i486 to -x86_64

Code: Select all


# Joe Arose aka..big_bass
# dragNdrop a *tar.gz ,*tgz , or whatever it gets cut off anyway 
# make a blank slack-desc
# it opens in leafpad to add info 
# make a new file with time stamp 

# strip off the path 
basename "$@" >/root/nameofpackage

mkdir -p  "$@"/install

# filter the name by removing the version numbers 
# since this is a drag  N drop you may need to edit the field cut

# this cuts off everything after the first  "-"   cut -f 1 -d '-'` 
# this cuts off everything after the second "-"   cut -f 1,2 -d '-'` 

PKGNAME=`grep '-' /root/nameofpackage| cut -f 1 -d '-'` 

# clean up old files 
rm /root/nameofpackage

CHAR=`echo "$PKGNAME" | wc -c | sed s/^\ *//`
echo $CHAR

CHAR=`echo "$PKGNAME" | wc -c | sed s/^\ *//`
cat << COMMENT > /root/slack-desc
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|' on
# the right side marks the last column you can put a character in.  You must make
# exactly 11 lines for the formatting to be correct.  It's also customary to
# leave one space after the ':'.

while [ $COUNTER -lt $CHAR ]; do
    echo -n " " >> /root/slack-desc
    COUNTER=`expr $COUNTER + 1`
echo "|-----handy-ruler------------------------------------------------------|" >>/root/slack-desc
$PKGNAME: Package created for Porteus by bigbass

leafpad /root/slack-desc

cp /root/slack-desc "$@"/install

#-----------build package part---------

#Joe Arose aka..big_bass 
#folder to slackware tgz 

# check if file was selected
if [ "`basename "$1" `" = "" ] > /dev/null 2>/dev/null
 echo "This is a drag N drop only."
 echo "Please drag N drop a folder on this script ."
 sleep 10 #some time to read
 exit -1

#what if no file is selected?
if [$1 = ]; then
                  echo "no files given"
                  sleep 5
              exit 0

cd   "$1"
makepkg -l y -c n /tmp/`basename "$1"`"-i486-2_PORT.tgz"
 Xdialog --title "Complete" \
        	--infobox "\nConversion to /tmp/`basename "$1"`"-i486-2_PORT.tgz" has finished.\n" 0 0 8000
mv  /tmp/`basename "$1"`"-i486-2_PORT.tgz" .

User avatar
Site Admin
Site Admin
Posts: 4547
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE

Re: xzm recovery?

Post#4 by fanthom » 21 Mar 2012, 22:00


maybe only a part of xzm archive is corrupted - please try to mount it on a loop device:

Code: Select all

mloop path_to.xzm
and check if you get anything in /mnt/loop folder.
if it's empty then you wont be able to recover anything i'm afraid.
Please add [Solved] to your thread title if the solution was found.

User avatar
Site Admin
Site Admin
Posts: 5436
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil

Re: xzm recovery?

Post#5 by brokenman » 22 Mar 2012, 02:11

From console type unsquashfs --help

Look for the -check-data and -recover options. It is a long shot ... but better than a poke in the eye with a hot stick.
How do i become super user?
Wear your underpants on the outside and put on a cape.

Post Reply