I have mounted partition images using "mount -o loop" many time before, but never a whole disk image. I figured that you may need to interrogate the partition table and then "dd" off the partition from the disk image.
 
It seems that this HOWTO http://edseek.com/~jasonb/articles/linux_loopback.html tells you how to do it directly. (fdisk can read a disk image file, and mount allows you to specify an offset). But it seems to refer to some patching of a 2.4 kernel to get it to work with ext2. So your mileage may vary.
 
As you have a file to work with - make sure you work with a copy!
 
Martin

 
On 9/19/06, Howard Lowndes <[EMAIL PROTECTED]> wrote:
I have a disk image of a CompactFlash disk as a file on a PC.  The image
was created by using dd.

I know that the image has a partition table, a Linux (83) partition and
a Linux Swap (82) partition.  The Linux partition is formatted ext2.

I want to be able to mount the Linux partition rw somewhere onto the
PC's file system so that I can work on it using an editor.

Any HOWTOs?...

--
Howard.
LANNet Computing Associates - Your Linux people <http://lannetlinux.com>
When you want a computer system that works, just choose Linux;
When you want a computer system that works, just, choose Microsoft.
--
Flatter government, not fatter government; abolish the Australian states.

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html



--
Regards, Martin

Martin Visser
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to