public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan McKinnon <alan.mckinnon@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] "loopback mount" hard-drive image created with dd?
Date: Fri, 18 Jan 2008 20:01:18 +0200	[thread overview]
Message-ID: <200801182001.18963.alan.mckinnon@gmail.com> (raw)
In-Reply-To: <200801181255.21673.mcbrides9@comcast.net>

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


-- 
Alan McKinnon
alan dot mckinnon at gmail dot com
-- 
gentoo-user@lists.gentoo.org mailing list



  reply	other threads:[~2008-01-18 18:07 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-18 17:55 [gentoo-user] "loopback mount" hard-drive image created with dd? Jerry McBride
2008-01-18 18:01 ` Alan McKinnon [this message]
2008-01-18 18:29   ` Jerry McBride
2008-01-18 18:54     ` Alan McKinnon
2008-01-18 19:19       ` Jerry McBride
2008-01-18 19:38         ` Jerry McBride
2008-01-18 20:35           ` Mick
  -- strict thread matches above, loose matches on Subject: below --
2008-01-18  3:19 Stroller
2008-01-18  9:04 ` आशीष शुक्ल Ashish Shukla
2008-01-18 13:02   ` Stroller
2008-01-18 14:40     ` Ashish Shukla आशीष शुक्ल
2008-01-18 18:47       ` Yahya Mohammad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200801182001.18963.alan.mckinnon@gmail.com \
    --to=alan.mckinnon@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox