Hello again,
after backing up most of the files (the rest were rsync-backups) I've done some research about location and recovering of iSCSI-files in the original OS to answer my question above by myself:
They can be found in /md4/images in a single file named '1' (2 or 3 depends of your use) as big as your LUN-target was.
It's a block device, so you can download it via vsftpd or copy it by
- Code: Select all
dd-64 if=/mnt/md4/images/1 of=/mnt/usb/lun1.img bs=1M
The mounting process in /md2/EDMINI/var/log/unicorn.log shows "losetup /dev/loop1 u /media/internal_1/images/1".
Then start a Linux-Live-System of your choice (I prefer Gparted) and mount it in the same format as you've formatted them (Linux ext2/3/4) or NTFS in my case, but it doesn't work with the img-file directly under Win10 or Linux.
Why? Because the offset! So it's missing the start byte!
These website is a good choice for understanding:
http://infotinks.com/mount-luns-with-partitions-using-losetup-and-kpartx/Now there are several options to make the img-file readable, let me describe my simple 5-step-way using Gparted:
1. Show the partition table of the virtual disk (here around 100 GB in MBR mode, for GPT: sgdisk -p):
- Code: Select all
user@debian:~$ sudo fdisk -lu /mnt/usb/lun1.img
Disk /mnt/usb/lun1.img: 109 GiB, 117037858816 bytes, 228589568 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x00014fff
Device Boot Start End Sectors Size Id Type
/mnt/usb/lun1.img1 32 228589567 228589536 109G 7 HPFS/NTFS/exFAT
user@debian:~$
Result => Starts at sector 32 => Offset-Calculation: 32 * 512 = 16384 // as variable $((32*512))2. Create mountpoints (in may case the img is on a SSD-disk attached via USB)
- Code: Select all
sudo mkdir /mnt/usb /mnt/lun
sudo mount /dev/sda1 /mnt/usb
3. Mount read-only it for NTFS:
- Code: Select all
sudo mount -t ntfs -o ro,offset=16384 /mnt/usb/lun1.img /mnt/lun
4. E voila! To show all the files for backup:
- Code: Select all
ls /mnt/lun
5. Finish after backup:
- Code: Select all
sudo umount /mnt/lun
#####
Now a final question:
What do you think is the best way to restore the original OS in an other way as LaCie suggest in their manual which results in "recovered_ShareName_..."?
Thanks in advance,