how to modify OMV mount point and add shared folders?

    • OMV 3.x
    • Resolved

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • how to modify OMV mount point and add shared folders?

      Hello,

      I installed a new HDD (Data1, 8Tio formated in GPT) on OMV/Debian Jessy and when i mount Data1 on /media/$UUID or /media/Data1, OMV can't see the filesystem when i try create one shared folder.

      so, I understand since the 3.73, OMV mont hdd on /srv/dev-disk-by-label-* but it does not suit me because I use Gnome for many reasons.
      I had create a symlink from /srv/dev-disk-by-label-Data1 to /media/Data1 but I have encountered problems to manage file rights.

      1) Why OMV mounted HDD on /srv ? (security? incompatibility? other?)
      2) how to modify/revert the mount point on OMV?

      My conf:


      Display Spoiler

      ================================================================================
      = OS/Debian information
      ================================================================================
      Distributor ID: debian
      Description: Debian GNU/Linux 8 (jessie)
      Release: 8.9
      Codename: jessie


      ================================================================================
      = openmediavault information
      ================================================================================
      Release: 3.0.88
      Codename: Erasmus

      ================================================================================
      = System information
      ================================================================================
      Linux gontrand 4.9.0-0.bpo.3-amd64 #1 SMP Debian 4.9.30-2+deb9u2~bpo8+1 (2017-06-27) x86_64 GNU/Linux


      ================================================================================

      Gnome version: Version 3.14.1
      ================================================================================
      SSD system: sda
      RAID 5 : /dev/md/Data (4Tio)
      Single ext4: Data1 (8Tio)
      ================================================================================

      Data mounted on /media/$UUID: work!
      Data1 mounted on /srv/dev-disk-by-label-Data1 : problems. with rights (and others).
      Data1 mounted on /media/$UUID, /media/$USER/Data1 or /media/Data1 problems with OMV

      ================================================================================


    • I've found!!!

      I've edit /etc/fstab and /etc/openmediavault/config.xml:


      XML Source Code: config.xml

      1. <mntent>
      2. <uuid>9b24f2b6-7ad8-4110-8031-a73029b90cc3</uuid>
      3. <fsname>/media/f18e14dd-8374-4e51-88e1-a474ef29f9f0</fsname>
      4. <dir>/media/f18e14dd-8374-4e51-88e1-a474ef29f9f0</dir>
      5. <type>ext4</type>
      6. <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      7. <freq>0</freq>
      8. <passno>2</passno>
      9. <hidden>0</hidden>
      10. </mntent>


      Source Code

      1. /media/f5c17055-0c52-48dc-a99b-234a076152be/PXE /export/PXE none bind,nofail 0 0UUID=f18e14dd-8374-4e51-88e1-a474ef29f9f0 /media/f18e14dd-8374-4e51-88e1-a474ef29f9f0 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      i rebooted and voila!
      but...
      I have a ghost :-/



      source:OMV changing mountpoint

      The post was edited 1 time, last by rickey.mandraque: add souirce ().

    • rickey.mandraque wrote:

      so, I understand since the 3.73, OMV mont hdd on /srv/dev-disk-by-label-* but it does not suit me because I use Gnome for many reasons.
      This is a mistake, omv is a headless server not designed to run along a desktop environment. You will encounter problems.

      rickey.mandraque wrote:

      1) Why OMV mounted HDD on /srv ? (security? incompatibility? other?)
      is the current linux hierarchical order tldp.org/LDP/Linux-Filesystem-Hierarchy/html/index.html

      rickey.mandraque wrote:

      2) how to modify/revert the mount point on OMV?
      one way is edit config.xm like the article (very old. these days you should run omv-mkconf fstab not edit manually fstab) but for future operations an env variable here

      /etc/default/openmediavault

      set to

      OMV_MOUNT_DIR="/media" or whatever you want.
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • Thank you so much.

      subzero79 wrote:

      omv is a headless server not designed to run along a desktop environment.
      Yes, I know but I have not the choice :-/


      Anyone Idea how to delete the FS missing?
      - Nothing in fstab, blkid or other!

      Display Spoiler



      Source Code

      1. /dev/sdb: UUID="e4d7eca6-a485-5fc3-e250-6879af8d986e" UUID_SUB="05f5a843-6d55-6c2f-2215-455765cd363a" LABEL="gontrand:Data" TYPE="linux_raid_member"
      2. /dev/sdd: UUID="e4d7eca6-a485-5fc3-e250-6879af8d986e" UUID_SUB="6128778f-a551-7fdc-dce2-5cf01f15efd2" LABEL="gontrand:Data" TYPE="linux_raid_member"
      3. /dev/sda1: UUID="7CE6-4479" TYPE="vfat" PARTUUID="ab69b8d0-42a9-4582-8a70-5a2c1d63c5c6"
      4. /dev/sda2: UUID="f05d0904-414f-47bc-b664-a7534a7bb776" TYPE="ext4" PARTUUID="1877769b-9e96-4f14-9bf8-6250fa55a6b3"
      5. /dev/sda3: UUID="3417672a-634e-4735-b977-58da0c52fbb9" TYPE="swap" PARTUUID="f205053d-b7ed-45b0-9a59-733e48077396"
      6. /dev/sde1: UUID="b7f02faf-453b-4926-b721-b9225e75a669" TYPE="swap" PARTUUID="1aa3a205-b14f-40cd-8eb3-f786a848df96"
      7. /dev/sde2: LABEL="Data1" UUID="f18e14dd-8374-4e51-88e1-a474ef29f9f0" TYPE="ext4" PARTUUID="ad582f3e-1472-4c30-b02e-452941703889"
      8. /dev/md127: LABEL="Data" UUID="f5c17055-0c52-48dc-a99b-234a076152be" TYPE="ext4"
      9. /dev/sdc: UUID="e4d7eca6-a485-5fc3-e250-6879af8d986e" UUID_SUB="1b128e6d-98dc-66e0-2ea0-8e91c612f630" LABEL="gontrand:Data" TYPE="linux_raid_member"

      Source Code

      1. # /etc/fstab: static file system information.
      2. #
      3. # Use 'blkid' to print the universally unique identifier for a
      4. # device; this may be used with UUID= as a more robust way to name devices
      5. # that works even if disks are added and removed. See fstab(5).
      6. #
      7. # <file system> <mount point> <type> <options> <dump> <pass>
      8. # / was on /dev/sda2 during installation
      9. UUID=f05d0904-414f-47bc-b664-a7534a7bb776 / ext4 errors=remount-ro 0 1
      10. # /boot/efi was on /dev/sda1 during installation
      11. UUID=7CE6-4479 /boot/efi vfat umask=0077 0 1
      12. tmpfs /tmp tmpfs defaults 0 0
      13. # >>> [openmediavault]
      14. UUID=f5c17055-0c52-48dc-a99b-234a076152be /media/f5c17055-0c52-48dc-a99b-234a076152be ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      15. /media/f18e14dd-8374-4e51-88e1-a474ef29f9f0 /media/f18e14dd-8374-4e51-88e1-a474ef29f9f0 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
      16. /media/f5c17055-0c52-48dc-a99b-234a076152be/PXE /export/PXE none bind,nofail 0 0
      17. # <<< [openmediavault]
      Display All

      Source Code

      1. Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
      2. udev 10M 0 10M 0% /dev
      3. tmpfs 1,6G 9,8M 1,6G 1% /run
      4. /dev/sda2 94G 13G 76G 15% /
      5. tmpfs 3,9G 30M 3,9G 1% /dev/shm
      6. tmpfs 5,0M 4,0K 5,0M 1% /run/lock
      7. tmpfs 3,9G 0 3,9G 0% /sys/fs/cgroup
      8. tmpfs 3,9G 1,4M 3,9G 1% /tmp
      9. /dev/md127 3,6T 3,6T 62G 99% /export/PXE
      10. /dev/sda1 511M 136K 511M 1% /boot/efi
      11. /dev/sde2 7,3T 3,6T 3,4T 52% /media/f18e14dd-8374-4e51-88e1-a474ef29f9f0
      12. tmpfs 787M 28K 787M 1% /run/user/1000
      Display All


      XML Source Code: config.xml

      1. <fstab>
      2. <!--
      3. <mntent>
      4. <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid>
      5. <fsname>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx|xxxx-xxxx|/dev/xxx</fsname>
      6. <dir>/xxx/yyy/zzz</dir>
      7. <type>none|ext2|ext3|ext4|xfs|jfs|iso9660|udf|...</type>
      8. <opts></opts>
      9. <freq>0</freq>
      10. <passno>0|1|2</passno>
      11. <hidden>0|1</hidden>
      12. </mntent>
      13. -->
      14. <mntent>
      15. <uuid>24371d21-59d4-467d-8769-2eba86534236</uuid>
      16. <fsname>f5c17055-0c52-48dc-a99b-234a076152be</fsname>
      17. <dir>/media/f5c17055-0c52-48dc-a99b-234a076152be</dir>
      18. <type>ext4</type>
      19. <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      20. <freq>0</freq>
      21. <passno>2</passno>
      22. <hidden>0</hidden>
      23. </mntent>
      24. <mntent>
      25. <uuid>94d404d6-4e93-4704-92e8-5d7db1c55c5e</uuid>
      26. <fsname>/media/f5c17055-0c52-48dc-a99b-234a076152be/PXE</fsname>
      27. <dir>/export/PXE</dir>
      28. <type>none</type>
      29. <opts>bind,nofail</opts>
      30. <freq>0</freq>
      31. <passno>0</passno>
      32. <hidden>0</hidden>
      33. </mntent>
      34. <mntent>
      35. <uuid>9b24f2b6-7ad8-4110-8031-a73029b90cc3</uuid>
      36. <fsname>/media/f18e14dd-8374-4e51-88e1-a474ef29f9f0</fsname>
      37. <dir>/media/f18e14dd-8374-4e51-88e1-a474ef29f9f0</dir>
      38. <type>ext4</type>
      39. <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
      40. <freq>0</freq>
      41. <passno>2</passno>
      42. <hidden>0</hidden>
      43. </mntent>
      44. </fstab>
      Display All


      Sorry... i'm asleep, my fstab begin by

      /media/f18e14dd-8374-4e51-88e1-a474ef29f9f0
      and must begin
      UUID=f18e14dd-8374-4e51-88e1-a474ef29f9f0


      Solved!

      The post was edited 1 time, last by rickey.mandraque: I need glasses! ().