On Sun, Feb 13, 2005 at 09:28:48PM +0200, Omer Zak wrote:
> When the partition table is destroyed (fully or partially) in hard disk,
> it needs to be reconstructed using patterns in the rest of the hard
> disk, documentation and shrewd guesses.
> 
> After a guess is made about the extents of the partitions, the partition
> table can be edited and updated using fdisk.
> 
> However, this must be done only after the correct partition sizes and
> positions have been figured out.  Sometimes, this needs to be found by
> trial and error.
> 
> It is very dangerous to perform the trial and error on the hard disk
> itself.
> However, sometimes it is not feasible to perform sector-by-sector copy
> (using dd) of the hard disk to another disk, due to its size.
> 
> Therefore, it is desirable to have a way to instruct the OS to mount the
> hard disk in RO mode, and access its contents as if the partition table
> is such-and-such (rather than the partition table actually written into
> the hard disk).

You can try something like
losetup -o OFFSET /dev/hda /dev/loop0
mount ... /dev/loop0 ...
You can't (as far as I know) set the length of the loop device, so
you'll have to trust the filesystem's code to behave (most do).
-- 
Didi


=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to