On Tue, Sep 19, 2006 at 07:52:23AM +1000, Howard Lowndes 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?... >
Check out http://edseek.com/~jasonb/articles/linux_loopback.html under the heading "Accessing Specific Partitions in the Image" But basically if you want to mount the first partition then mount -o loop,offset=32256 disk.img /mnt Should do the trick. If its a different partition you need to fiddle the offset as per link above. -- John http://www.inodes.org/ -- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
