LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mount image-sdb.img with mount? (https://www.linuxquestions.org/questions/linux-newbie-8/mount-image-sdb-img-with-mount-936917/)

patrick295767 03-28-2012 12:48 PM

Mount image-sdb.img with mount?
 
Hi,

I made backup two years ago. What is a newbie method to mound those several partitions?

# file -s 20100514_image_disk120gb_sde.img
20100514_image_disk120gb_sde.img: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, stage2 address 0x2000, stage2 segment 0x200; partition 1: ID=0xc, active, starthead 1, startsector 63, 22523067 sectors; partition 3: ID=0xf, starthead 0, startsector 22523130, 211913415 sectors, code offset 0x48

I found this but it is too complicated.
http://unix.stackexchange.com/questi...ing-a-img-file

Do you have a x11 frontend or command line frontend with dialog?


s# mount 20100514_image_disk120gb_sde.img /mnt/dsk/ -o offset=$((22523130*512)) -o ro -t vfat
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

need a script for newbies

I would not like to use gdisk at all


# fdisk -ul 20100514_image_disk120gb_sde.img
You must set cylinders.
You can do this from the extra functions menu.

Disk 20100514_image_disk120gb_sde.img: 0 MB, 0 bytes
255 heads, 63 sectors/track, 0 cylinders, total 0 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


Device Boot Start End Blocks Id System
20100514_image_disk120gb_sde.img1 * 63 22523129 11261533+ c W95 FAT32 (LBA)
Partition 1 has different physical/logical endings:
phys=(1023, 254, 63) logical=(1401, 254, 63)
20100514_image_disk120gb_sde.img3 22523130 234436544 105956707+ f W95 Ext'd (LBA)
Partition 3 has different physical/logical beginnings (non-Linux?):
phys=(1023, 0, 1) logical=(1402, 0, 1)
Partition 3 has different physical/logical endings:
phys=(1023, 254, 63) logical=(14592, 254, 63)
20100514_image_disk120gb_sde.img5 22523193 124921439 51199123+ 7 HPFS/NTFS
20100514_image_disk120gb_sde.img6 124921503 207270629 41174563+ 7 HPFS/NTFS
20100514_image_disk120gb_sde.img7 207270693 219961979 6345643+ 83 Linux
20100514_image_disk120gb_sde.img8 219962043 233440514 6739236 83 Linux
20100514_image_disk120gb_sde.img9 233440578 234436544 497983+ 82 Linux swap / Solaris



thank yaouh

pan64 03-28-2012 01:12 PM

it looks like a two step process. the first one is losetup and the second is the mount.
http://idolinux.blogspot.com/2009/10...with-loop.html

theNbomr 03-28-2012 02:09 PM

From the name of your image file, '20100514_image_disk120gb_sde.img', it sounds like you have a copy of a block device (/dev/sde), not just a partition (/dev/sdeN, where N=1,2,3...). If so, you will need to do a few things to access the data in the copy of the device. I think it is very very unlikely that any GUI tool for this exists. The tools you will need are kpartx, mount, losetup (maybe) and device-mapper (maybe). Before I launch into a full explanation, please let me know whether my initial conjecture is correct.
--- rod.


All times are GMT -5. The time now is 01:06 AM.