Welcome!
Important information
-- Spectre and Meltdown vulnerabilities
-- Change in MX sources

News
-- MX Linux on social media: here
-- Mepis support still here

Current releases
-- MX-17.1 Final release info here
-- antiX-17 release info here

New users
-- Please read this first, and don't forget to add system and hardware information to posts!
-- Here are the Forum Rules

New isomount suite of tools ready (?) for early beta testing

Post Reply
Message
Author
User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2472
Joined: Sat Aug 22, 2009 11:36 pm

New isomount suite of tools ready (?) for early beta testing

#1 Post by BitJam » Sun Mar 25, 2018 1:51 pm

This is a suite of command line tools that make it very easy to mount and unmount iso files and squashfs files.

They are not packaged or translated yet. You can get them from my isomount GitHub repo. This is early beta so there will be blood bugs. I had been using a more primitive version of these tools (only 36 lines) for many years. They were great and made my life easier. These are much better.

If you copy or clone the repo then you can install to your system with:

Code: Select all

sudo make install ROOT=
TLDR:
Mount an iso file (and its linuxfs file if it is antiX/MX):

Code: Select all

isomount /path/to/iso-file.iso
Unmount the most recently mounted iso file (and its linuxfs file if needed):

Code: Select all

isoumount
Unmount all the files we have mounted:

Code: Select all

isoumount all
Show what files are mounted:

Code: Select all

show-isoumount
Here are some screen shots:
You do not have the required permissions to view the files attached to this post.
Will I cry when it's all over?
When I die will I see Heaven?

Vincent17
Forum Novice
Forum  Novice
Posts: 44
Joined: Tue Feb 20, 2018 1:07 am

#2 Post by Vincent17 » Sun Mar 25, 2018 9:23 pm

Thanks for going over the edge and publishing the isomount script. Beta or not, it works great so far. I especially appreciate the printout of mounts. As a PuppyLinux user, I have a large number of squashfs files called something.sfs, so sqmount is very handy. Your answer to my question about snapshots opened up the world of loop mounts for me so I actually understand the script :)

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 2472
Joined: Sat Aug 22, 2009 11:36 pm

Re: New isomount suite of tools ready (?) for early beta testing

#3 Post by BitJam » Sun Mar 25, 2018 10:38 pm

Great! I'm glad it worked for you. If you spot any bugs or misspelling or things you don't like, PLMK. BTW: you can control the output a little with -q and -Q. I think -q only show the mountpoint table while -Q shows everything but the table.

I've started working on a "dfh" command which I think is a much more human readable form of "df -h". I will upload it soon but for now, I will show you the output. I also attached a tarball of the dfh command. It's not ready for beta but the basic functionality seems to be working. I'm planning to simplify isomount a little with some of what I'm doing in dfh.

The big things I do are add colors and show the filename of what was mounted if it is a loop device. I think df used to do this but for some reason the changed to showing the loop device which is much less useful than to filename. There is also what I consider a weird bug in df. If the same file is mounted to more than one location, only the first one is reported unless you use -a. So I have to exclude a bunch of filesystem types and I imagine I will need to add more to the list. I think I wasted a couple of days due to this unexpected bug.
You do not have the required permissions to view the files attached to this post.
Will I cry when it's all over?
When I die will I see Heaven?

User avatar
Adrian
Forum Veteran
Forum Veteran
Posts: 8932
Joined: Wed Jul 12, 2006 1:42 am

Re: New isomount suite of tools ready (?) for early beta testing

#4 Post by Adrian » Mon Mar 26, 2018 10:07 am

Minor spelling issue: in man isomount, isoumount is misspelled 4 times:
isuomount

Post Reply

Return to “General”