help mounting image from .img file
I tried the following , and all worked up until the point where I try to mount,then it give error saying needs to specify FS, but my partition say lvm ,and dont remember what fs I used.
Quote:
Code:
parted /Downloads/usb/backup_set_1.img Code:
kpartx -a /Downloads/usb/backup_set_1.img Code:
losetup /dev/loop0 /Downloads/usb/backup_set_1.img Code:
fdisk -l /Downloads/usb/backup_set_1.img |
After you ran all necessary commands up to 'kpartx -a /Downloads/usb/backup_set_1.img' your system should already expose a Device-Mapped Physical Volume Group to run 'dmsetup status; pvscan /dev/dm-4' and other pv*/vg*/lv* commands on?
|
Thank you uspawn for your input.I ran the following commands
Code:
dmsetup status |
You can find the filesystem of a volume with the command sudo file -sL /dev/path_to/volume. If you're not sure of the volume paths, run sudo lvdisplay.
|
@ cbtshare
Certain img files don't mount like iso files do. You need an extra parameter to the mount command. The offset parameter. The offset parameter is needed for img files. Code:
mount -o loop,offset=<start of offset number> file.img mountpoint Try this code below with the offset values and see if it works. Code:
mount -o loop,offset=108380160 /Downloads/usb/backup_set_1.img /mnt/ |
Quote:
Quote:
Code:
mount /Downloads/usb/backup_set_1.img /mnt/bac/ -o loop,offset=$((211680*512)) |
Any ideas? I cant find any info on google that helps.
|
All times are GMT -5. The time now is 12:10 AM. |