[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

    • Install the openmediavault-sysmlinks plugin.
    • Open a SSH session to you OpenMediaVault system.
    • Install support for exfat on your system:
      Code
      apt-get update
      apt-get install exfat-fuse
      apt-get install -f
    • Please restart your System with:
      Code
      reboot
    • Plugin your USB Drive.
    • Open another SSH session to you OpenMediaVault system.
    • Check you can see your USB drive in SSH:
      Code
      lsblk

      You should see something like this:

      Code
      root@pheoxyomv:~# lsblk
      NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
      └─sda1   8:33   0  1.8T  0 part /media/UUID-EXAMPLE
      ├─sdb1   8:97   0  128M  0 part
      └─sdb2   8:98   0  4.6T  0 part /media/PheoxysEXT
      sdc      8:112  1   29G  0 disk
      ├─sdc1   8:113  1 27.8G  0 part /
      ├─sdc2   8:114  1    1K  0 part
      └─sdc5   8:117  1  1.2G  0 part
      root@pheoxyomv:~#
    • Now you need to mount the USB Drive with to check its working (use your own volumes id sdx).
      Code
      mount.exfat-fuse /dev/sdb2 /media/PheoxysEXT
    • It should have mounted, so we navigate to the above directory:
      Code
      cd /media
      ls
      cd PheoxysEXT

      You should see something similar:

      Code
      root@pheoxyomv:~# cd /media
      root@pheoxyomv:/media# ls
      UUID-Example  cdrom  PheoxysEXT
      root@pheoxyomv:/media#
      root@pheoxyomv:/media# cd PheoxysEXT
      root@pheoxyomv:/media/PheoxysEXT# ls
      Files  System Volume Information
      root@pheoxyomv:/media/PheoxysEXT#
    • Now re need to reboot so we can make the directory to automount on boot:
      Code
      cd
      mkdir /media/PheoxysUSB
    • We also need the UUID for the fstab:
      Code
      blkid

      You should see something like this:

      Code
      root@pheoxyomv:/media# blkid
      /dev/sdb1: TYPE="zfs_member" PARTLABEL="Microsoft reserved partition" PARTUUID="XXXX-XXXX-XXXX-XXXX"
      /dev/sdb2: LABEL="PheoxysEXT" UUID="You want - this one" TYPE="exfat" PARTLABEL="Basic data partition" PARTUUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX"
      /dev/sda1: LABEL="InternalHDD" UUID="XXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" TYPE="ext4" PARTUUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXX"
      root@pheoxyomv:/media#
    • 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):
      Code
      cd
      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):

      Code
      # external harddrive
      UUID=UUID-Youwant-ithere /media/PheoxysEXT exfat-fuse      defaults,uid=0,gid=100      0       0
    • Save it and exit:
      Code
      ctrl-o
      y
      ctrl-x
      y
    • Reboot again to make sure:
      Code
      reboot
    • Now we need to make a symbolic link so we can use it with OpenMediaVaults native WebUI:
      Code
      cd
      cd /media
      ls

      Now we need to make the symbolic link:

      Code
      ln -s /media/PheoxysEXT/ /media/UUID-Example/PheoxysEXT
    • Now we need to set permissions to access it:
      Code
      chmod -R 770 /media/PheoxysEXT
    • 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!

    • Offizieller Beitrag

    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

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

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!