I'm using Porteus 3
I want to add files into "/opt" of 001-core.xzm
So I extracted the core.xzm from porteus's iso & I tried with:
Code: Select all
mount -o loop,rw 001-core.xzm /mnt

So, How can I mount it with write option?
Thanks.
Code: Select all
mount -o loop,rw 001-core.xzm /mnt
Code: Select all
mount -t aufs -o br=/mnt/sda8/writable=rw:/mnt/readonly=ro -o udba=reval none /tmp/aufs-work/
Code: Select all
modprobe aufs ## Just for fun
mkdir -p /tmp/mymodule/{one,two}
touch /tmp/mymodule/file0.txt
Code: Select all
mksquashfs /tmp/mymodule /tmp/readonly.xzm
rm -r /tmp/mymodule
Code: Select all
mkdir /mnt/readonly && mount -o loop /tmp/readonly.xzm /mnt/readonly
Code: Select all
ls /mnt/readonly
touch /mnt/readonly/this.txt
Code: Select all
mkdir /mnt/sda8/writable
Code: Select all
mkdir /tmp/aufs-work
Code: Select all
mount -t aufs -o br=/mnt/sda8/writable=rw:/mnt/readonly=ro -o udba=reval none /tmp/aufs-work/
Code: Select all
ls /tmp/aufs-work
Code: Select all
touch /tmp/aufs-work/file2.txt
ls /tmp/aufs-work
Code: Select all
touch /mnt/sda8/writable/lookmum-nohands.txt
ls /tmp/aufs-work
Code: Select all
root@porteus:~# mount -o loop 001-core.xzm MNT1/
root@porteus:~# df -h | grep MNT1
/dev/loop12 45M 45M 0 100% /root/MNT1
Code: Select all
root@porteus:~# mount -t aufs -o br=/root/writable/=rw:/root/MNT1=ro -o udba=reval none /root/aufs-work/
dmesg | tail showed:mount: wrong fs type, bad option, bad superblock on none,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount.<type> helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
I tried to find "aufs" using usm with no luck:[ 2640.624938] aufs test_add:263:mount[4255]: unsupported filesystem, /root/writable/ (aufs)
What to do now?root@porteus:~# usm -u slackware
root@porteus:~# usm -k aufs
Nothing found for: aufs
root@porteus:~# usm -k mount.aufs
Nothing found for: mount.aufs
Code: Select all
mloop /path/to/module.xzm
mkdir /tmp/newfolder
cp -a /mnt/loop/* /tmp/newfolder
## Make your changes in /tmp/newfolder
dir2xzm /tmp/newfolder /tmp/newmodule.xzm