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
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
See the other thread about this.
I guess you refer to http://forums.openmediavault.o…nting-Loop-Block-Devices/- or is there another thread?
Yep. Didn't want to post twice about the same thing and you were already on the other thread as well.
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
sudo apt install kpartx
$ kpartx --help
kpartx: invalid option -- '-'
multipath-tools v0.8.3 (10/02, 2019)
Usage:
kpartx [-a|-d|-u|-l] [-r] [-p] [-f] [-g] [-s|-n] [-v] wholedisk
-a add partition devmappings
-r devmappings will be readonly
-d del partition devmappings
-u update partition devmappings
-l list partitions devmappings that would be added by -a
-p set device name-partition number delimiter
-g force GUID partition table (GPT)
-f force devmap create
-v verbose
-n nosync mode. Return before the partitions are created
-s sync mode (Default). Don't return until the partitions are created
Alles anzeigen
after adding the patition image with:
You'll finally be able to mount it from the omv's web gui.
Works like a charm.
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.
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!