Hi,

On 19 Feb 2002, Shriram Shrikumar wrote:

> > To verify, try:
> > less -f /dev/sda1 (where sda1 is your windoze partition)
> > If it displays something like:
<blabla>
> It does display something very similar - I figure you are running a
> different language from me though cos the text is mine is english
> (Invalid Disk etc.)
>
> > then your partition table should be correct (as far as it concerns
> > windoze). And can you still boot Linux?
>
> Not sure if it boot windoze just now - LILO fails though so I couldn't
> update the kernel or such If I wanted to.
>
but the partition seems ok. What error does LILO give you when you try to
boot windoze?

> > What does
> > fdisk -l /dev/sda
>
> Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
> Units = cylinders of 16065 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1             1       158   1269103+   b  Win95 FAT32
> Partition 1 does not end on cylinder boundary:
>      phys=(1023, 24, 30) should be (1023, 254, 63)
> /dev/hda2           159       184    208845   83  Linux
> /dev/hda4           313      2491  17502817+   f  Win95 Ext'd (LBA)
> /dev/hda5           313       571   2080386    6  FAT16
> /dev/hda6           572      1403   6683008+   b  Win95 FAT32
> /dev/hda7          1404      1467    514048+  82  Linux swap
> /dev/hda8          1468      1589    979933+  83  Linux
> /dev/hda9          1590      1640    409626   83  Linux
> /dev/hda10         1641      1768   1028128+  83  Linux
>
> > fdisk -l -u /dev/sda
>
> Disk /dev/hda: 255 heads, 63 sectors, 2491 cylinders
> Units = sectors of 1 * 512 bytes
>
>    Device Boot    Start       End    Blocks   Id  System
> /dev/hda1            63   2538269   1269103+   b  Win95 FAT32
> Partition 1 does not end on cylinder boundary:
>      phys=(1023, 24, 30) should be (1023, 254, 63)
> /dev/hda2       2538270   2955959    208845   83  Linux
> /dev/hda4       5012280  40017914  17502817+   f  Win95 Ext'd (LBA)
> /dev/hda5       5012343   9173114   2080386    6  FAT16
> /dev/hda6       9173178  22539194   6683008+   b  Win95 FAT32
> /dev/hda7      22539258  23567354    514048+  82  Linux swap
> /dev/hda8      23567418  25527284    979933+  83  Linux
> /dev/hda9      25527348  26346599    409626   83  Linux
> /dev/hda10     26346663  28402919   1028128+  83  Linux
>
>
Ok, print these two tables on paper. Remember: you can fiddle around with
the partition table as much as you want, it won't affect the data stored
on the partitions. You can always change it back if it turns out wrong.

But as I see, hda1 ends on block 2548269 and hda2 starts at 2538270. So
whatever you want to do, it will cause data loss. hda1 is as big as it can
be, so if you make it bigger you will erase a part of the linux partition
(the most important part) and shrinking makes you loose data on the
windoze partition.

But can you mount the windoze partition under Linux? (mount -t vfat
/dev/hda1 /mnt)? If so, the fats are ok too.

Then the problem could be the master boot record. Make a bootdisk for
Linux (dd if=/vmlinuz of=/dev/fd0 will do in most cases) and test it.

Now grab your win98 bootdisk and boot with it. Do you have access to the
C: dirve? Yes? Great. Now run under dos 'fdisk /mbr'. This will erase the
mbr and install the default windoze one. Check if windoze will start now.
Then boot with your Linux bootdisk and install Lilo again.

If it does not see your C: drive correctly, well, let's see about that
another time.

> Is there an easy way for me to update the partition info for the first
> partition to say 2023, 254, 63 or 157, 254, 63 (whichever would be
> right) without fiddling with anything else ?
>
As I said above, hda1 is captured between the beginning of the disk and
hda2, so don't fiddle.

Greetz,
Sebastiaan

> Any further thoughts.
>
>
> Shri
> PS - Linux boots fine since it is the second partition (as you can see
> from the above outputs)
>

Reply via email to