On Sun, 6 Apr 2008 17:19:33 -0400, Andrey Falko wrote
> On Sun, Apr 6, 2008 at 5:03 PM, pat <[EMAIL PROTECTED]> wrote:
> > Hello,
> >
> > I have a question about mounting disk image as the disk. I have disk image
> > which was created using:
> > dd if=/dev/sda of=./file.iso
> > and the sda contained two partitions sda1 and sda2. I know, that if I have
> > only image of the sda1 I can mount it using loop device like
> > #losetup /dev/loop0 file.iso
> > #mount -t ... /dev/loop0 /mnt/tmp
> >
> > But, how to do it if the file structure is: sda -> sda1, sda2? I need to
> > get
> > data from sda1 and sda2 :-|
> >
> > Thanks a lot for help.
> >
> > Pat
> > --
> > [email protected] mailing list
> >
> >
>
> I don't have time to test, but try something like this:
>
> (from: http://lwn.net/Articles/110426/)
>
> losetup /dev/loop0 file.iso
> blockdev --rereadpt /dev/loop0
> mount /dev/loop0p2 /mnt/temp (for p2 replace with other partition,
> check ls /sys/block/loop0/dev)
> --
> [email protected] mailing list
Thanks, but it ends with:
BLKRRPART: Invalid argument
The problem can be that I did dd at disk with broken partition table. So over
the disk image I've run testdisk utility and it found the partitions - labels
and the correct sizes (as far as I remember). There are two partitions NTFS
and FAT32 and using the testdisk utility, it enables me to browse the FAT
partition, so I thing the testdisk succeeded.
Any idea at that?
Thanks a lot.
Pat
--
[email protected] mailing list