Goal for this lab is after we acquire the disk in .E01 format then how can we mount this to linux system for analysis.
দুইটা scenario cover করছি: (A) simple E01 + LVM (single disk), (B) E01 + Software RAID + LVM (multi-disk, যেমন disk1/disk2)
From the linux analysis vm like sansforensic vm, you need to run the following commands.
We need to first create the working directories:
mkdir -p /mnt/case/img /mnt/case/data
E01 + LVM (single disk) - First case.
Step 1 — E01 mount:
ewfmount Webserver.E01 /mnt/case/img
ls -lh /mnt/case/img
total 0
-r--r--r-- 1 root root 32G Feb 16 18:21 ewf1
Ewf1 is a raw disk image. It's size and main disk size are same. This is in read-only mode. See the permission.
Step 2 — See the partition layout:
mmls /mnt/case/img/ewf1
Step 3 — Non-LVM partition (যেমন /boot) check:
fsstat -o 2048 /mnt/test/img/ewf1 (-o 2048)
or
fsstat -o <boot_start_sector*512> /mnt/case/img/ewf1 (-o 2048*512 = 1048576)
Why we are multiplying it by 512? See the above image. It is written that Units are in 512-byte sectors.
Unmounted Improperly means, it did not shutdown properly.
Step 4 — Now we need to make LVM partition for loopback device:
losetup -rf -o $((<lvm_start_sector>*512)) /mnt/case/img/ewf1
losetup -rf -o $((501760*512)) /mnt/case/img/ewf1
losetup -a (Using this command we can know which loopback device it got. In this case loop0)
file -s /dev/loop0 (It will confirm whether this is LVM2 PV or not.The file command tells us that the loopback device is pointing to a Linux LVM v2 Physical Volume (“LVM2 PV”). So we are on the right track!)
We are using case directory here instead of test directory.
Step 5 — LVM activation:
Avi
Comments
Post a Comment