How to install OMV on a single disk?

    • OMV 3.x
    • Resolved
    • How to install OMV on a single disk?

      I know that it would be better to install OMV to a seperate driver or a USB driver.
      But my case is something different. I want to install OMV on a VPS. And I installed OMV on the Debian 8 system. However, I cannot create shared folder in the system, nor can I manage the file system.
      I have separated a partition for OMV to use, but OMV cannot access it, so how can I make OMV to use that partition?

      The post was edited 1 time, last by versia ().

    • subzero79 wrote:

      Make sure the partition is not mounted. Then after that you should be able to mount it using the omv webui. Once mounted through the webui you should be able to start creating shared folders.
      I unmounted the partition before I installed OMV, and then I used OMV webui to mount the partition, but I still cannot create shared folders.
      And after I mounted using the OMV webui, if I want to unmount using the webui, I get the following error:

      Source Code

      1. The XPath query '//system/fstab/mntent[((((fsname='/dev/sda3' or fsname='/dev/disk/by-id/ata-HGST_HTE721010A9E630_JR10036P2VJH3L-part3') or fsname='/dev/disk/by-id/wwn-0x5000cca7dce83e8c-part3') or fsname='/dev/disk/by-uuid/47e9d496-9809-4689-9d65-13c7d1bcb6d9') or fsname='47e9d496-9809-4689-9d65-13c7d1bcb6d9')]' does not return the requested number of 1 object(s).
    • subzero79 wrote:

      That error means is a duplicate fstab entry. Check the db manually to erase the duplicate.
      I've looked the config.xml but seen no meaningful fstab entry.
      The only fstab entry in my config file is:

      XML Source Code

      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. </fstab>
      Display All
      To be detailed, my fstab file is:

      Shell-Script

      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=97eadbae-4df9-4d48-b64c-b8dae7dec4c7 / ext4 errors=remount-ro 0 1
      10. # /boot was on /dev/sda1 during installation
      11. UUID=b6c1d347-6aab-47dc-879e-8a5bb8f70ea3 /boot ext4 defaults 0 2
      12. # /omv was on /dev/sda3 during installation
      13. UUID=47e9d496-9809-4689-9d65-13c7d1bcb6d9 /omv ext4 defaults 0 2
      14. # swap was on /dev/sda4 during installation
      15. UUID=ed694f4c-1c92-4382-9b80-3db4e383e35e none swap sw 0 0
      16. tmpfs /tmp tmpfs defaults 0 0
      17. # >>> [openmediavault]
      18. # <<< [openmediavault]
      Display All
      The partition I want to assign to OMV is the /omv partition, so I used umount /dev/sda3 to unmount the partition and then mount the partition in OMV webui. However, I can't make shared folders by doing this.

      The post was edited 1 time, last by versia ().

    • Solved.
      [Solution]
      1. Comment the partition OMV want to use:

      Shell-Script

      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=97eadbae-4df9-4d48-b64c-b8dae7dec4c7 / ext4 errors=remount-ro 0 1
      10. # /boot was on /dev/sda1 during installation
      11. UUID=b6c1d347-6aab-47dc-879e-8a5bb8f70ea3 /boot ext4 defaults 0 2
      12. # /omv was on /dev/sda3 during installation
      13. # UUID=47e9d496-9809-4689-9d65-13c7d1bcb6d9 /omv ext4 defaults 0 2
      14. # swap was on /dev/sda4 during installation
      15. UUID=ed694f4c-1c92-4382-9b80-3db4e383e35e none swap sw 0 0
      16. tmpfs /tmp tmpfs defaults 0 0
      17. # >>> [openmediavault]
      18. # <<< [openmediavault]
      Display All

      2. Then reboot and mount the device in OMV webui. Enjoy.