Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] mounting disk image

pat

2008-04-06

Replies:

Author LoginPost Reply
On Sun, 6 Apr 2008 18:18:57 -0400, Andrey Falko wrote
> On Sun, Apr 6, 2008 at 6:07 PM, Alan McKinnon
> <alan.mckinnon@(protected):
> > On Sunday 06 April 2008, pat wrote:
> > > On Sun, 6 Apr 2008 23:16:54 +0200, Alan McKinnon wrote
> > >
> > > > On Sunday 06 April 2008, pat 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 :-|
> > > >
> > > > losetup -o <offset_value> /dev/loop<something>
> > > >
> > > > see man losetup
> > >
> >
> > > Thanks. How to count the offset? And where can I get the partitions
> > > offsets?
> >
> > Is the original disk still intact? Then fdisk would tell you the offset
> >
> >
> >
> I'm pretty sure you can fdisk -l test.iso....maybe not, but worth a
> try if you don't have the original disk :).
> >
> > --
> > Alan McKinnon
> > alan dot mckinnon at gmail dot com
> >
> > --
> > gentoo-user@(protected)
> >
> >
> --
> gentoo-user@(protected)

Well, I'm not the low level guru :-) This is the first time I playing with
data/partitions recovery :-\

The fdisk gives me:
Partition 1 has different physical/logical endings:
  phys=(1023, 254, 63) logical=(19456, 254, 63)
/mnt/tmp/recovery.dd.2.iso5       16612     19457   22860463+  c W95
FAT32 (LBA)

Which number should I use?

  Pat

--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.