Re: [Hampshire] Mounting a cloned disk

Top Page
Author: Hugo Mills
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Mounting a cloned disk

Reply to this message
gpg: failed to create temporary file '/var/lib/lurker/.#lk0x575ea100.hantslug.org.uk.30648': Permission denied
gpg: keyblock resource '/var/lib/lurker/pubring.gpg': Permission denied
gpg: Signature made Thu Jul 9 12:21:54 2009 BST
gpg: using DSA key 20ACB3BE515C238D
gpg: Can't check signature: No public key
On Thu, Jul 09, 2009 at 12:16:02PM +0100, Peter Brooks wrote:
> Hi all,
> I used dd to clone a hard drive, I'm now needing to mount the drive
> and the partitions on it. How is this possible?


You need to extract the relevant offsets from the partition table,
and use a loopback device with the offset option. There's a script
that does it all for you in the package at [1]:

# offset-loop disk.img 1
/dev/loop/0
# mount /dev/loop/0 /mnt/image-part-1

Hugo.

[1] http://carfax.org.uk/software/vamos

-- 
=== Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk ===
  PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk
  --- I am but mad north-north-west:  when the wind is southerly, I ---  
                       know a hawk from a handsaw.