@GuilloteTesla My scripts doesn't running another scripts. Each one user must launch himself.
And until now it works fine (fine on Mint 21.
0 and older), which means user eg. generating keys, then mounting HDD, exploring mounted partitions (UFS2 partition needed root permission to view data below first recurrency level), and then umounting script. Running scripts just by double clicking on a *.sh file from file manager level (Nemo).
But now (Mint 21.
1), after mounting, user getting noexec for some reason on whole /home and can browse data on UFS2 also as ordinary user. At least this is how it behave in live environment. I'm using installed 21.0 on my PC and I now I'm afraid to perform upgrade after live 21.1 tests because of this.
- - -
@Iridule
I have both modules compiled (I did have to rename bswap16, to bswap16-ecb.ko to get script to recognize it)
I'm using full application name because earlier was another bswaps: dmbswap16 - original kernel module written by legendary Graf Chocolo (no longer compile since kernel 4.x), bswap16 fork which was userland app, merged with nbdclient by Sguerrini97 (have various of issues), and now it is bswap16-ecb, a kernel module written by Decaf Code. So I stick to full name in filename, but in memory can be invoke just by "bswap16" alone (have few aliases).
I have another error related to my kernel configuration I'm sure my fault.
I'm working with generic kernels, default in live environment for a reason to not force user to making any updates and without need of any internet connection (well, it is now mandatory in case of ufs.ko but user still can use default one from kernel so it is not big deal anyway I think). You are using hand compiled whole kernel, from new line 6.x, so You are on an uncharted land.
Note on UFS ...for me the only way I could get it to work was
I'm doing everything the same except that editing config in linux-headers, because it is where ufs module src reside and from where is compiled. So I copying (full) src from "~/ps3/apps/source/ufs/" to there where are is not full by default (and it is ok because ufs code wasn't touched for years and probably will never be until some kernel changes be needed affected current code).
So, here it is whole magic ("CONFIG_UFS_FS=m" is already written there, so I only set writing):
Code:
sudo sed -i 's/# CONFIG_UFS_FS_WRITE is not set/CONFIG_UFS_FS_WRITE=y/' /usr/src/linux-headers-$(uname -r)/.config
But... probably config isn't read from there because I still have only read only capabilities. I gave up with this, consuming a lot of my time while I have some more interesting to me tasks. Maybe I will go back to this one day, or maybe someone smart will figure out this. BTW: I want avoid making user choices in makeconfig and just reuse prepared earlier by eg. Ubuntu team config, but just with this ufs changes.
Though I had to use your old un-mounter script the new one wouldn't work.
The only change between old and new Umounter script is replacing "~/" by "${HOME}/".
Didn't want have the modules unloaded every time I unmounted so I commented them to prevent unloading
I unloading them because want clean state, especially that Mounter script will try load them again (and this is another reason why I will move kernel modules stuff to separate script in future).
And my problem with compiling the modules was fixed after using your script (sorry forgot about it) rather than trying to compile from source directory
Yeah, that's where we are, in PS3 HDD Decrypter Helper toolkit thread, so I'm assuming user will using it.

You cannot compile ko from any dir without some needed kernel src stuff from above levels.