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:



  • I've found!!!


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



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


    Code
    /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

  • 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.

    1) Why OMV mounted HDD on /srv ? (security? incompatibility? other?)

    is the current linux hierarchical order http://www.tldp.org/LDP/Linux-…Hierarchy/html/index.html

    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.

  • Thank you so much.


    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!



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


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



    Solved!

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!