Page 1 of 1

Easy iso mount?

Posted: Sat Oct 28, 2023 9:20 pm
by Metaphysik
Is there a program to right-click on an iso file to mount it as a virtual CD, similar to Windows on Linux? So nothing with console, mount etc? Unfortunately I have not found anything yet.

Re: Easy iso mount?

Posted: Sat Oct 28, 2023 9:30 pm
by fehlix
Metaphysik wrote: Sat Oct 28, 2023 9:20 pm Is there a program to right-click on an iso file to mount it as a virtual CD, similar to Windows on Linux? So nothing with console, mount etc? Unfortunately I have not found anything yet.
The package gnome-disk-utility provides such a right-click function.

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 12:12 am
by Adrian
I prefer the console iso-mount...

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 3:18 am
by operadude
Adrian wrote: Sun Oct 29, 2023 12:12 am I prefer the console iso-mount...
I would like to try "iso-mount", but I can't find it with:

Code: Select all

sudo apt-get install iso-mount
This is what I get:

Code: Select all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package iso-mount
I also tried "aptitude", and here's what I got:

Code: Select all

$ sudo aptitude install iso-mount
Couldn't find any package whose name or description matched "iso-mount"
Unable to apply some actions, aborting
Maybe it goes by a different name?

:confused:

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 9:11 am
by Adrian
Sorry, my fault, it's "isomount", it also has the counterpart isoumount. You need to use sudo, for isomount you give the ISO file name as argument, for the isoumount you just run it without arguments and it umounts any ISO you might have mounted.

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 10:41 am
by Gabriel_M
AcetoneISO is a feature-rich and complete software application to manage CD/DVD images.
AcetoneISO will let You mount typical proprietary images formats of the Windows world such as ISO BIN NRG MDF IMG and do plenty of other things.

http://ftp.de.debian.org/debian/pool/ma ... _amd64.deb

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 11:00 am
by fan_of_LTS
I am currently in MX21. In Thunar, I selected Edit then Configure custom actions...

From somewhere on the Internet I found that using the command mkdir %f.mount & fuseiso %f %f.mount and Appearance Conditions *.iso with Other files checked gives me a right click option in Thunar to mount the ISO. After browsing the iso and doing your thing you can dismount with Thunar.

I think there was previous discussion on the forum about this but I have too much to catch up on today to look now. Hope this helps you.

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 9:36 pm
by m_pav
@fan_of_LTS That works for mounting but on umount, the temporary mount point made from the name of the ISO in the same dir as the ISO is not removed, so it needs a follow up removal of the empty folders.

Compared to the command @Adrian gave, the isomount mounts the ISO at /mnt/iso and the isoumount also doesn't remove the folders it created, but I would hasten to say it is not at all a bad thing because /mnt/iso can be recycled the next time the isomount tool is used. One area where isomount is superior is when it mounts one of our own Live ISO's, the squashfs file that contains the full build as it will be on the disk when installed to /mnt/iso/sq1/ so we get to peruse the contents of the compressed filesystem contained within the Live ISO image.

isoumount like the Thunar Context Menu command does not remove the new directories, but they can be recycled for the next time an ISO is mounted.

both are good and have their benefits, just gotta keep in mind the cleanup ;)

Re: Easy iso mount?

Posted: Sun Oct 29, 2023 11:30 pm
by BitJam
m_pav wrote: Sun Oct 29, 2023 9:36 pmCompared to the command @Adrian gave, the isomount mounts the ISO at /mnt/iso and the isoumount also doesn't remove the folders it created, but I would hasten to say it is not at all a bad thing because /mnt/iso can be recycled the next time the isomount tool is used. One area where isomount is superior is when it mounts one of our own Live ISO's, the squashfs file that contains the full build as it will be on the disk when installed to /mnt/iso/sq1/ so we get to peruse the contents of the compressed filesystem contained within the Live ISO image.

isoumount like the Thunar Context Menu command does not remove the new directories, but they can be recycled for the next time an ISO is mounted.

both are good and have their benefits, just gotta keep in mind the cleanup ;)
The isomount program is supposed to remove subdirectories under /mnt/iso/ when their contents are unmounted. If this is not happening (and none of the subdirectories under the mount point are in use) then this is a bug that crept in, perhaps due to changes in the system. Running isoumount again might be a temporary work-around. Every successful umount is followed by an rmdir but the umount command can be a little weird, perhaps returning before the umount is complete. One band-aid might be to add a polling loop with a 10 ms delay that waits up to one second before concluding the file system was not unmounted.

The /mnt/iso/ directory is mounted as tmpfs so all of its subdirectories should disappear automatically when the system shuts down.

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 3:24 am
by operadude
Adrian wrote: Sun Oct 29, 2023 9:11 am Sorry, my fault, it's "isomount", it also has the counterpart isoumount. You need to use sudo, for isomount you give the ISO file name as argument, for the isoumount you just run it without arguments and it umounts any ISO you might have mounted.
Thanks!

Yeah,

Code: Select all

man isomount
produces the manual information, which tells me that it's already installed on my system.

Will give it a go!

And thanks to everyone else for the feedback/comments.

