[Gllug] Raw Partitions

Tethys sta296 at astradyne.co.uk
Thu Dec 1 01:35:52 UTC 2005


"Russell Howe" writes:

>dd if=/dev/hda of=/tmp/hda.img
>
>Can I somehow use the loopback device to get access to a partition that
>was on hda without manually reading the partition table, dd'ing the
>partition to a new file and mounting that loopback?

Not that I'm aware of. You can read the partition table from a loopback
device without problems, but addressing the partitions isn't possible
AFAIK. While fdisk labels them loop0p1, loop0p2 etc., those devices don't
exist, and LANANA doesn't provide any associated device numbers for them.

That said, you could probably use the -ooffset=blah mount option to avoid
having to dd the filesystem to a separate image, but that's probably the
best you'll manage. I have a hazy memory of something that would provide
byte range views of a file (c.f. SQL views) that could be used to show you
just the relevant filesystem, but I can't remember anything else about it.
You could probably implement something along those lines using a named
pipe without too much effort.

Tet
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list