On Friday 18 January 2008 01:01:18 pm Alan McKinnon wrote: > On Friday 18 January 2008, Jerry McBride wrote: > > Stroller wrote: > > > Hi there, > > > > > > Before installing on a new laptop which came with Vista > > > pre-installed I took an image of the hard-drive using dd. (ie: `dd > > > if=/dev/sda of=/ mnt/sdb1/disk.img`, where /mnt/sdb1 was a portable > > > USB hard-drive). > > > > > > Obviously the intention was that if I b0rked things up I could just > > > `dd` the image back onto the laptop and all would work as the > > > manufacturer shipped it, but I'd now find it useful to be able to > > > take a look inside the image and examine a few files. Is there any > > > way to do this, please? > > > > > > I'm fairly confident that there were originally a couple of > > > partitions on the drive, and the one I want to look at will be > > > NTFS, of course. I know that a CD iso I can mount using `mount > > > file.iso / mnt/cdrom -t iso9660 -o loop`, but is there an > > > equivalent for whole partition tables? > > > > > > Thanks in advance for any suggestions or advices, > > > > > > Stroller. > > > > Try this... > > > > modprobe loop > > modprobe ntfs > > > > mkdir /mnt/iso > > > > mount -t ntfs /path/to/your/iso /mnt/iso -o loop,ro > > > > Assuming the iso is ntfs and you have loop and ntfs as modules... > > > > Cheers. > > Won't work. He already said the .iso is a *disk* image, not a *file > system* image. > > The ntfs driver (or any sane file system driver) will not know what to > do with a block image complete with partition tables and boot records. > > alan >
I don't doubt what you wrote, but I've done exactly that many times and never had a problem. Is this some kind of ntfs support issue? Just this morning, I ran dd to make an image of a usbstick I dearly love... I just now mounted the image as vfat as stated above and I have complete access to the data on it... Is the ntfs module that different? Just curious. Cheers. -- From the Desk of: Jerome D. McBride -- gentoo-user@lists.gentoo.org mailing list