Page 1 of 1

How to mount an iso?

Posted: Thu Jul 21, 2022 6:29 pm
by ljlj

mount :could not find any free loop device

uextract and filemnt can not open iso file


Re: mount iso

Posted: Thu Jul 21, 2022 8:55 pm
by williams2

How many loop devices do you have? I have 16.
ls -l /dev/loop*

What does losetup show?
What does mount show?

.sfs files are mounted using /dev/loop devices.
If you can, unmount some of your sfs files, which will free up some loop devices.


Re: mount iso

Posted: Thu Jul 21, 2022 10:14 pm
by ljlj

thanks williams2
i can not post images, only zip files
please open it
regards


mount iso-debiandog

Posted: Thu Jul 21, 2022 10:18 pm
by ljlj

mount iso-debiandog 32 bit jessie


Re: mount iso

Posted: Fri Jul 22, 2022 2:09 am
by Phoenix

You can post terminal output via selecting and using ALT+Insert key. (If you don't have those keys use xvkbd in the terminal or find it under Utility)


Re: How to mount an iso?

Posted: Fri Jul 22, 2022 4:52 am
by Flash

ljlj, what OS are you using? If it's a Puppy, which one and where did you find it?


Re: How to mount an iso?

Posted: Sat Jul 23, 2022 6:02 pm
by williams2

You seem to have 48 loop devices. I'm not sure that they are all working properly.

You have a lot of sfs file mounted, simultaneously.
I'm not sure if there is a limit to how many loop devices you can set up, or how many sfs files you can mount at a time.
I know the number of files that can be open needs to be increased before starting an Apache web server.

Mounting a lot of sys files at once can theoretically cause conflicts, in that files closer to the top of the file system stack will be seen and used as opposed to files near the bottom of the stack.

If you want an application to be instantly available, it would probably be better to install it or unmount the sfs file after you are finished with it.


Re: How to mount an iso?

Posted: Sat Jul 23, 2022 8:13 pm
by fredx181
Flash wrote:

ljlj, what OS are you using? If it's a Puppy, which one and where did you find it?

It's older Debiandog (Jessie)

@ljlj
It seems that the read-write loop devices stops at 23 (brw-rw----) so that can explain your issue.

2022-07-23_21-36-57.png
2022-07-23_21-36-57.png (102.66 KiB) Viewed 955 times

Not sure if this works for you, I can not test on Jessie, but try this from terminal to make 255 rw loop devices in /dev:

Code: Select all

x=`grep -oE 'loop[0-9]+$' /proc/partitions  | tail -n1 | tr -d [:alpha:]`
let y=x+255
while [ $x -le $y ]; do [ -b /dev/loop$y ] && break || mknod /dev/loop$y b 7 $y; chmod g+rw-x,o-rwx /dev/loop$y; let y=y-1; done

(EDIT: copied from the linuxrc init script in initrd1.xz, could be more simple code for this purpose, I think)
And check if succeeded with ls -l /dev/loop* for brw-rw---- if it's became that after loop23 .
EDIT: Probably contents of /dev won't survive a reboot (not saved in Debiandog) so need to run above again then to have more rw loop devices.


Re: How to mount an iso?

Posted: Sat Jul 23, 2022 9:35 pm
by ljlj

fred thanks
your script works perfectly
with single click i can open
an iso file and squashfs
but after quick remaster
again i can open nothing
how i can make that it
works after quick remaster
thanks


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 12:33 am
by bigpup

A remaster of what??????

We cannot tell you information about a specific version of Puppy if you do not tell us specifically which one :roll: :thumbdown:

What you are changing to make a remaster may be a clue!


Re: How to mount an iso? (Solved)

Posted: Sun Jul 24, 2022 6:31 am
by fredx181
ljlj wrote: Sat Jul 23, 2022 9:35 pm

fred thanks
your script works perfectly
with single click i can open
an iso file and squashfs
but after quick remaster
again i can open nothing
how i can make that it
works after quick remaster
thanks

Yes, the remastering doesn't include contents of /dev, two things possible (untested)
- Run the script for creating loop devices manually at every boot (or when desired)
- Make the script executable and put it in /root/Startup, then remaster, so in the actual remastered system it creates the loop devices automatically everytime at startup.
EDIT: in fact this should be changed in the initrd, later Debiandogs (e.g. Stretch) create 255 loops from the init script


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 8:50 am
by ljlj

fred thanks again

script is in startup folder
and it works after quick remaster

thunar custom actions
please, do you have a script
to make file executable
as right click


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 10:46 am
by fredx181

Something like this ? (new Thunar custom action, no script needed, just fill in chmod +x %f):

2022-07-24_12-42-37.png
2022-07-24_12-42-37.png (77.18 KiB) Viewed 1104 times

Under "Appearance conditions" check "Other" and/or "Text" files, up to you.


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 11:51 am
by ljlj

fred

thanks again


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 7:21 pm
by Flash

@ljlj, is your problem solved?


Re: How to mount an iso?

Posted: Sun Jul 24, 2022 7:52 pm
by ljlj

yes thanks to fred
it is solved
flash thanks