Code: Select all
#!/bin/bash
# https://forum.porteus.org/viewtopic.php?p=53193#p53193
iso=http://www6.frugalware.org/mirrors/linux/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
if [ -d /mnt/httpfs2 ]; then
umount /mnt/httpfs2
umount /mnt/xzm
rm -rf /mnt/{httpfs2,xzm} > /dev/null 2>&1 &
fi
mkdir /mnt/{httpfs2,xzm}
httpfs2 $iso /mnt/httpfs2
mount /mnt/httpfs2/003-lxde.xzm /mnt/xzm
echo "...loading"
echo " " && echo "ls /mnt/xzm"
ls /mnt/xzm
#d
Code: Select all
umount: /mnt/httpfs2: target is busy.
mkdir: cannot create directory ‘/mnt/httpfs2’: File exists
mkdir: cannot create directory ‘/mnt/xzm’: File exists
file name: 003-lxde.xzm
host name: www6.frugalware.org
port number: 80
protocol: http
request path: /mirrors/linux/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
auth data: (null)
file size: 15306752
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
mount: /mnt/xzm: mount point does not exist.
...loading
ls /mnt/xzm
ls: cannot access '/mnt/xzm': No such file or directory
Added in 7 hours 54 minutes 2 seconds:
Replaced
with
Code: Select all
fusermount -uz /mnt/httpfs2
fusermount -uz /mnt/xzm
Code: Select all
fusermount: failed to unmount /mnt/xzm: No such file or directory
file name: 003-lxde.xzm
host name: www6.frugalware.org
port number: 80
protocol: http
request path: /mirrors/linux/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
auth data: (null)
file size: 15306752
...loading
ls /mnt/xzm
etc home opt usr var
Added in 15 hours 46 minutes 50 seconds:
And so with this:
Code: Select all
#!/bin/bash
# https://forum.porteus.org/viewtopic.php?p=53193#p53193
#iso=http://www6.frugalware.org/mirrors/linux/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
iso=http://www6.frugalware.org/mirrors/linux/porteus/x86_64/Porteus-v5.0/modules/003-lxqt.xzm
#set -x;
if [ -d /mnt/httpfs2 ]; then
fusermount -uz /mnt/xzm
fusermount -uz /mnt/httpfs2
fi
if [ ! -d /mnt/httpfs2 ]; then
mkdir /mnt/{httpfs2,xzm}
fi
httpfs2 $iso /mnt/httpfs2
echo "...loading"
mount /mnt/httpfs2/003-lxde.xzm /mnt/xzm
echo " " && echo "ls /mnt/xzm"
ls /mnt/xzm
#df
Code: Select all
file name: 003-lxqt.xzm
host name: www6.frugalware.org
port number: 80
protocol: http
request path: /mirrors/linux/porteus/x86_64/Porteus-v5.0/modules/003-lxqt.xzm
auth data: (null)
file size: 23228416
...loading
ntfs-3g: Failed to access volume '/mnt/httpfs2/003-lxde.xzm': No such file or directory
ntfs-3g 2021.8.22 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2021 Jean-Pierre Andre
Copyright (C) 2009-2020 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
Plugin path: /usr/lib64/ntfs-3g
News, support and information: http://tuxera.com
ls /mnt/xzm
Code: Select all
request path: /mirrors/linux/porteus/x86_64/Porteus-v5.0/modules/003-lxqt.xzm
Code: Select all
ntfs-3g: Failed to access volume '/mnt/httpfs2/003-lxde.xzm': No such file or directory
Rebooting is the only option that works.
Added in 1 day 22 hours 28 minutes 24 seconds:
Note:
and this:Ed_P wrote: ↑03 Jan 2023, 23:15#iso=http://www6.frugalware.org/mirrors/linu ... 3-lxde.xzm
iso=http://www6.frugalware.org/mirrors/linu ... 3-lxqt.xzm
Added in 1 day 17 hours 12 minutes 21 seconds:
So while httpfs2 works with Porteus files:
Code: Select all
#!/bin/bash
# https://forum.porteus.org/viewtopic.php?p=53193#p53193
# https://forum.porteus.org/viewtopic.php?p=72858#p72858
# https://forum.porteus.org/viewtopic.php?p=72863#p72863
# MUST be run as ROOT!
#iso=http://www6.frugalware.org/mirrors/linux/porteus/x86_64/Porteus-v3.2.2/modules/003-lxde.xzm
iso=http://www6.frugalware.org/mirrors/linux/porteus/x86_64/Porteus-v5.0/modules/003-lxqt.xzm
#set -x;
if [ -d /mnt/httpfs2 ]; then
fusermount -uz /mnt/xzm
fusermount -uz /mnt/httpfs2
rm -rf /mnt/{httpfs2,xzm} # > /dev/null 2>&1 &
fi
if [ ! -d /mnt/httpfs2 ]; then
mkdir /mnt/{httpfs2,xzm}
fi
httpfs2 $iso /mnt/httpfs2
echo "...loading"
mount /mnt/httpfs2/003-*.xzm /mnt/xzm
echo " " && echo "ls /mnt/httpfs2"
ls /mnt/httpfs2
echo " " && echo "ls /mnt/xzm"
ls /mnt/xzm
#df
read
Code: Select all
file name: ubuntu-22.10-desktop-amd64.iso
host name: mirrors.rit.edu
port number: 80
protocol: http
request path: /ubuntu-releases/22.10/ubuntu-22.10-desktop-amd64.iso
auth data: (null)
file size: 4071903232
...loading
ntfs-3g: Failed to access volume '/mnt/httpfs2/ubuntu-22.10-desktop-amd64.iso': Input/output error
ntfs-3g 2021.8.22 integrated FUSE 27 - Third Generation NTFS Driver
Configuration type 1, XATTRS are on, POSIX ACLS are off
Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2021 Jean-Pierre Andre
Copyright (C) 2009-2020 Erik Larsson
Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
Options: ro (read-only mount), windows_names, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).
Example: ntfs-3g /dev/sda1 /mnt/windows
Plugin path: /usr/lib64/ntfs-3g
News, support and information: http://tuxera.com
ls /mnt/httpfs2
ubuntu-22.10-desktop-amd64.iso
Code: Select all
ls /mnt/httpfs2
/bin/ls: cannot access '/mnt/httpfs2/ubuntu-22.10-desktop-amd64.iso': Input/output error
ubuntu-22.10-desktop-amd64.iso
I tried other mirrors with the same result.
Win some, loose some.