How to mount an iso?

New to Puppy and have questions? Start here

Moderator: Forum moderators

Post Reply
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

How to mount an iso?

Post by ljlj »

mount :could not find any free loop device

uextract and filemnt can not open iso file

williams2
Posts: 1030
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 294 times

Re: mount iso

Post 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.

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: mount iso

Post by ljlj »

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

Attachments
screen2.tar.xz
(327.11 KiB) Downloaded 32 times
screen1.tar.xz
(355.19 KiB) Downloaded 22 times
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

mount iso-debiandog

Post by ljlj »

mount iso-debiandog 32 bit jessie

Attachments
screen3.tar.xz
(429.08 KiB) Downloaded 29 times
User avatar
Phoenix
Posts: 339
Joined: Fri Feb 12, 2021 2:03 am
Location: Canada
Has thanked: 4 times
Been thanked: 48 times

Re: mount iso

Post 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)

IRC: firepup | Time to hack Puppy!

User avatar
Flash
Moderator
Posts: 922
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 47 times
Been thanked: 112 times

Re: How to mount an iso?

Post by Flash »

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

Chaos coordinator :?
williams2
Posts: 1030
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 294 times

Re: How to mount an iso?

Post 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.

User avatar
fredx181
Posts: 2705
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 302 times
Been thanked: 1066 times
Contact:

Re: How to mount an iso?

Post 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 894 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.

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: How to mount an iso?

Post 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

User avatar
bigpup
Moderator
Posts: 6516
Joined: Tue Jul 14, 2020 11:19 pm
Location: Earth, South Eastern U.S.
Has thanked: 790 times
Been thanked: 1353 times

Re: How to mount an iso?

Post 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!

Forum Global Moderator
The things you do not tell us, are usually the clue to fixing the problem.
When I was a kid, I wanted to be older.
This is not what I expected :o

User avatar
fredx181
Posts: 2705
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 302 times
Been thanked: 1066 times
Contact:

Re: How to mount an iso? (Solved)

Post 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

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: How to mount an iso?

Post 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

User avatar
fredx181
Posts: 2705
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 302 times
Been thanked: 1066 times
Contact:

Re: How to mount an iso?

Post 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 1040 times

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

ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: How to mount an iso?

Post by ljlj »

fred

thanks again

User avatar
Flash
Moderator
Posts: 922
Joined: Tue Dec 03, 2019 3:13 pm
Location: Arizona, U.S.
Has thanked: 47 times
Been thanked: 112 times

Re: How to mount an iso?

Post by Flash »

@ljlj, is your problem solved?

Chaos coordinator :?
ljlj
Posts: 105
Joined: Wed Feb 03, 2021 10:15 am
Been thanked: 7 times

Re: How to mount an iso?

Post by ljlj »

yes thanks to fred
it is solved
flash thanks

Post Reply

Return to “Beginners Help”