Gary,

you should find somewhere the description of partition tables, there's a
difference between the primary partition entries and the logical volume
entries. for what I understand, you tried to create a primary partition
that would have had to map a logical volume, maybe this could explain why
you didn't find anything.

also, you're giving a layout which is I suppose in cylinder units. sometime
weird things happen if you allocate partitions (or logical volumes) giving
partitions extents in other units (MB). you should have to remember how you
initially allocated and use the same unit, if you want to have a chance
getting a good mapping.

what I'd do just before cryin' for mum' whould be to write a script (you
said that you had an up'n running linux on hda) that would create a
partition on hdb from cylinder X to last one and call mount (-t e2fs),
looping from 3 to last - 1, and stop if the mount succeeds (this should
happen only for your old / and /home). I don't know if fdisk has some kind
of batch mode, but there are tools that can be command line driven (of
course I don't remember a name).

good luck



...
>We then decided to physically swap the drives making the Windows disk drive 
>1, and then re-install windows from scratch.  Once again, scandisk compained 
>about the last block being missing on drive 'D', so Andrew fired up fdisk 
>(DOS version) and removed the vfat partition.  Unfortunately, it proceeded
to 
>remove all partitions in the extened partition -removing all of my Linux 
>except the boot partition.
>
>So, now we have the situation that we have no partition table.  I know that 
>if you have the start and end cylinder numbers you can just re-create the 
>partition table entry. I do know the layout (shown below), but do not know 
>any start/end cylinder numbers.  Has anyone got any ideas how I can find
them?
>
>Based on some info we found on the net, we have found that if you know the 
>start number, you can create a partition bigger than the original, run 
>dumpe2fs on the partition and it will give you the correct size and
therefire 
>the end cylinder.  We then set about starting at the end of the disk, 
>creating a partition 2490-2491 and tried dumpe2fs, then repeated for 
>partition 2489-2491 etc.  until we got to creating the partition 3-2491.  
>Unfortunately, we didn't find anything.
>
>Layout of disk
>
>hda1   1-2     boot            /boot
>hda2   3-2491  extended
>hda5   3-?     vfat            /mnt/win_c (turned out it was actually 'D')
>hda6   ?-?     linux           /
>hda7   ?-?     swap
>hda8   ?-?     linux           /home
>
>(I could live with just getting back /home)
...

                        - * - * - * - * - * - * -
Bien sûr que je suis perfectionniste !
Mais ne pourrais-je pas l'être mieux ?
        Thierry ITTY
eMail : [EMAIL PROTECTED]               FRANCE



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to