As per usual, always learning :happy:

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 7:48 am
by operadude
Adrian wrote: Sun Oct 29, 2023 9:11 am Sorry, my fault, it's "isomount", it also has the counterpart isoumount. You need to use sudo, for isomount you give the ISO file name as argument, for the isoumount you just run it without arguments and it umounts any ISO you might have mounted.
Tried both "isomount" and "isoumount", which worked perfectly fine.

Just 2 questions:

1. I'm assuming that there's nothing wrong with the following when I run "isoumount" (unmounting) without "sudo": looks like "df" is trying to run, but apparently can't (without "sudo")?

Code: Select all

$ isoumount
df: /run/user/1000/doc: Operation not permitted
isoumount: Unmounted /mnt/iso/iso2
2. Is this a normal situation after unmounting?

Code: Select all

tmpfs on /mnt/iso type tmpfs (rw,relatime,size=1024k,inode64)
Sounds/Looks like what @BitJam said earlier:
The /mnt/iso/ directory is mounted as tmpfs so all of its subdirectories should disappear automatically when the system shuts down.
Here's a closer look at what remains in my "/mnt/iso" directory after using "isoumount".

Code: Select all

opera-dude@GA-H270-HD3:/mnt/iso
$ ls -al
total 4
drwxrwxrwt  2 root root   40 Oct 30 13:35 .
drwxr-xr-x 15 root root 4096 Oct 30 13:34 ..
All in all, looks good!

Anybody...Just let me know if anything looks wrong!

:crossfingers:

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 8:27 am
by Adrian
You need to run it with sudo. Also listen to BitJam since he wrote the nice tool :)

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 9:47 am
by operadude
Adrian wrote: Mon Oct 30, 2023 8:27 am You need to run it with sudo. Also listen to BitJam since he wrote the nice tool :)
Thanks.

When I ran it with "sudo", there was no error report.

Yeah, and according to @BitJam , when running the unmount feature (isoumount), it cleaned-up the tmpfs on /mnt/iso.

We're in business!

:happy:

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 3:09 pm
by m_pav
operadude wrote: Mon Oct 30, 2023 3:24 am

Code: Select all

man isomount
produces the manual information, which tells me that it's already installed on my system.
@operadude
Just a FYI, the appropriate commands to see if a package is installed or available are;

Code: Select all

$ which isomount
/usr/local/bin/isomount
The which command returns the path of the package name if found, or returns to the terminal prompt without producing anything if the package is not found.

Code: Select all

$ apt policy isomount
isomount:
  Installed: 0.1.5mx19+1
  Candidate: 0.1.5mx19+1
  Version table:
 *** 0.1.5mx19+1 500
        500 http://la.mxrepo.com/mx/repo bookworm/main amd64 Packages
        500 http://la.mxrepo.com/mx/repo bookworm/main i386 Packages
        100 /var/lib/dpkg/status
The apt policy command produces the information contained about the package from the apt database, including the version number if installed, or (none) if it's not installed.

Re: Easy iso mount?

Posted: Mon Oct 30, 2023 3:11 pm
by Adrian
Frankly, I'm not a fan of /usr/local/bin location for this binary... binaries from packages that come from repo should probably be in the more standard /usr/bin/ location

Re: Easy iso mount?

Posted: Tue Oct 31, 2023 4:25 am
by operadude
m_pav wrote: Mon Oct 30, 2023 3:09 pm
operadude wrote: Mon Oct 30, 2023 3:24 am

Code: Select all

man isomount
produces the manual information, which tells me that it's already installed on my system.
@operadude
Just a FYI, the appropriate commands to see if a package is installed or available are;

Code: Select all

$ which isomount
/usr/local/bin/isomount
The which command returns the path of the package name if found, or returns to the terminal prompt without producing anything if the package is not found.

Code: Select all

$ apt policy isomount
isomount:
  Installed: 0.1.5mx19+1
  Candidate: 0.1.5mx19+1
  Version table:
 *** 0.1.5mx19+1 500
        500 http://la.mxrepo.com/mx/repo bookworm/main amd64 Packages
        500 http://la.mxrepo.com/mx/repo bookworm/main i386 Packages
        100 /var/lib/dpkg/status
The apt policy command produces the information contained about the package from the apt database, including the version number if installed, or (none) if it's not installed.
@m_pav :

Thanks for the reminders!

I do know about "which" and "apt policy", but I was just looking for some info on "isomount", and assumed it was installed, so went with "man" in this case.

I always welcome Best Practices :exclamation:

Re: Easy iso mount?

Posted: Tue Oct 31, 2023 4:27 am
by operadude
Adrian wrote: Mon Oct 30, 2023 3:11 pm Frankly, I'm not a fan of /usr/local/bin location for this binary... binaries from packages that come from repo should probably be in the more standard /usr/bin/ location
Is there any way for the little guy, like me, to do something about this, or is this an issue for the developers and/or packagers/maintainers?

Just curious.... :cool:

Re: Easy iso mount?

Posted: Tue Oct 31, 2023 8:05 am
by Adrian
This is not an issue that need to worry about, it's like "I like color yellow, developer used green"

Re: Easy iso mount?

Posted: Tue Oct 31, 2023 8:32 am
by operadude
@Adrian :

Very well, then.

I shall continue with my very important Halloween activities :exclamation:

Apropos:

:anispider2: :anispider: :hell: :pissed: :devil: :evil: :veryhot:

Sorry, couldn't resist!

Only time of year I would every use these emojis!

:eek: