In the manual it says that I must always mount and share disk from gui. I've been using omv for a long time and I've always done it this way but since yesterday I want to mount a disk and share it but it won't let me mount it and the disk doesn't appear to share a folder. I also tried mounting it with cli and it mounts it but the disk does not appear to be able to create a shared folder.
Can't mount disk can't share folder
-
- gelöst
- moretty
-
-
it won't let me mount it
Which error message do you get?
I also tried mounting it with cli and it mounts it but the disk does not appear to be able to create a shared folder.
Correct. Filesystem mounted from CLI cannot be used to create shared folders on them as OMV is not aware of these drives.
-
Which error message do you get?
Correct. Filesystem mounted from CLI cannot be used to create shared folders on them as OMV is not aware of these drives.
Error #0:
OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': debian:
---------- ID: create_filesystem_mountpoint_80ace739-370d-4a0f-8c6c-17317cee9552 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_80ace739-370d-4a0f-8c6c-17317cee9552 for file /etc/fstab was charged by text Started: 17:14:27.894110 Duration: 0.941 ms Changes:
---------- ID: mount_filesystem_mountpoint_80ace739-370d-4a0f-8c6c-17317cee9552 Function: mount.mounted Name: /srv/dev-disk-by-uuid-9ea46152-8334-49f9-9fde-dd7d269ed863 Result: True Comment: Target was already mounted Started: 17:14:27.895735 Duration: 191.526 ms Changes: ---------- umount: Forced remount because options (user_xattr) changed
---------- ID: create_filesystem_mountpoint_5abb74e6-7a60-4981-b02d-0f0c9514e4d1 Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_5abb74e6-7a60-4981-b02d-0f0c9514e4d1 for file /etc/fstab was charged by text Started: 17:14:28.087531 Duration: 2.116 ms Changes:
---------- ID: mount_filesystem_mountpoint_5abb74e6-7a60-4981-b02d-0f0c9514e4d1 Function: mount.mounted Name: /srv/dev-disk-by-uuid-acd7f509-3078-4cec-977d-269b7fd094df Result: True Comment: Started: 17:14:28.089881 Duration: 24.65 ms Changes:
---------- ID: create_filesystem_mountpoint_479f2a6a-78f0-44ef-8f71-4c77c3d931cd Function: file.accumulated Result: True Comment: Accumulator create_filesystem_mountpoint_479f2a6a-78f0-44ef-8f71-4c77c3d931cd for file /etc/fstab was charged by text Started: 17:14:28.114941 Duration: 1.29 ms Changes:
---------- ID: mount_filesystem_mountpoint_479f2a6a-78f0-44ef-8f71-4c77c3d931cd Function: mount.mounted Name: /srv/dev-disk-by-uuid-88af68d5-8ebd-4eaa-8a14-5a4113670a19 Result: True Comment: Target was successfully mounted Started: 17:14:28.116360 Duration: 147.183 ms Changes: ---------- mount: True
---------- ID: create_remotemount_mountpoint_d255c0f4-85c3-401a-adc0-42c175dcfb4a Function: file.accumulated Result: True Comment: Accumulator create_remotemount_mountpoint_d255c0f4-85c3-401a-adc0-42c175dcfb4a for file /etc/fstab was charged by text Started: 17:14:28.264074 Duration: 1.713 ms Changes:
---------- ID: mount_filesystem_mountpoint_d255c0f4-85c3-401a-adc0-42c175dcfb4a Function: mount.mounted Name: /srv/d255c0f4-85c3-401a-adc0-42c175dcfb4a Result: False Comment: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) Started: 17:14:28.265960 Duration: 52.225 ms Changes:
---------- ID: append_fstab_entries Function: file.blockreplace Name: /etc/fstab Result: False Comment: Encountered error managing block: Unterminated marked block. End of file reached before marker_end.. See the log for details. Started: 17:14:28.320121 Duration: 3.5 ms Changes:Summary for debian
------------
Succeeded: 7 (changed=2)
Failed: 2
------------
Total states run: 9
Total run time: 425.144 ms in /usr/share/php/openmediavault/system/process.inc:196
Stack trace:
#0 /usr/share/php/openmediavault/engine/module/serviceabstract.inc(62): OMV\System\Process->execute()
#1 /usr/share/openmediavault/engined/rpc/config.inc(167): OMV\Engine\Module\ServiceAbstract->deploy()
#2 [internal function]: Engined\Rpc\Config->applyChanges(Array, Array)
#3 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#4 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('applyChanges', Array, Array)
#5 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(920): OMV\Rpc\Rpc::call('Config', 'applyChanges', Array, Array)
#6 [internal function]: Engined\Rpc\OMVRpcServiceFileSystemMgmt->mount(Array, Array)
#7 /usr/share/php/openmediavault/rpc/serviceabstract.inc(123): call_user_func_array(Array, Array)
#8 /usr/share/php/openmediavault/rpc/rpc.inc(86): OMV\Rpc\ServiceAbstract->callMethod('mount', Array, Array)
#9 /usr/sbin/omv-engined(537): OMV\Rpc\Rpc::call('FileSystemMgmt', 'mount', Array, Array, 1)
#10 {main} -
Comment: mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
Is the filesystem ntfs?
-
Is the filesystem ntfs?
no
-
Does this error appear, when you try to mount the filesystem?
Seems like the issue is with a remotemount.
In that case it would not be caused by the filesytem to be mounted, but by the remotemount from the remotemount plugin.
Are all the remotemounts working?
-
Does this error appear, when you try to mount the filesystem?
Seems like the issue is with a remotemount.
In that case it would not be caused by the filesytem to be mounted, but by the remotemount from the remotemount plugin.
Are all the remotemounts working?
Yes I when mount.
If the remote links work but create them all by cli
-
Do you have the remotemount plugin installed?
Post the output of
mount -a
and
cat /etc/fstab
in a code box </> each.
-
Do you have the remotemount plugin installed?
Post the output of
mount -a
and
cat /etc/fstab
in a code box </> each.
no plugin installed
mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount.nfs: access denied by server while mounting 192.168.2.200:/volume1/Video
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sde1 during installation
UUID=3ea9d2df-4d73-45af-9d08-a386c4cc00e3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sde5 during installation
UUID=933bcc9d-c692-46e0-a405-a8c94516535d none swap sw 0 0
# >>> [openmediavault]
/dev/disk/by-uuid/9ea46152-8334-49f9-9fde-dd7d269ed863 /srv/dev-disk-by-uuid-9ea46152-8334-49f9-9fde-dd7d269ed863 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
//192.168.2.200/Libros /srv/d255c0f4-85c3-401a-adc0-42c175dcfb4a cifs _netdev,iocharset=utf8,vers=3.0,nofail,credentials=/root/.cifscredentials-5e79cf63-3782-4c45-b21c-bd9b7a3d1684 0 0
# <<< openmediavault]
192.168.2.200:/volume1/Video /mnt/videosyno nfs defaults 0 0
UUID=01fab187-8b95-4aeb-b32e-79bef2e3d303 /srv/dev-disk-by-uuid-01fab187-8b95-4aeb-b32e-79bef2e3d303 auto noauto 0 0
-
192.168.2.200:/volume1/Video /mnt/videosyno nfs defaults 0 0
ok this one does not work
there should be no data available in /mnt/videosyno
so you can comment it by putting a "#" in front of the line
//192.168.2.200/Libros /srv/d255c0f4-85c3-401a-adc0-42c175dcfb4a cifs _netdev,iocharset=utf8,vers=3.0,nofail,credentials=/root/.cifscredentials-5e79cf63-3782-4c45-b21c-bd9b7a3d1684 0 0
Is this working? Do you have access to the data?
-
And please the output of
omv-showkey remotemount
in a code box, that is when you press the </> button in a new reply.
-
And please the output of
omv-showkey remotemount
in a code box, that is when you press the </> button in a new reply.
Export list for 192.168.2.200:
/volume1/Music 192.168.2.166,192.168.2.25
/volume1/photo 192.168.2.166
/volume1/Documentos 192.168.2.166
/volume1/Video 192.168.2.166,192.168.2.25
root@OMV:/srv/dev-disk-by-uuid-88af68d5-8ebd-4eaa-8a14-5a4113670a19# omv-showkey remotemount
<remotemount>
<mount>
<uuid>d255c0f4-85c3-401a-adc0-42c175dcfb4a</uuid>
<name>Libros syno</name>
<mntentref>5e79cf63-3782-4c45-b21c-bd9b7a3d1684</mntentref>
<mounttype>cifs</mounttype>
<server>192.168.2.200</server>
<sharename>Libros</sharename>
<nfs4>0</nfs4>
<username>docker</username>
<password>xxxxxxxx</password>
<options>_netdev,iocharset=utf8,vers=3.0,nofail</options>
</mount>
</remotemount>
-
You have or you had the remotemount plugin installed.
What is the output of
dpkg -l | grep openmedia?
The result should look like this, i.e. in a code box
Code
Alles anzeigenmacom@omv6:~$ dpkg -l | grep openmedia ii openmediavault 6.0.39-1 all openmediavault - The open network attached storage solution ii openmediavault-backup 6.0.7 all backup plugin for OpenMediaVault. ii openmediavault-compose 6.0.4 all OpenMediaVault compose plugin ii openmediavault-flashmemory 6.2 all folder2ram plugin for openmediavault ii openmediavault-kernel 6.3 all kernel package ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-omvextrasorg 6.1.1 all OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-remotemount 6.0.2 all Remote mount plugin for OpenMediaVault. ii openmediavault-sftp 6.0 all sftp server ii openmediavault-wol 6.1 all OpenMediaVault WOL plugin macom@omv6:~$
-
You have or you had the remotemount plugin installed.
What is the output of
dpkg -l | grep openmedia?
The result should look like this, i.e. in a code box
Code
Alles anzeigenmacom@omv6:~$ dpkg -l | grep openmedia ii openmediavault 6.0.39-1 all openmediavault - The open network attached storage solution ii openmediavault-backup 6.0.7 all backup plugin for OpenMediaVault. ii openmediavault-compose 6.0.4 all OpenMediaVault compose plugin ii openmediavault-flashmemory 6.2 all folder2ram plugin for openmediavault ii openmediavault-kernel 6.3 all kernel package ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive ii openmediavault-omvextrasorg 6.1.1 all OMV-Extras.org Package Repositories for OpenMediaVault ii openmediavault-remotemount 6.0.2 all Remote mount plugin for OpenMediaVault. ii openmediavault-sftp 6.0 all sftp server ii openmediavault-wol 6.1 all OpenMediaVault WOL plugin macom@omv6:~$
ii openmediavault-apttool 3.6 all apt tool plugin for OpenMediaVault.
ii openmediavault-clamav 5.0.13-1 all openmediavault ClamAV plugin
ii openmediavault-diskstats 5.1.1-2 all openmediavault disk monitoring plugin
ii openmediavault-downloader 5.1 all OpenMediaVault downloader plugin
ii openmediavault-fail2ban 5.0.5 all OpenMediaVault Fail2ban plugin
ii openmediavault-forkeddaapd 5.0.5-1 all openmediavault forked-daapd (DAAP server) plugin
ii openmediavault-keyring 1.0 all GnuPG archive keys of the OpenMediaVault archive
ii openmediavault-kvm 5.1.7 all kvm plugin for OpenMediaVault.
ii openmediavault-minidlna 5.0.5 all OpenMediaVault miniDLNA (DLNA server) plugin
ii openmediavault-omvextrasorg 5.6.6 all OMV-Extras.org Package Repositories for OpenMediaVault
ii openmediavault-openvpn 5.1 all OpenVPN plugin for OpenMediaVault.
ii openmediavault-remotemount 5.0.3 all Remote mount plugin for OpenMediaVault.
ii openmediavault-resetperms 5.0 all Reset Permissions
ii openmediavault-shairport 5.0.4-1 all openmediavault shairport (AirPlay/RAOP receiver) plugin
ii openmediavault-snmp 5.0.3-1 all openmediavault SNMP (Simple Network Management Protocol) plugin
ii openmediavault-symlinks 5.0 all OpenMediaVault symlinks plugin
ii openmediavault-wol 3.4.2 all OpenMediaVault WOL plugin
ii openmediavault-zfs 5.0.6 amd64 OpenMediaVault plugin for ZFS
-
ii openmediavault-remotemount 5.0.3 all Remote mount plugin for OpenMediaVault.
So the remote mount plugin is installed.
You can either fix the credentials for the failing mount or just remove it, if you do not need it any more.
Both can be done from the GUI of the plugin under
storage >> remote mount
-
So the remote mount plugin is installed.
You can either fix the credentials for the failing mount or just remove it, if you do not need it any more.
Both can be done from the GUI of the plugin under
storage >> remote mountThank you very much for your kind help. I'm going to try what you tell me and let you know.
Thank you very much for your kind help. I'm going to try what you tell me and let you know.
-
Your fstab has an issue. Once this is fixed, you should stop editing system files.
In fstab
# >>> [openmediavault]
/dev/disk/by-uuid/9ea46152-8334-49f9-9fde-dd7d269ed863 /srv/dev-disk-by-uuid-9ea46152-8334-49f9-9fde-dd7d269ed863 ext4 defaults,nofail,user_xattr,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
//192.168.2.200/Libros /srv/d255c0f4-85c3-401a-adc0-42c175dcfb4a cifs _netdev,iocharset=utf8,vers=3.0,nofail,credentials=/root/.cifscredentials-5e79cf63-3782-4c45-b21c-bd9b7a3d1684 0 0
# <<< openmediavault]
The last lind has to be
# <<< [openmediavault]
Note the [ in front of "openmediavault"
-
Your fstab has an issue. Once this is fixed, you should stop editing system files.
In fstab
The last lind has to be
# <<< [openmediavault]
Note the [ in front of "openmediavault"
thank you very much.
i have erase share nfs //192.168.2.200/Libros in to the etc/fstab??
-
After you added the [
in /etc/fstab
please try to remove the share from the plugin.
-
After you added the [
in /etc/fstab
please try to remove the share from the plugin.
now i understand, i need to add a [ in fstab. Thanks, sorry I don't understand English, I use a translator.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!