Impossible to mount file system : Structure needs cleaning

  • Hello,


    I put all my disks on a other place.


    And when I start now, the raid 5 is ok, but I have this error message.




    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning


    And the details are:


    Erreur #0:OMV\ExecException: Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning in /usr/share/php/openmediavault/system/process.inc:182Stack trace:

    #0 /usr/share/php/openmediavault/system/filesystem/filesystem.inc(720): OMV\System\Process->execute()

    #1 /usr/share/openmediavault/engined/rpc/filesystemmgmt.inc(912): OMV\System\Filesystem\Filesystem->mount()

    #2 [internal function]: OMVRpcServiceFileSystemMgmt->mount(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('mount', Array, Array)

    #5 /usr/sbin/omv-engined(536): OMV\Rpc\Rpc::call('FileSystemMgmt', 'mount', Array, Array, 1)

    #6 {main}



    So I read a lot of doc, and apparently I must do




    Code
    sudo fsck /dev/<unmounted_partition>


    But on which partition...?





    If someone have a idea to fix this problem and to remount the file system...it'll be great.


    Thank you.


    Regard.

  • This post is solved.


    More precisely:
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; mount -v --source '/dev/disk/by-id/md-name-openmediavault:raid9disks' 2>&1' with exit code '32': mount: mount /dev/md0 on /srv/dev-disk-by-id-md-name-openmediavault-raid9disks failed: Structure needs cleaning



    You must do this:
    # fsck /dev/md0


    And, if needed, fix all errors. After that you can mount the file system. :thumbsup:



    If not try this:
    # fsck.ext4 -f /dev/disk/by-id/md-name-openmediavault:raid9disks
    # mount -a



    This solution is tested and working for us. :thumbup: No data were corrupted.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!