On Mon, 7 Apr 2008 05:38:54 +0100 Stroller wrote: > > On 6 Apr 2008, at 22:03, pat wrote: > > ... > > 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 :-| > > Hi there, > > I have a similar disk image I need to access in the same way. I > asked about this on the list a while ago & received some helpful > replies. > > Unfortunately I got busy with work right after posting, and haven't > had a chance to try them, yet, but maybe you'll find them useful: > http://thread.gmane.org/gmane.linux.gentoo.user/193263 > > Stroller.
On an occasion or two, I've had linux installs overwrite a partition table when I wasn't paying close occasion. Using google I found TestDisk which is a program that is able to recover partition tables. I've used it successfully 2 or 3 times. I've also encountered one situation where I broke the partition table with dd and TestDisk wasn't able to help. So, mileage varies :-> David -- [email protected] mailing list

