OpenMediaValut

Administrator
发布于 2023-12-29 / 20 阅读
0
0

OpenMediaValut

OpenMediaVault

1. 挂载的分区丢失无法删除

	Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C.UTF-8; export LANGUAGE=; omv-salt deploy run --no-color fstab 2>&1' with exit code '1': raspberrypi:
	----------
	          ID: create_filesystem_mountpoint_cf9bf6b0-8097-4a7b-9261-dc542bda575d
	    Function: file.accumulated
	      Result: True
	     Comment: Accumulator create_filesystem_mountpoint_cf9bf6b0-8097-4a7b-9261-dc542bda575d for file /etc/fstab was charged by text
	     Started: 21:21:16.553879
	    Duration: 8.677 ms
	     Changes:
	----------
	          ID: mount_filesystem_mountpoint_cf9bf6b0-8097-4a7b-9261-dc542bda575d
	    Function: mount.mounted
	        Name: /srv/dev-disk-by-uuid-3652febc-d18c-46d2-be13-e44694f9780b
	      Result: True
	     Comment: Target was already mounted
	     Started: 21:21:16.573878
	    Duration: 529.616 ms
	     Changes:
	              ----------
	              umount:
	                  Forced remount because options (acl,user_xattr) changed
	----------
	          ID: create_filesystem_mountpoint_b453e901-fe83-44e0-8a25-3ea9bd12d7d1
	    Function: file.accumulated
	      Result: True
	     Comment: Accumulator create_filesystem_mountpoint_b453e901-fe83-44e0-8a25-3ea9bd12d7d1 for file /etc/fstab was charged by text
	     Started: 21:21:17.106612
	    Duration: 15.541 ms
	     Changes:
	----------
	          ID: mount_filesystem_mountpoint_b453e901-fe83-44e0-8a25-3ea9bd12d7d1
	    Function: mount.mounted
	        Name: /srv/dev-disk-by-uuid-223ECFDF3ECFA9DD
	      Result: False
	     Comment: ntfs-3g: Failed to access volume '/dev/disk/by-uuid/223ECFDF3ECFA9DD': No such file or directory
	
	              ntfs-3g 2017.3.23AR.3 integrated FUSE 28 - Third Generation NTFS Driver
	              		Configuration type 7, XATTRS are on, POSIX ACLS are on
	
	              Copyright (C) 2005-2007 Yura Pakhuchiy
	              Copyright (C) 2006-2009 Szabolcs Szakacsits
	              Copyright (C) 2007-2017 Jean-Pierre Andre
	              Copyright (C) 2009 Erik Larsson
	
	              Usage:    ntfs-3g [-o option[,...]] <device|image_file> <mount_point>
	
	              Options:  ro (read-only mount), windows_names, uid=, gid=,
	                        umask=, fmask=, dmask=, streams_interface=.
	                        Please see the details in the manual (type: man ntfs-3g).
	
	              Example: ntfs-3g /dev/sda1 /mnt/windows
	
	              News, support and information:  http://tuxera.com
	     Started: 21:21:17.124016
	    Duration: 322.434 ms
	     Changes:
	----------
	          ID: create_filesystem_mountpoint_fab98c27-497b-42ac-b7fe-9c6e1c4df566
	    Function: file.accumulated
	      Result: True
	     Comment: Accumulator create_filesystem_mountpoint_fab98c27-497b-42ac-b7fe-9c6e1c4df566 for file /etc/fstab was charged by text
	     Started: 21:21:17.449196
	    Duration: 11.781 ms
	     Changes:
	----------
	          ID: mount_filesystem_mountpoint_fab98c27-497b-42ac-b7fe-9c6e1c4df566
	    Function: mount.mounted
	        Name: /srv/dev-disk-by-uuid-0c82f165-fb15-4ef5-8c7e-4be303b876ec
	      Result: True
	     Comment: Target was already mounted
	     Started: 21:21:17.462427
	    Duration: 301.21 ms
	     Changes:
	              ----------
	              umount:
	                  Forced remount because options (acl,user_xattr) changed
	----------
	          ID: append_fstab_entries
	    Function: file.blockreplace
	        Name: /etc/fstab
	      Result: True
	     Comment: No changes needed to be made
	     Started: 21:21:17.782073
	    Duration: 49.039 ms
	     Changes:
	
	Summary for raspberrypi
	------------
	Succeeded: 6 (changed=2)
	Failed:    1
	------------
	Total states run:     7
	Total run time:   1.238 s
	[ERROR   ] Command 'mount' failed with return code: 11
	[ERROR   ] stderr: ntfs-3g: Failed to access volume '/dev/disk/by-uuid/223ECFDF3ECFA9DD': No such file or directory

解决方法

  1. ssh登录到树莓派

  2. 打开 /etc/openmediavault/config.xml

vim /etc/openmediavault/config.xml

搜索报错的分区223ECFDF3ECFA9DD

注释掉报错的分区

	<!--
	      <mntent>
	        <uuid>b453e901-fe83-44e0-8a25-3ea9bd12d7d1</uuid>
	        <fsname>/dev/disk/by-uuid/223ECFDF3ECFA9DD</fsname>
	        <dir>/srv/dev-disk-by-uuid-223ECFDF3ECFA9DD</dir>
	        <type>ntfs</type>
	        <opts>defaults,nofail,big_writes</opts>
	        <freq>0</freq>
	        <passno>2</passno>
	        <hidden>0</hidden>
	        <usagewarnthreshold>95</usagewarnthreshold>
	        <comment></comment>
	      </mntent>
	        -->
  1. 重启omv

  2. 重新挂载分区即可


评论