After latest update: Mounting / unmounting USB Harddrive causes error message
-
- OMV 1.0
- berritorre
-
-
So it is becoming even more mysterious.
The reinstall didn't really help. The same error would appear when trying to mount the disk.
I thought there might be a problem with this stupid 0294023894022EAB, so I started to search for the UUID, because I thought it might be still written in some kind of file. Here is what I did:
I still don't have any result, but of course this might take while.
In the meantime I had another idea: check with a usb-flash drive to see if this works. I put it in, it showed up, I mounted it (it asked me confirm) and it showed up as mounted. But guess what:
The two usb hard drives suddenly also showed up as mounted. I don't think it has to do with the GREP command. But why should they mount because of the flash drive connected????
What is weird is that they also show the same size under "used", which doesn't make sense. They should not have exactly the same size. Could it be that they REALLY have the same UUID?
-
last time I had issues with ghost partitions that were locked mounted and not erasable I had to go in /media and delete the folder the ghost partition was supposed to be mounted to.
of course use the path to your ghost folder, while the usb hdd is not connected.
Then it unlocked and I could go and delete it from partition panel.
Seems like there is something else than fstab in OMV, as it did remember the ghost partition between reboots.
-
Hi bobafett, thank you for responding!
Could you elaborate a little? I am not a big linux expert, so how do I find out what folder in media I need to look at?
-----------------------------------------
All:
This is driving me crazy!!Now that the disks are mounted, I can't unmount them anymore (at least not via the GUI), I am getting the following error message:
Code
Alles anzeigenFailed to get configuration (xpath=//system/fstab/mntent[uuid='']) Error #3003: exception 'OMVException' with message 'Failed to get configuration (xpath=//system/fstab/mntent[uuid=''])' in /usr/share/php/openmediavault/rpcservice.inc:551 Stack trace: #0 /usr/share/openmediavault/engined/rpc/fstab.inc(216): OMVRpcServiceAbstract->deleteConfigObjectByPath('//system/fstab/...', 'org.openmediava...') #1 [internal function]: OMVRpcServiceFsTab->delete(Array, Array) #2 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #3 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('delete', Array, Array) #4 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(959): OMVRpc::exec('FsTab', 'delete', Array, Array) #5 [internal function]: OMVRpcServiceFileSystemMgmt->umount(Array, Array) #6 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #7 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('umount', Array, Array) #8 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'umount', Array, Array, 1) #9 {main}
I think I had something similar before. I will have to go back to the beginning of the post and check.
-
Checked in fstab and there are two NFTS disks, both with the same UUID:
Code
Alles anzeigen# /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> proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=45d5cabe-bea7-4056-8386-4003fe129933 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=0bc58b70-2493-435f-b00e-e82f552146c6 none swap sw 0 0 /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0 tmpfs /tmp tmpfs defaults 0 0 # >>> [openmediavault] UUID=4107a386-6776-479f-823e-d38dba9bc5b9 /media/4107a386-6776-479f-823e-d38dba9bc5b9 ext4 defaults,acl,user_xattr,noexec,us$ UUID=f681cb50-2239-4b87-9006-a639de982087 /media/f681cb50-2239-4b87-9006-a639de982087 ext4 defaults,nofail,acl,user_xattr,no$ /dev/disk/by-uuid/0294023894022EAB /media/0294023894022EAB ntfs defaults,nofail 0 2 /dev/disk/by-uuid/0294023894022EAB /media/0294023894022EAB ntfs defaults,nofail 0 2 # <<< [openmediavault]
-
The drive can't be unmounted coz is not registered at config.xml. A mounted drive by omv gets two entries, one at config.xml and one at fstab.
Check the registered omv entries with config.xml with showkey mntent and in cat /etc/fstab in between the omv tags.
The only way to register a drive is to mount it through webUI or add a manual entry at config.xml
-
-
I deleted it with the command that you gave
Did you make sure nothing was on it? like the drive was unmounted?
Next time try rm -rvi folder/ this way it will ask you item by item in case there is content inside
-
So I have deleted the UUID from /media/ and I have also deteled the two entries for the NFTS partitions in fstab.
I am currently rebooting to check if this had any effect.
SubZero: the usb disks where not connected to the server, so I think I will be fine. But it is a good tip, because sometimes we beginners do stupid things...
OK. After a reboot here the results from fstab:
Code
Alles anzeigenroot@pdb-matrix:~# cat /etc/fstab # /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> proc /proc proc defaults 0 0 # / was on /dev/sda1 during installation UUID=45d5cabe-bea7-4056-8386-4003fe129933 / ext4 errors=remount-ro 0 1 # swap was on /dev/sda5 during installation UUID=0bc58b70-2493-435f-b00e-e82f552146c6 none swap sw 0 0 /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0 tmpfs /tmp tmpfs defaults 0 0 # >>> [openmediavault] UUID=4107a386-6776-479f-823e-d38dba9bc5b9 /media/4107a386-6776-479f-823e-d38dba9bc5b9 ext4 defaults,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2 UUID=f681cb50-2239-4b87-9006-a639de982087 /media/f681cb50-2239-4b87-9006-a639de982087 ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2 # <<< [openmediavault]
And here what is in /media/:
Coderoot@pdb-matrix:~# dir /media/ 4107a386-6776-479f-823e-d38dba9bc5b9 cdrom f681cb50-2239-4b87-9006-a639de982087 usb usb0
So both seemed to be clean from any of the USB drives. I will now try to connect them again.
-
Did you check the showkey mntent in config.xml?
-
So I connected the USB drive "1" and this is how it shows:
Coderoot@pdb-matrix:~# ls -la /dev/disk/by-uuid/ total 0 drwxr-xr-x 2 root root 140 Nov 24 15:44 . drwxr-xr-x 6 root root 120 Nov 24 15:37 .. lrwxrwxrwx 1 root root 10 Nov 24 15:44 0294023894022EAB -> ../../sde1 lrwxrwxrwx 1 root root 10 Nov 24 15:37 0bc58b70-2493-435f-b00e-e82f552146c6 -> ../../sda5 lrwxrwxrwx 1 root root 11 Nov 24 15:37 4107a386-6776-479f-823e-d38dba9bc5b9 -> ../../md127 lrwxrwxrwx 1 root root 10 Nov 24 15:37 45d5cabe-bea7-4056-8386-4003fe129933 -> ../../sda1 lrwxrwxrwx 1 root root 10 Nov 24 15:37 f681cb50-2239-4b87-9006-a639de982087 -> ../../sdd1
In fstab it does not show (which I assume is right, because it is not mounted yet):
Code# >>> [openmediavault] UUID=4107a386-6776-479f-823e-d38dba9bc5b9 /media/4107a386-6776-479f-823e-d38dba9bc5b9 ext4 defaults,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2 UUID=f681cb50-2239-4b87-9006-a639de982087 /media/f681cb50-2239-4b87-9006-a639de982087 ext4 defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 2 # <<< [openmediavault]
Same for the /media/ folder:
Coderoot@pdb-matrix:~# dir /media/ 4107a386-6776-479f-823e-d38dba9bc5b9 cdrom f681cb50-2239-4b87-9006-a639de982087 usb usb0
Now when trying to mount it via the GUI...
Still getting this error message:
Code
Alles anzeigenFailed to mount '/dev/disk/by-uuid/0294023894022EAB': mount: no such partition found Error #6000: exception 'OMVException' with message 'Failed to mount '/dev/disk/by-uuid/0294023894022EAB': mount: no such partition found' in /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc:887 Stack trace: #0 [internal function]: OMVRpcServiceFileSystemMgmt->mount(Array, Array) #1 /usr/share/php/openmediavault/rpcservice.inc(125): call_user_func_array(Array, Array) #2 /usr/share/php/openmediavault/rpc.inc(79): OMVRpcServiceAbstract->callMethod('mount', Array, Array) #3 /usr/sbin/omv-engined(500): OMVRpc::exec('FileSystemMgmt', 'mount', Array, Array, 1) #4 {main}
-
-
At /etc/openmediavault/config.xml, make a backup first if you're editing
like cp config.xml config.xml.bak
in the fstab section of the xml you should only see your ext4 drives.
-
Found it. That is one long document. I have copied it to a text file to be able to search better.
So here the content for the fstab section:
Code
Alles anzeigen<fstab> <!-- <mntent> <uuid>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</uuid> <fsname>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx|xxxx-xxxx|/dev/xxx</fsname> <dir>/xxx/yyy/zzz</dir> <type>ext2|ext3|ext4|xfs|jfs|iso9660|udf</type> <opts></opts> <freq>0</freq> <passno>0|1|2</passno> </mntent> --> <mntent> <uuid>60ee24ce-99da-4c35-8d3d-306a2a01c46a</uuid> <fsname>4107a386-6776-479f-823e-d38dba9bc5b9</fsname> <dir>/media/4107a386-6776-479f-823e-d38dba9bc5b9</dir> <type>ext4</type> <opts>defaults,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0</opts> <freq>0</freq> <passno>2</passno> <hidden>0</hidden> </mntent> <mntent> <uuid>2cbd3144-c72f-4a88-b8d6-c5743470d5c7</uuid> <fsname>f681cb50-2239-4b87-9006-a639de982087</fsname> <dir>/media/f681cb50-2239-4b87-9006-a639de982087</dir> <type>ext4</type> <opts>defaults,nofail,acl,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0</opts> <freq>0</freq> <passno>2</passno> <hidden>0</hidden> </mntent> <mntent> <uuid>faad830c-d48d-4b48-9739-4fd4d867be0c</uuid> <fsname>/dev/disk/by-uuid/0294023894022EAB</fsname> <dir>/media/0294023894022EAB</dir> <type>ntfs</type> <opts>defaults,nofail</opts> <freq>0</freq> <passno>2</passno> <hidden>0</hidden> </mntent> <mntent> <uuid>5698528b-05ea-49da-897c-b2493e136d2d</uuid> <fsname>/dev/disk/by-uuid/0294023894022EAB</fsname> <dir>/media/0294023894022EAB</dir> <type>ntfs</type> <opts>defaults,nofail</opts> <freq>0</freq> <passno>2</passno> <hidden>0</hidden> </mntent> </fstab>
So the last two are bascially still the NFTS USB drives. The UUID is actually different, but the fsname and the media folder give them the same code.
So what now? Is it save to detele those entries or will I have to do something else. Of course, before editing I would create a .bak file as suggested. But I am not sure if I CAN delte those entries.
.
What I find weird is that in the first commented example for the <mntent> there is no NTFS in the line. Does it mean NFTS is not allowed?
-
You can delete them. If you're using nano editor with ctrl+k you can delete line by line.
The example is probably very old, it's allowed. -
OK, so
,
and
are clean now. The NFTS USB disks do not show anymore after a reboot.
Fingers crossed that this is it...
I think we got it! I can't believe it!
I will have to do some further tests and try to make a backup, but I can mount both USB disks without error messages!
OK, so I ran a new backup process to the HDD001 (the one that had caused the problem on Friday) and it seems that everything worked out. I could mount the HDD without a problem, I ran the backup of 3 different shares and then I could unmount without a problem.
Before I had already testes the mounting and unmounting with both discs and that worked as well. I don't want to do the backup to the HDD002, because I want to have the one week buffer of a backup from human error (someone deleting files or doing other stupidities).
But it looks very good.
A big thank you to all that helped and especially subzero79 for the patience.
-
Just make sure every time before unplugging the drives to unmount the disk so they get unregistered. That way omv clears all the entries including the folders at media.
-
I am always doing this, because I had some real trouble with that before as well.
Because usually if a drive is still mounted but not connected anymore, the server already stops in the boot process and I can't access via SSH or web GUI. Then I have to connect a monitor and a keyboards just to proceed, or restart with the USB disk connected (which is not always possible).
However, this time I don't think that was the problem.
I am not sure, but I think the USB drive was connected when I did the update (what usually isn't the case). My suspicion is that this might have caused the problem. But I'm really not sure.
-
So here we go again.
Same error again.
I guess this time it was the Linux update today. I guess I had already connected the USB disk and when I logged into the GUI to run the backup I probably did run the upgrade process before. And I can't unmount the usb drive anymore. I know, I shouldn't have done that, but I think it would be great if there would be some kind of warning or anything that this can happen.
I guess I will have to go through all this hassle again. At least now I have a good documentation (this thread) on what to do...
-
This seems to become a tradition, recurring every January...
Did my first backup of the year on Friday without any problem. Used the second USB-Disk today and I couldn't unmount it because it gave me an error.
Went through all the process in this thread again. But what actually helps is deleting the USB disks in the fstab section of config.xml, I think.
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!