Filesystem fstab mount problem

  • After resizing the system partition with a bootable Gparted my fstab file seems to be broken.
    Openmediavault is working but it can't mount my Raid drives anymore.


    I get the message:
    Fout #6000:
    exception 'OMVException' with message 'Failed to mount 'e3bdedcb-9d24-4532-8c7f-fb83d2952401': [mntent]: line 15 in /etc/fstab is bad


    My linux knowledge is not that great but i did some commands to see what's the problem.


    root@HPMicroServer:/etc# ls -l /dev/disk/by-uuid/


    total 0
    lrwxrwxrwx 1 root root 10 Jun 15 20:23 90e653e4-6872-4c30-96c5-69918d781aa3 -> ../../sde1
    lrwxrwxrwx 1 root root 10 Jun 15 20:23 acec5d62-0c94-45dd-a8f6-545137f8286d -> ../../sde5
    lrwxrwxrwx 1 root root 9 Jun 15 20:23 e3bdedcb-9d24-4532-8c7f-fb83d2952401 -> ../../md0
    lrwxrwxrwx 1 root root 10 Jun 15 20:23 f8e670f9-5401-4fdb-b74b-aa6467760ecd -> ../../sde3


    root@HPMicroServer:/etc# blkid /dev/sde1
    /dev/sde1: UUID="90e653e4-6872-4c30-96c5-69918d781aa3" TYPE="ext4" PARTUUID="000afb5d-01"
    root@HPMicroServer:/etc# blkid /dev/sde5
    /dev/sde5: UUID="acec5d62-0c94-45dd-a8f6-545137f8286d" TYPE="swap" PARTUUID="000afb5d-05"
    root@HPMicroServer:/etc# blkid /dev/md0
    /dev/md0: LABEL="Storage" UUID="e3bdedcb-9d24-4532-8c7f-fb83d2952401" TYPE="ext4"
    root@HPMicroServer:/etc# blkid /dev/sde3
    /dev/sde3: LABEL="Backup" UUID="f8e670f9-5401-4fdb-b74b-aa6467760ecd" TYPE="ext4" PARTUUID="000afb5d-03"


    If i try to mount my Storage drive with the mount command then i can access my files:
    mount UUID="e3bdedcb-9d24-4532-8c7f-fb83d2952401" /media/Storage (for testing i made the directory Storage)


    Here is a copy of my fstab but i can't find the fault :(
    I checked the UUID but it's stille the same.
    Does someone know how to fix this.


    So now i need to mount the Storage partition and the backup partition.
    I wanted to split the system partition to change the SQL and the PHP directory because of spinning down of the drives and to keep the system files seperated from the data drives :)
    So hopefully i can just change the directory within the MYSQL plugin but first i hope to fix this problem.


    # /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/sda1 during installation
    UUID=90e653e4-6872-4c30-96c5-69918d781aa3 / ext4 errors=remount-ro 0 1
    # swap was on /dev/sda5 during installation
    UUID=acec5d62-0c94-45dd-a8f6-545137f8286d none swap sw 0 0
    /dev/sdb1 /media/usb0 auto rw,user,noauto 0 0
    tmpfs /tmp tmpfs defaults 0 0
    # >>> [openmediavault]
    UUID=e3bdedcb-9d24-4532-8c7f-fb83d2952401 /media/e3bdedcb-9d24-4532-8c7f-fb83d2952401 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2# <<< [openmediav$


  • Everytime i am getting the following fault:
    Fout #6000:
    exception 'OMVException' with message 'Failed to mount '59551d4b-e97e-4d20-818e-593aee2ae764': [mntent]: line 15 in /etc/fstab is bad
    mount: can't find /media/59551d4b-e97e-4d20-818e-593aee2ae764 in /etc/fstab or /etc/mtab' in /usr/share/openmediavault/engined/module/fstab.inc:90


    It's working if i change the following:


    # >>> [openmediavault]UUID=e3bdedcb-9d24-4532-8c7f-fb83d2952401 /media/e3bdedcb-9d24-4532-8c7f-fb83d2952401 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2# <<< [openmediavault]


    to:
    # >>> [openmediavault]UUID=e3bdedcb-9d24-4532-8c7f-fb83d2952401 /media/e3bdedcb-9d24-4532-8c7f-fb83d2952401 ext4 defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl 0 2
    # <<< [openmediavault]


    As soon when i press the attach drive within omv (new ext4 partition) then i get the line15 fault
    and my fstab file is changed to the first one :(
    So still having problems.
    Hopefully someone know how to fix it.


    If i look at the config.xml the mntent looks like this:
    <mntent>
    <uuid>9dd4b7a4-3728-40a3-9c8b-39073d89e8cd</uuid>
    <fsname>e3bdedcb-9d24-4532-8c7f-fb83d2952401</fsname>
    <dir>/media/e3bdedcb-9d24-4532-8c7f-fb83d2952401</dir>
    <type>ext4</type>
    <opts>defaults,nofail,user_xattr,noexec,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0,acl</opts>
    <freq>0</freq>
    <passno>2</passno>
    <hidden>0</hidden>
    </mntent>

  • Try


    Code
    omv-mkconf fstab


    That should recreate the fstab.


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!