storage with exfat - chmod

  • I know exfat file system, is not supported by OMW, but I have USB storage of a capacity 8TB. I mounted it, and it looks like it works:

    Code
    pi@naspi:/srv $ ls -l
    total 540
    drwxrwxrwx 4 root root 524288 Mar 19 15:28 dev-disk-by-uuid-261F-F2D9


    After rebooting, the permissions automatically change:


    Code
    pi@naspi:/srv $ ls -l
    total 540
    drwxr-xr-x 4 root root    524288 Mar 19 15:31 dev-disk-by-uuid-261F-F2D9


    tried to restore permissions, even as root:

    Code
    root@naspi:/srv# ls -l
    total 540
    drwxr-xr-x 4 root root 524288 Mar 19 15:31 dev-disk-by-uuid-261F-F2D9
    root@naspi:/srv# chmod -R 777 /srv/dev-disk-by-uuid-261F-F2D9
    root@naspi:/srv# ls -l
    total 540
    drwxr-xr-x 4 root root 524288 Mar 19 15:31 dev-disk-by-uuid-261F-F2D9

    but you can't.


    how to restore disk permissions of this?. The only way I know is to unmount this disk, and then mount it again.

  • extFAT does not have file permissions, you have to change the mount options

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • extFAT does not have file permissions, you have to change the mount options

    What mount options should I use so that permissions do not change automatically after on reboot raspberry ?

    The disk cannot be formatted to a different file system, because this disk does not support another system than exFat.

  • https://www.systutorials.com/d…x/man/8-mount.exfat-fuse/

    You will have to use uid,gid, fmask and dmask in /etc/fstab.


    You will have to manually edit the fstab and not use omv to mount the disk (as I do not know how to change the mount options fpr extfat) for the UI.


    Best you take not of /etf/fstab and the mount line

    unmount the disk using omv

    edit /etc/fstab and add the line which disappeared and change the options according to you needs.

    If you got help in the forum and want to give something back to the project click here (omv) or here (scroll down) (plugins) and write up your solution for others.

  • Why can't you change the filesystem on that drive?

    I tried to change the file system to a different one, but after changing the file system to, for example, NTFS, the drive "goes crazy" and formatting takes days. Data disappear, partition disappear etc ... I asked the vendor if this disk supports other filesystems or only exFat, he replied: no, only exFat. It's a cheap USB drive from aliexpress US $ 43 for 8TB. Do you want a link what not to buy?

  • I asked the vendor if this disk supports other filesystems or only exFat, he replied: no, only exFat. It's a cheap USB drive from aliexpress US $ 43 for 8TB.

    This makes no sense.

    Can you post the link to that disk?


    Maybe it's a knockoff and the drive isn't 8Tb

  • But it is not really one 8TB drive, but 4 drives, of 2TB each, in one.

    Ok, this made me laugh and cry at the same time.

    They just stuck 4*2Tb (if it really is that capacity) on a box with a controller that only accepts exFAT?!?

    Not likely. Especially if its cheap.

    You get what you pay for.


    If you want to use something remotely similar to that setup (4*xTb) use a proven-to-work box that see every drive as individuals.

    IcyBox or Fantec are good brands to search for.


  • Yes, adding uid and gid mask into fstab works. Also can confirm mount in this way will also allow mixing EXT4 with exFAT in mergerFS!

    However, the drawbacks include:

    1. you will need to do it manually, everytime, everydisk

    2. if you unplug, the omv doesn't boot normally (you can add nofail tag in fstab though). And, the mergerFS pool will break until you plug back the USB.


    For most other users facing the same issues (i.e. mounting exFAT into OMV, keep the original "WINDOWS DRIVE DATA"), my best solutions will be shrink the exFAT as much as you can, then create a EXT4 partition in the unused space...

Participate now!

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