From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JFvd8-0001Xu-QV for garchives@archives.gentoo.org; Fri, 18 Jan 2008 18:07:51 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 38314E0889; Fri, 18 Jan 2008 18:07:11 +0000 (UTC) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by pigeon.gentoo.org (Postfix) with ESMTP id 762DDE0882 for ; Fri, 18 Jan 2008 18:07:10 +0000 (UTC) Received: by ug-out-1314.google.com with SMTP id j3so518249ugf.49 for ; Fri, 18 Jan 2008 10:07:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; bh=16vGKuyF3QMgl3VO3GVVzfORNvrHbjESUjhcIUZR6Qc=; b=UoPGi8Aw9sXF27sK8gR0mQik8VWVGy8e/6eQiqajB2rXGLQOyubw+GrcAMXij+EJO+mauQmibcdLOhy+cEkZw8sFY5xSXi4SZKhI58wHiVAxBP3PbG3HGAPuKDYyacKlHYkAfRnILQCIdDoTynUtSIl8j5+e2v9rYeH53Qnch/Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=QX+ZqFNkkZxDlRt+inK0IzsnqG/DltmCr4DsDoovp4tzokd6+ZKLm7aXIXQk/J6AuQQhkU2jkiraklZhXhsQJuyCAj+3U0cS85S+O6DuJqVT3k/z7rnlxUe7k4fnXw5XVeejFdx3Sauee0vBgLAN9ws9cW8F+zdcE8l8SN7G6Xo= Received: by 10.78.193.5 with SMTP id q5mr5250998huf.4.1200679623462; Fri, 18 Jan 2008 10:07:03 -0800 (PST) Received: from ?10.0.0.3? ( [41.243.225.188]) by mx.google.com with ESMTPS id f6sm417669nfh.21.2008.01.18.10.07.00 (version=SSLv3 cipher=OTHER); Fri, 18 Jan 2008 10:07:02 -0800 (PST) From: Alan McKinnon 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 User-Agent: KMail/1.9.7 References: <200801181255.21673.mcbrides9@comcast.net> In-Reply-To: <200801181255.21673.mcbrides9@comcast.net> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200801182001.18963.alan.mckinnon@gmail.com> X-Archives-Salt: e46b2c08-0046-454b-b1a2-549d2b971c84 X-Archives-Hash: f342e484896e6701e32fc9a754932ee7 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