OMV sees my partition on file system tab, but not when creating a shared directory
Hello,
I have a software problem. I have version 3.0 of openmediavault on Debian 8.
On the system, after formatting and mounting the drive, thanks to my script. My ext4 partition is not taken into account in the creation of a shared directory on the OMV interface.
How to modify the database of OMV so that my partitions EXT4 is price in account by OMV ?
Bash: Part of my sh install code
#${choix} = name disk
mkfs.ext4 "/dev/mapper/${choix}-crypt"
mkdir "/srv/dev-disk-by-id-dm-name-${choix}-crypt"
if grep "openmediavault" /etc/fstab ; then echo "ok" ;
else
echo "# >>> [openmediavault]" >> /etc/fstab
echo "# <<< [openmediavault]" >> /etc/fstab
sed -i "s/# <<</\n# <<</g" /etc/fstab
fi
sed -i "s/# <<</\/dev\/disk\/by-id\/dm-name-${choix}-crypt \/srv\/dev-disk-by-id-dm-name-${choix}-crypt ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2 \n# <<</g" /etc/fstab
mount -a
Alles anzeigen
thank you in advance for your help