Hello, is it possible to change Absolute Patch to the mounted file system. Currently the path is "/srv/dev-disk-by-uuid-8584302e-d6d0-4d75-999f-65000cb8a857" can I change the name to /srv/hdd1? Maybe it's enough to create a symlink (from a plugin) and install it under Samba and FTP? What I would care most about is simply changing the path to /srv/hdd1. Do any of you have an idea?
Change HDD absolute patch OMV
-
-
It's not possible. Why do you want to do it?
-
It's not possible. Why do you want to do it?
For python scripts executed by php
-
-
And symlinks don't work in a python script?
-
And symlinks don't work in a python script?
I haven't checked it, I'd rather just change the long name in /srv/
-
I haven't checked it, I'd rather just change the long name in /srv/
Just use the symlink plugin and set a symlink from /srv/sdev-disk-by-uuid-xxxx-yyyyy-zzzzz/<FOLDER_YOU HAVE> to /<FOLDER_YOU_HAVE>
-
-
djpd66 I would do what soma says, here is the documentation for the symlink plugin. https://wiki.omv-extras.org/do…mv6:omv6_plugins:symlinks
I'm not sure, but I think symlinks should work in python, try it.
-
I'm not sure, but I think symlinks should work in python, try it.
I only use the symlinks on the YMLs.
But there are python scripts running on the containers I use so, I assume that it works.
The symlink is "stamped" on the FS (with lack of better definition) so it's seen everywhere.
As an example for the SS I posted above, running:
Code
Alles anzeigenpi@panela:~ $ ls -al /srv/dev-disk-by-uuid-a4f3fa5c-54a4-4cf5-aacf-0a301d5a189f/appdata total 20 drwxr-xr-x 1 root root 272 May 16 2023 . drwxr-xr-x 1 root root 44 Dec 26 2021 .. drwxr-xr-x 1 root users 80 Feb 23 2023 .snapshots drwxr-xr-x 1 root root 28 Apr 11 2022 adguard drwxr-xr-x 1 root root 30 May 16 2023 deluge drwxr-xr-x 1 root root 22 Apr 28 2023 duplicati drwxr-xr-x 1 root root 12 Dec 24 2022 heimdall drwxr-xr-x 1 root root 12 Feb 28 2023 jellyfin drwxr-xr-x 1 root root 12 Apr 5 2021 mariadb drwxr-xr-x 1 root root 12 Apr 5 2021 nextcloud drwxr-xr-x 1 root root 6 Jan 3 2023 pihole drwxr-xr-x 1 root root 12 Dec 15 2022 qbit-new_ver drwxr-xr-x 1 root root 8 Apr 5 2021 redis drwxr-xr-x 1 root root 28 Jan 18 2023 scrutiny drwxr-xr-x 1 root root 12 Apr 5 2021 swag drwxr-xr-x 1 root root 30 May 16 2023 transmission -rw-r--r-- 1 pi users 241 Dec 15 2022 wg0.conf drwxr-xr-x 1 root root 12 Apr 13 2022 wgclient drwxr-xr-x 1 root root 12 Apr 11 2022 wireguard
Is exactly the same as:
Code
Alles anzeigenpi@panela:~ $ ls -al /appdata/ total 20 drwxr-xr-x 1 root root 272 May 16 2023 . drwxr-xr-x 1 root root 44 Dec 26 2021 .. drwxr-xr-x 1 root users 80 Feb 23 2023 .snapshots drwxr-xr-x 1 root root 28 Apr 11 2022 adguard drwxr-xr-x 1 root root 30 May 16 2023 deluge drwxr-xr-x 1 root root 22 Apr 28 2023 duplicati drwxr-xr-x 1 root root 12 Dec 24 2022 heimdall drwxr-xr-x 1 root root 12 Feb 28 2023 jellyfin drwxr-xr-x 1 root root 12 Apr 5 2021 mariadb drwxr-xr-x 1 root root 12 Apr 5 2021 nextcloud drwxr-xr-x 1 root root 6 Jan 3 2023 pihole drwxr-xr-x 1 root root 12 Dec 15 2022 qbit-new_ver drwxr-xr-x 1 root root 8 Apr 5 2021 redis drwxr-xr-x 1 root root 28 Jan 18 2023 scrutiny drwxr-xr-x 1 root root 12 Apr 5 2021 swag drwxr-xr-x 1 root root 30 May 16 2023 transmission -rw-r--r-- 1 pi users 241 Dec 15 2022 wg0.conf drwxr-xr-x 1 root root 12 Apr 13 2022 wgclient drwxr-xr-x 1 root root 12 Apr 11 2022 wireguard
Just consider that when using the symlink on scripts/yml/sh/etc, you need to add a trailing slash / to the name, otherwise:
-
I use this solution ( be careful you can break OMV if you change a wrong parameter)
nano /etc/openmediavault/config.xml
find section mntent
change <dir> /srv/.... (your path) <dir>
save
omv-salt deploy run fstab
reboot
-
-
use this solution ( be careful you can break OMV if you change a wrong parameter)
Please, don't.
Why would you change the config.xml if the GUI does everything?
All it takes is to leave a bad space or character to block OMV.
-
on my side,
I have several mounts and scripts, so it was easier to differentiate between HDD, SSD and NVME groups.
but I understand that the danger of that. I just wanted to help. but I can understand that it can bring more problems. do you want me to withdraw my message
-
do you want me to withdraw my message
No.
Every post has a knowledge importance.
Be it what should OR what shouldn't be done.
-
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!