Easy iso mount?
Posted: 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.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.
I would like to try "iso-mount", but I can't find it with:
Code: Select all
sudo apt-get install iso-mount
Code: Select all
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package iso-mount
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
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.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![]()
Thanks!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.
Code: Select all
man isomount
Tried both "isomount" and "isoumount", which worked perfectly fine.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.
Code: Select all
$ isoumount
df: /run/user/1000/doc: Operation not permitted
isoumount: Unmounted /mnt/iso/iso2
Code: Select all
tmpfs on /mnt/iso type tmpfs (rw,relatime,size=1024k,inode64)
Here's a closer look at what remains in my "/mnt/iso" directory after using "isoumount".The /mnt/iso/ directory is mounted as tmpfs so all of its subdirectories should disappear automatically when the system shuts down.
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 ..
Thanks.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 :)
@operadudeoperadude wrote: Mon Oct 30, 2023 3:24 amproduces the manual information, which tells me that it's already installed on my system.Code: Select all
man isomount
Code: Select all
$ which isomount
/usr/local/bin/isomount
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
@m_pav :m_pav wrote: Mon Oct 30, 2023 3:09 pm@operadudeoperadude wrote: Mon Oct 30, 2023 3:24 amproduces the manual information, which tells me that it's already installed on my system.Code: Select all
man isomount
Just a FYI, the appropriate commands to see if a package is installed or available are;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
$ which isomount /usr/local/bin/isomount
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.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
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?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