On Tue, Nov 18, 2003 at 10:28:36PM +0200, b g wrote:
> On Tuesday 18 November 2003 17:49, Oron Peled wrote:
> Sorry for the lame question, but what are magic numbers? Before working on the 
> raw device, I though it would be a good idea to know what I'm doing. Googling 
> for ["magic numbers" ext3 fdisk] leads to zillions mailing list archives, so 
> if anyone can point me to a resource which has more or less comprehensive 
> explanations, I'll be glad to hear.
> What I uderstand from Oron's answer is that some number marks the start and 
> the end of a prartition, so by knowing in which blocks they appear, one can 
> reconstruct the partition table. Am I correct?

Yes, but it's already written for you, and I think is in knoppix -
what you want is called gpart.
Note, that if you know the exact places where partitions started
and ended (or their size), you can simply create them (with knoppix)
and try to mount -r and see if you succeed.
One more thing - if you do have access to another disk, and if /home
is indeed important for you, I suggest you start by backing up the
entire disk (mount a big partition of the other disk on /big and do
dd if=/dev/hda of=/big/hdabck bs=1024m).
In any case, Don't Panic (TM). There are very small chances that your
data was actually deleted. If you are careful, you have very good
chances to see it again.
-- 
Didi

> > I had similar problem (partition table mess) a long time ago (~8 years):
>       <snip>
> > Ignored numbers which where not in regular intervals
> >              (false alarms)
> 
> what intervals can be considered as "regular"
> 
> >           3. Ran 'fsck -b <super_block_number>'
> >           4. If all is good (it was in my case), than we can trust the
> >              superblock data (start and size of partition)
> >           5. So we can safely use them to fix the partition table
> >              (back then I used Norton-Disk-Doctor under DOS to edit
> >              the partition table. I think today parted would give
> >              you better options -- but didn't check it).
> >
> > Hope it helps,
> 
> 
> ================================================================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]

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