Posts: 69
Ninho
Joined: 28 Oct 2016
#1
Hi ! While running an installed antiX - from the hard disk - can I either"explore" the compressed file system of the installation medium (CD) or otherwise extract a designated file from the archive, in order to restore the original version ?
Posts: 69
Ninho
Joined: 28 Oct 2016
#2
Never mind, I searched and found :=)
Here's, for the record, how I mounted the linuxfs (squashfs) :

Code: Select all

> sudo mkdir /mnt/ax
> sudo mount /media/sr0/antiX/linuxfs /mnt/ax  -t squashfs -o loop
Allows to browse the whole"squashed" antiX archive.

Is there an alternative way, esp. if one only wanted to get one or a few files from the archive, specifying the path(s) ?
Posts: 604
thriftee
Joined: 27 Feb 2009
#3
I'll just add to your post in case someone is trying to look at the files in the persistence save filesystems, too as long as I have them in my buffer:

Code: Select all

#show current mounting before inserting old USB boot flashdrive
mount

#mount filesystems from old persist-all system
cd /mnt
mkdir oldrootfs
mount /media/antiXlive/antiX/rootfs /mnt/oldrootfs -o loop
mkdir oldhomefs
mount /media/antiXlive/antiX/homefs /mnt/oldhomefs -o loop
mkdir oldlinuxfs
mount /media/antiXlive/antiX/linuxfs /mnt/oldlinuxfs -t squashfs -o loop

# when done unmount them all
umount /media/antiXlive/antiX/homefs
umount /media/antiXlive/antiX/rootfs
umount /media/antiXlive/antiX/linuxfs

#check current mounting
mount
Posts: 1,445
skidoo
Joined: 09 Feb 2012
#4
I like this alternative command (prettier output) to display mounts:

findmnt
or
findmnt -uU -o TARGET,SOURCE,FSTYPE,USED,AVAIL,OPTIONS