public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] "loopback mount" hard-drive image created with dd?
@ 2008-01-18  3:19 Stroller
  2008-01-18  9:04 ` आशीष शुक्ल Ashish Shukla
  0 siblings, 1 reply; 14+ messages in thread
From: Stroller @ 2008-01-18  3:19 UTC (permalink / raw
  To: gentoo-user

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.

-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread
* [gentoo-user] "loopback mount" hard-drive image created with dd?
@ 2008-01-18 17:55 Jerry McBride
  2008-01-18 18:01 ` Alan McKinnon
  0 siblings, 1 reply; 14+ messages in thread
From: Jerry McBride @ 2008-01-18 17:55 UTC (permalink / raw
  To: gentoo-user

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.











Jerry McBride (jmcbride@mail-on.us)
-- 


From the Desk of: Jerome D. McBride
--
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-01-24  3:46 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-18  3:19 [gentoo-user] "loopback mount" hard-drive image created with dd? 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
2008-01-21  8:54         ` [gentoo-user] " Remy Blank
2008-01-24  3:45           ` Tom
  -- strict thread matches above, loose matches on Subject: below --
2008-01-18 17:55 [gentoo-user] " Jerry McBride
2008-01-18 18:01 ` Alan McKinnon
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox