How to mlount .img file and share it?

  • Hi


    I have an .img file (image of a crashed hdd which I only need read-only) which I would like to


    1) mount and
    2) share via smb/cifs


    Can I do this through the web GUI? And if not, how can I do this via ssh?


    Thanks,


    Rainer

  • Thanks -


    but the question is not how I can do that via ssh.


    The question is if there is an OMV-way of doing it, so that the image gets mounted as soon as the drive containing the image is mounted nd no manual; action is required after re-booting.


    Rainer

    • Offizieller Beitrag

    See the other thread about this.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

    • Offizieller Beitrag

    Yep. Didn't want to post twice about the same thing and you were already on the other thread as well.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Hello, I know this is an ancient thread, but for anyone who's interested in mounting .img disk images, can use kpartx.
    Connect to your server via ssh and install kpartx


    after adding the patition image with:

    Code
    (write option)
    sudo kpartx -av image.img
    or
    (read-only option)
    sudo kpartx -avr image.img

    You'll finally be able to mount it from the omv's web gui.

    Works like a charm.

    • Neu
    • Offizieller Beitrag

    You'll finally be able to mount it from the omv's web gui.

    The problem with mounting from the OMV web interface is that it will expect that filesystem to be mounted after a reboot and kpartx mounting won't survive a reboot.

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.1.4 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

Jetzt mitmachen!

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