[Guide]How to mount ExFat USB Drives Manually and use them on OpenMediaVaults WebUI

    • OMV 3.x

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

    • [Guide]How to mount ExFat USB Drives Manually and use them on OpenMediaVaults WebUI

      Warning:
      I take no responsibility for anything bad that happens, this is purely what I did and I'm leaving here for others.



      This may also work on eailer versions of OpenMediaVault.


      Issues
      • Might not work with NFS sharing. link
      • Permissions after mount can't be changed and are weird until I find the approriate mount options in /etc/fstab for ExFat.
      • This is a workaround as at the time I first wrote this there was no current known support


      Pre-Requirements
      • OpenMediaVault 3 already installed on your system (It's possible this will work on earlier versions).
      • Installed the OMV-Extras Plugin.
      • Have another drive installed to symlink from and mounted.
      • Backports Kernel Installed.
      • SSH Enabled


      Steps
      1. Install the openmediavault-sysmlinks plugin.
      2. Open a SSH session to you OpenMediaVault system.
      3. Install support for exfat on your system:

        Source Code

        1. apt-get update
        2. apt-get install exfat-fuse
        3. apt-get install -f
      4. Please restart your System with:

        Source Code

        1. reboot
      5. Plugin your USB Drive.
      6. Open another SSH session to you OpenMediaVault system.
      7. Check you can see your USB drive in SSH:

        Source Code

        1. lsblk
        You should see something like this:

        Source Code

        1. root@pheoxyomv:~# lsblk
        2. NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
        3. └─sda1 8:33 0 1.8T 0 part /media/UUID-EXAMPLE
        4. ├─sdb1 8:97 0 128M 0 part
        5. └─sdb2 8:98 0 4.6T 0 part /media/PheoxysEXT
        6. sdc 8:112 1 29G 0 disk
        7. ├─sdc1 8:113 1 27.8G 0 part /
        8. ├─sdc2 8:114 1 1K 0 part
        9. └─sdc5 8:117 1 1.2G 0 part
        10. root@pheoxyomv:~#
      8. Now you need to mount the USB Drive with to check its working (use your own volumes id sdx).

        Source Code

        1. mount.exfat-fuse /dev/sdb2 /media/PheoxysEXT
      9. It should have mounted, so we navigate to the above directory:

        Source Code

        1. cd /media
        2. ls
        3. cd PheoxysEXT
        You should see something similar:

        Source Code

        1. root@pheoxyomv:~# cd /media
        2. root@pheoxyomv:/media# ls
        3. UUID-Example cdrom PheoxysEXT
        4. root@pheoxyomv:/media#
        5. root@pheoxyomv:/media# cd PheoxysEXT
        6. root@pheoxyomv:/media/PheoxysEXT# ls
        7. Files System Volume Information
        8. root@pheoxyomv:/media/PheoxysEXT#
      10. Now re need to reboot so we can make the directory to automount on boot:

        Source Code

        1. cd
        2. mkdir /media/PheoxysUSB
      11. We also need the UUID for the fstab:

        Source Code

        1. blkid
        You should see something like this:

        Source Code

        1. root@pheoxyomv:/media# blkid
        2. /dev/sdb1: TYPE="zfs_member" PARTLABEL="Microsoft reserved partition" PARTUUID="XXXX-XXXX-XXXX-XXXX"
        3. /dev/sdb2: LABEL="PheoxysEXT" UUID="You want - this one" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX"
        4. /dev/sda1: LABEL="InternalHDD" UUID="XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="ext4" PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX"
        5. root@pheoxyomv:/media#
      12. Now we need to make it mount on boot by adding it to the /etc/fstab (Make sure its done properly or your system will hang on boot because this is wrong):

        Source Code

        1. cd
        2. nano /etc/fstab
        Add this line to the end and edit it respectively (Make sure to use the appropriate uid=XX and gid=XX for youself):

        Source Code

        1. # external harddrive
        2. UUID=UUID-Youwant-ithere /media/PheoxysEXT exfat-fuse defaults,uid=0,gid=100 0 0
      13. Save it and exit:

        Source Code

        1. ctrl-o
        2. y
        3. ctrl-x
        4. y
      14. Reboot again to make sure:

        Source Code

        1. reboot
      15. Now we need to make a symbolic link so we can use it with OpenMediaVaults native WebUI:

        Source Code

        1. cd
        2. cd /media
        3. ls
        Now we need to make the symbolic link:

        Source Code

        1. ln -s /media/PheoxysEXT/ /media/UUID-Example/PheoxysEXT
      16. Now we need to set permissions to access it:

        Source Code

        1. chmod -R 770 /media/PheoxysEXT
      17. Now if you go to the WebUI you should be able to make a Shared Folder to the ExFat USB Drive by finding the folder that links to the USB Drive from the symbolic link we made.


      And your Done!

      The post was edited 14 times, last by Pheoxy: Update ().

    • Good guide, just a point that this will probably not work if you want to share it through NFS, maybe a mount bind will overcome that. Also you forgot to add how to do the symlink, some people might miss that.

      Also I don't why there still no support for exfat, i think in wheezy the drivers were added after the initial release, not sure. I think we could have support in erasmus.

      cc @votdev
      New wiki
      chat support at #openmediavault@freenode IRC | Spanish & English | GMT+10
      telegram.me/openmediavault broadcast channel
      openmediavault discord server
    • subzero79 wrote:

      Good guide, just a point that this will probably not work if you want to share it through NFS, maybe a mount bind will overcome that. Also you forgot to add how to do the symlink, some people might miss that.

      Also I don't why there still no support for exfat, i think in wheezy the drivers were added after the initial release, not sure. I think we could have support in erasmus.

      cc @votdev
      Still writing it, just hit save so I don't accidentally X it.

      I am having trouble with permissions though so I'm still trying to fix that.