Subject:  Urgent  LILO failure: former - to recover damaged partition


Hi Mikkel,

Thanks for your detail advice.  Now the storm is over and I see the blue
sky.  The whole procedure and my discovery in fixing the problem concerned
is listed as follows, allowing those guys interested on this going to know:


#  fdisk  /dev/hda
Unable to read /dev/hda

# fdisk  /dev/hda3   (works.  Windows98 resides in hda3)

v command

Command (m for help): v
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(370, 32, 48) logical=(33914, 9, 49)
Partition 1 has different physical/logical endings:
     phys=(288, 115, 51) logical=(47985, 152, 51)
Partition 1 does not end on cylinder boundary:
     phys=(288, 115, 51) should be (288, 254, 63)
Partition 1: previous sectors 770888651 disagrees with total 4639585
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 0, 43) logical=(82800, 34, 51)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(116349, 218, 61)
Partition 2 does not end on cylinder boundary:
     phys=(0, 13, 10) should be (0, 254, 63)
Partition 2: previous sectors 1869160479 disagrees with total 2308
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(33550, 137, 11)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(120594, 153, 54)
Partition 3 does not end on cylinder boundary:
     phys=(324, 77, 19) should be (324, 254, 63)
Partition 3: previous sectors 1937352302 disagrees with total 5209727
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(86811, 142, 3)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(86812, 225, 45)
Partition 4 does not end on cylinder boundary:
     phys=(335, 78, 2) should be (335, 254, 63)
Partition 4: previous sectors 1394648999 disagrees with total 5382108
Warning: partition 2 overlaps partition 4.
Warning: partition 3 overlaps partition 4.
Total allocated sectors -2131589803 greater than the maximum 14651280


Command (m for help): d     (from the first/normal menu)
Partition number (1-4): 4


re-booted PC.  (Windows98 still could not be booted.  Nor MSWindows98 boot
disk could work)

Started Linux
in X-window

#  fdisk  /dev/hda3  (no response )

Command (m for help): v
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(370, 32, 48) logical=(33914, 9, 49)
Partition 1 has different physical/logical endings:
     phys=(288, 115, 51) logical=(47985, 152, 51)
Partition 1 does not end on cylinder boundary:
     phys=(288, 115, 51) should be (288, 254, 63)
Partition 1: previous sectors 770888651 disagrees with total 4639585
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 0, 43) logical=(82800, 34, 51)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(116349, 218, 61)
Partition 2 does not end on cylinder boundary:
     phys=(0, 13, 10) should be (0, 254, 63)
Partition 2: previous sectors 1869160479 disagrees with total 2308
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(33550, 137, 11)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(120594, 153, 54)
Partition 3 does not end on cylinder boundary:
     phys=(324, 77, 19) should be (324, 254, 63)
Partition 3: previous sectors 1937352302 disagrees with total 5209727
Total allocated sectors -2131568468 greater than the maximum 14651280



#  fdisk -lu /dev/hda3

Disk /dev/hda3: 255 heads, 63 sectors, 912 cylinders
Units = sectors of 1 * 512 bytes

     Device Boot    Start       End    Blocks   Id  System
/dev/hda3p1   ? 544829025 770888651 113029813+  65  Novell Netware 386
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(370, 32, 48) logical=(33914, 9, 49)
Partition 1 has different physical/logical endings:
     phys=(288, 115, 51) logical=(47985, 152, 51)
Partition 1 does not end on cylinder boundary:
     phys=(288, 115, 51) should be (288, 254, 63)
/dev/hda3p2   ? 1330184192 1869160479 269488144   79  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 0, 43) logical=(82800, 34, 51)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(116349, 218, 61)
Partition 2 does not end on cylinder boundary:
     phys=(0, 13, 10) should be (0, 254, 63)
/dev/hda3p3   ? 538989391 1937352302 699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(33550, 137, 11)
Partition 1 does not end on cylinder boundary:
     phys=(288, 115, 51) should be (288, 254, 63)
/dev/hda3p2   ? 1330184192 1869160479 269488144   79  Unknown
Partition 2 has different physical/logical beginnings (non-Linux?):
     phys=(357, 0, 43) logical=(82800, 34, 51)
Partition 2 has different physical/logical endings:
     phys=(0, 13, 10) logical=(116349, 218, 61)
Partition 2 does not end on cylinder boundary:
     phys=(0, 13, 10) should be (0, 254, 63)
/dev/hda3p3   ? 538989391 1937352302 699181456   53  OnTrack DM6 Aux3
Partition 3 has different physical/logical beginnings (non-Linux?):
     phys=(345, 32, 19) logical=(33550, 137, 11)
Partition 3 has different physical/logical endings:
     phys=(324, 77, 19) logical=(120594, 153, 54)
Partition 3 does not end on cylinder boundary:
     phys=(324, 77, 19) should be (324, 254, 63)
/dev/hda3p4   ? 1394627663 1394648999     10668+  49  Unknown
Partition 4 has different physical/logical beginnings (non-Linux?):
     phys=(87, 1, 0) logical=(86811, 142, 3)
Partition 4 has different physical/logical endings:
     phys=(335, 78, 2) logical=(86812, 225, 45)
Partition 4 does not end on cylinder boundary:
     phys=(335, 78, 2) should be (335, 254, 63)

No improvement found.  Situation remained unchanged in re-booting PC


Started Linux
in X-window

#  dd if=/dev/zero  of=/dev/hda  bs=512 count=1
1+0 records in
1+0 records out


Re-booted PC.  This time MSWindows boot disk worked allowing fdisk to
proceed (of course everything gone).  Now the PC resumes normal.

In the past I used to creating partitions with MSWindows boot disk first.
After having Windows98 installed then I deleted the DOS partition reserved
for Linux during installation of Linux and changed it to ext2.  It works for
me without problem.

In this incident I installed Linux first before Windows98 after having the
partitions created with MSWindows boot disk.  Adding to it I forced shutting
down the PC after Linux started because forgot to insert a mouse to the PC.


All in all, I am much appreciated for all guys who provided me valuable
advice and suggestion to my posting.

Finally how to shut down the PC, not forcibly, if forgetting to insert a
mouse.  The TAB key can't move the curser.

Thanks

B.R.
Stephen



-- 
To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe"
as the Subject.

Reply via email to