On Mon, 2005-02-14 at 14:38 +0200, Yedidyah Bar-David wrote:
> 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).

This does not really solve the problem.
The problem can be restated in terms of combining data from various
files into one file.  When the reader of the combined file requests data
from certain locations in the file, it gets data from one file (say a
copy of partition table), and when it requests data from other locations
in the file, it gets data from another file (say, /dev/hda).
                                                          --- Omer
-- 
My own blog is at http://www.livejournal.com/users/tddpirate/

My opinions, as expressed in this E-mail message, are mine alone.
They do not represent the official policy of any organization with which
I may be affiliated in any way.
WARNING TO SPAMMERS:  at http://www.zak.co.il/spamwarning.html


=================================================================
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